Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003704, allocations: 16 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08149/0.08189, allocations: 44.51 MB / 308.5 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3995/0.4815, allocations: 130.3 MB / 438.8 MB, free: 11.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.4818, allocations: 92.52 kB / 438.9 MB, free: 11.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7013/1.183, allocations: 130.4 MB / 0.5559 GB, free: 69.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.766e-06/1.183, allocations: 4 kB / 0.5559 GB, free: 69.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004999/1.184, allocations: 148.6 kB / 0.5561 GB, free: 69.53 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02086/1.205, allocations: 6.002 MB / 0.5619 GB, free: 67.22 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/1.205, allocations: 11.69 kB / 0.562 GB, free: 67.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008132/1.213, allocations: 1.156 MB / 0.5631 GB, free: 66.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01652/1.229, allocations: 4.913 MB / 0.5679 GB, free: 66.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004934/1.23, allocations: 428.5 kB / 0.5683 GB, free: 66.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002115/1.232, allocations: 0.5577 MB / 0.5688 GB, free: 66.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02151/1.253, allocations: 7.164 MB / 0.5758 GB, free: 65.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002316/1.254, allocations: 9.047 kB / 0.5758 GB, free: 65.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001584/1.255, allocations: 244.3 kB / 0.5761 GB, free: 65.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002431/1.256, allocations: 251.2 kB / 0.5763 GB, free: 65.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.017/1.273, allocations: 5.788 MB / 0.582 GB, free: 65.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05196/1.325, allocations: 23.77 MB / 0.6052 GB, free: 54.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009799/1.334, allocations: 8.72 MB / 0.6137 GB, free: 47.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01667/1.351, allocations: 6.76 MB / 0.6203 GB, free: 43.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.995e-05/1.351, allocations: 63.62 kB / 0.6204 GB, free: 43.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=250): time 6.851e-06/1.351, allocations: 0 / 0.6204 GB, free: 43.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=302): time 0.05045/1.402, allocations: 16.42 MB / 0.6364 GB, free: 33.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/1.402, allocations: 81.75 kB / 0.6365 GB, free: 33.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006697/1.409, allocations: 2.95 MB / 0.6393 GB, free: 31.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005383/1.409, allocations: 73.7 kB / 0.6394 GB, free: 30.99 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001632/1.411, allocations: 2.449 MB / 0.6418 GB, free: 28.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001104/1.412, allocations: 1.023 MB / 0.6428 GB, free: 27.83 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/1.412, allocations: 76 kB / 0.6429 GB, free: 27.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002236/1.413, allocations: 461.6 kB / 0.6433 GB, free: 27.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003591/1.416, allocations: 1.628 MB / 0.6449 GB, free: 25.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00435/1.42, allocations: 2.799 MB / 0.6476 GB, free: 22.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004433/1.425, allocations: 2.1 MB / 0.6497 GB, free: 21.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-05/1.425, allocations: 12 kB / 0.6497 GB, free: 21.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=484) (initialization): time 0.01259/1.438, allocations: 5.491 MB / 0.6551 GB, free: 16.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.824e-05/1.438, allocations: 27.89 kB / 0.6551 GB, free: 16.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.02e-05/1.438, allocations: 36.72 kB / 0.6551 GB, free: 16.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002819/1.441, allocations: 0.8672 MB / 0.656 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004359/1.445, allocations: 0.8834 MB / 0.6568 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/1.459, allocations: 10.05 MB / 0.6666 GB, free: 5.055 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004577/1.464, allocations: 236.5 kB / 0.6669 GB, free: 4.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007929/1.465, allocations: 171.2 kB / 0.667 GB, free: 4.703 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * 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 (431): * Single equations (assignments): 422 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004649/1.469, allocations: 1.63 MB / 0.6686 GB, free: 3.234 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001171/1.47, allocations: 394.3 kB / 0.669 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2711/1.741, allocations: 5.048 MB / 0.6739 GB, free: 62.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.19e-05/1.742, allocations: 29.06 kB / 0.674 GB, free: 62.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.561e-05/1.742, allocations: 11.09 kB / 0.674 GB, free: 62.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-05/1.742, allocations: 14.48 kB / 0.674 GB, free: 62.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02988/1.772, allocations: 10.56 MB / 0.6843 GB, free: 61.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01099/1.783, allocations: 4.125 MB / 0.6883 GB, free: 61.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003316/1.786, allocations: 0.515 MB / 0.6888 GB, free: 61.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003563/1.79, allocations: 0.9813 MB / 0.6898 GB, free: 61.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005558/1.79, allocations: 73.36 kB / 0.6899 GB, free: 61.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0196/1.81, allocations: 15.11 MB / 0.7046 GB, free: 53.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.013e-06/1.81, allocations: 6.219 kB / 0.7046 GB, free: 53.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01682/1.827, allocations: 7.654 MB / 0.7121 GB, free: 51.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002934/1.83, allocations: 0.794 MB / 0.7129 GB, free: 51.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001441/1.831, allocations: 66.94 kB / 0.7129 GB, free: 51.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003549/1.835, allocations: 188.2 kB / 0.7131 GB, free: 51.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008603/1.836, allocations: 223.7 kB / 0.7133 GB, free: 51.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003301/1.836, allocations: 90.12 kB / 0.7134 GB, free: 51.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005661/1.842, allocations: 2.234 MB / 0.7156 GB, free: 51.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.203e-06/1.842, allocations: 0 / 0.7156 GB, free: 51.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006851/1.849, allocations: 1.214 MB / 0.7168 GB, free: 51.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (241): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00143/1.85, allocations: 0.5028 MB / 0.7173 GB, free: 51.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01142/1.861, allocations: 4.996 MB / 0.7221 GB, free: 50.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/1.862, allocations: 7.047 kB / 0.7222 GB, free: 50.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007214/1.869, allocations: 3.16 MB / 0.7252 GB, free: 49.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005608/1.874, allocations: 0.8313 MB / 0.7261 GB, free: 48.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02554/1.9, allocations: 12.64 MB / 0.7384 GB, free: 41.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006553/1.907, allocations: 3.535 MB / 0.7418 GB, free: 40.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001668/1.908, allocations: 279.6 kB / 0.7421 GB, free: 40.7 MB / 410.7 MB Notification: Performance of SimCode: time 2.093e-06/1.908, allocations: 0 / 0.7421 GB, free: 40.7 MB / 410.7 MB Notification: Performance of Templates: time 0.5155/2.424, allocations: 212.5 MB / 0.9496 GB, free: 11.19 MB / 426.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:375:38: error: use of undeclared identifier \'_omcQ_24tmpVar10_\'; did you mean \'_omcQ_24tmpVar11_\'?\n _omcQ_24tmpVar11_ = std::cos(_omcQ_24tmpVar10_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar11_\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:352:12: note: \'_omcQ_24tmpVar11_\' declared here\n double _omcQ_24tmpVar11_;\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:412:38: error: use of undeclared identifier \'_omcQ_24tmpVar13_\'; did you mean \'_omcQ_24tmpVar14_\'?\n _omcQ_24tmpVar14_ = std::sin(_omcQ_24tmpVar13_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar14_\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:389:12: note: \'_omcQ_24tmpVar14_\' declared here\n double _omcQ_24tmpVar14_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o] Error 1\n'