Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 96.48 kB / 16.95 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 179.2 kB / 17.84 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 223.3 MB / 241.9 MB, free: 304 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003041/0.0003041, allocations: 4.75 kB / 301.5 MB, free: 6.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.154, allocations: 50.42 MB / 351.9 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.3641/0.5182, allocations: 35.98 MB / 387.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0311/0.5493, allocations: 10.16 MB / 398 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0165/0.5659, allocations: 287.3 kB / 398.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01166/0.5776, allocations: 1.757 MB / 400.1 MB, free: 472 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02183/0.5996, allocations: 2.94 MB / 403 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01094/0.6105, allocations: 1.552 MB / 404.6 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03151/0.6421, allocations: 14.15 MB / 418.7 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05801/0.7002, allocations: 20.09 MB / 438.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01352/0.7137, allocations: 4.944 MB / 443.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01537/0.7292, allocations: 5.801 MB / 449.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005557/0.7348, allocations: 0.7812 MB / 450.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009599/0.7444, allocations: 1.132 MB / 451.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006576/0.7511, allocations: 2.515 MB / 454 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008547/0.7597, allocations: 2.593 MB / 456.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03708/0.7968, allocations: 22.15 MB / 478.7 MB, free: 6.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.377e-06/0.7969, allocations: 4 kB / 478.8 MB, free: 6.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.271e-06/0.7969, allocations: 3.984 kB / 478.8 MB, free: 6.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00122/0.7981, allocations: 0 / 478.8 MB, free: 6.906 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.05023/0.8484, allocations: 12.9 MB / 491.7 MB, free: 9.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.43e-05/0.8484, allocations: 8.031 kB / 491.7 MB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03626/0.8847, allocations: 6.231 MB / 497.9 MB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02467/0.9094, allocations: 7.892 MB / 0.4939 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001656/0.9112, allocations: 0.9351 MB / 0.4948 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007098/0.9183, allocations: 1.226 MB / 0.496 GB, free: 9.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06866/0.987, allocations: 18.92 MB / 0.5145 GB, free: 6.473 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008658/0.9879, allocations: 27.8 kB / 0.5145 GB, free: 6.445 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005824/0.9938, allocations: 0.5078 MB / 0.515 GB, free: 5.938 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001053/0.9949, allocations: 0.6582 MB / 0.5157 GB, free: 5.277 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5333/1.528, allocations: 16.93 MB / 0.5322 GB, free: 109.9 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1279/1.656, allocations: 60.67 MB / 0.5915 GB, free: 64.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02476/1.681, allocations: 33.1 MB / 0.6238 GB, free: 27.36 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006334/1.687, allocations: 3.821 MB / 0.6275 GB, free: 23.53 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01821/1.706, allocations: 8.906 MB / 0.6362 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.429e-05/1.706, allocations: 77.41 kB / 0.6363 GB, free: 14.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=361): time 6.682e-06/1.706, allocations: 0 / 0.6363 GB, free: 14.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=403): time 0.04308/1.749, allocations: 18.6 MB / 0.6544 GB, free: 11.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/1.749, allocations: 102.5 kB / 0.6545 GB, free: 11.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01529/1.764, allocations: 5.197 MB / 0.6596 GB, free: 6.539 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001419/1.766, allocations: 93.7 kB / 0.6597 GB, free: 6.441 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006088/1.772, allocations: 5.61 MB / 0.6652 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002793/1.775, allocations: 1.404 MB / 0.6666 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00128/1.776, allocations: 140 kB / 0.6667 GB, free: 15.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0008921/1.777, allocations: 0.5796 MB / 0.6673 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006846/1.784, allocations: 2.938 MB / 0.6701 GB, free: 11.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00977/1.794, allocations: 5.992 MB / 0.676 GB, free: 4.312 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009888/1.804, allocations: 4.281 MB / 0.6802 GB, free: 12 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002827/1.804, allocations: 28.05 kB / 0.6802 GB, free: 15.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.0261/1.83, allocations: 10.03 MB / 0.69 GB, free: 5.891 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001788/1.83, allocations: 48 kB / 0.69 GB, free: 5.844 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002403/1.831, allocations: 104 kB / 0.6901 GB, free: 5.742 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002836/1.833, allocations: 0.9493 MB / 0.6911 GB, free: 4.777 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006938/1.84, allocations: 1.634 MB / 0.6927 GB, free: 3.141 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3449/2.185, allocations: 9.494 MB / 0.7019 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007134/2.192, allocations: 413.7 kB / 0.7023 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001423/2.194, allocations: 364.2 kB / 0.7027 GB, free: 139.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01444/2.208, allocations: 4.309 MB / 0.7069 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002241/2.211, allocations: 0.5406 MB / 0.7074 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/2.225, allocations: 6.656 MB / 0.7139 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.593e-05/2.225, allocations: 45.39 kB / 0.7139 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.603e-05/2.225, allocations: 8.469 kB / 0.714 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.44e-05/2.225, allocations: 21.72 kB / 0.714 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03021/2.255, allocations: 16.22 MB / 0.7298 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/2.255, allocations: 3.781 kB / 0.7298 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003016/2.258, allocations: 0.7708 MB / 0.7306 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001936/2.26, allocations: 0.7922 MB / 0.7313 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002912/2.26, allocations: 87.92 kB / 0.7314 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00873/2.269, allocations: 8.663 MB / 0.7399 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/2.269, allocations: 9.266 kB / 0.7399 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/2.283, allocations: 9.751 MB / 0.7494 GB, free: 118.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003032/2.286, allocations: 1.107 MB / 0.7505 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008417/2.287, allocations: 76.95 kB / 0.7506 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002116/2.289, allocations: 232.7 kB / 0.7508 GB, free: 117.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000597/2.29, allocations: 277.1 kB / 0.7511 GB, free: 117.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002449/2.29, allocations: 123.3 kB / 0.7512 GB, free: 117.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005973/2.296, allocations: 3.456 MB / 0.7546 GB, free: 115.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.41e-07/2.296, allocations: 0 / 0.7546 GB, free: 115.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01024/2.306, allocations: 1.935 MB / 0.7564 GB, free: 113.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009734/2.307, allocations: 279.4 kB / 0.7567 GB, free: 113 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01237/2.32, allocations: 7.771 MB / 0.7643 GB, free: 106.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/2.32, allocations: 0 / 0.7643 GB, free: 106.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005514/2.325, allocations: 3.625 MB / 0.7678 GB, free: 102.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01006/2.335, allocations: 1.334 MB / 0.7691 GB, free: 101.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05204/2.388, allocations: 24.25 MB / 0.7928 GB, free: 77.29 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009553/2.397, allocations: 7.198 MB / 0.7999 GB, free: 70.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002614/2.4, allocations: 483.3 kB / 0.8003 GB, free: 69.57 MB / 478.1 MB Notification: Performance of SimCode: time 1.673e-06/2.4, allocations: 0 / 0.8003 GB, free: 69.57 MB / 478.1 MB Notification: Performance of Templates: time 1.586/3.986, allocations: 471.9 MB / 1.261 GB, free: 164.9 MB / 0.4982 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1