Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.93/1.93, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004904/0.0004906, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09586, allocations: 44.51 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.478/0.5739, allocations: 130.3 MB / 439.3 MB, free: 9.789 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003389/0.5743, allocations: 95.44 kB / 439.4 MB, free: 9.738 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8252/1.4, allocations: 130.4 MB / 0.5565 GB, free: 70.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.018e-06/1.4, allocations: 3.094 kB / 0.5565 GB, free: 70.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007554/1.4, allocations: 142.2 kB / 0.5566 GB, free: 70.93 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.02604/1.426, allocations: 6.01 MB / 0.5625 GB, free: 68.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/1.426, allocations: 8.469 kB / 0.5625 GB, free: 68.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008895/1.435, allocations: 1.152 MB / 0.5636 GB, free: 68.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01856/1.454, allocations: 4.928 MB / 0.5684 GB, free: 67.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005516/1.455, allocations: 418.3 kB / 0.5688 GB, free: 67.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002415/1.457, allocations: 0.5614 MB / 0.5694 GB, free: 67.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02426/1.481, allocations: 7.205 MB / 0.5764 GB, free: 66.76 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000302/1.482, allocations: 16.48 kB / 0.5764 GB, free: 66.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00195/1.484, allocations: 238.9 kB / 0.5766 GB, free: 66.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003489/1.484, allocations: 248.6 kB / 0.5769 GB, free: 66.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0211/1.505, allocations: 5.786 MB / 0.5825 GB, free: 66.69 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06263/1.568, allocations: 23.77 MB / 0.6057 GB, free: 55.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01232/1.58, allocations: 8.714 MB / 0.6142 GB, free: 48.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02015/1.6, allocations: 6.76 MB / 0.6208 GB, free: 44.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.816e-05/1.601, allocations: 65.31 kB / 0.6209 GB, free: 44.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=250): time 5.991e-06/1.601, allocations: 0 / 0.6209 GB, free: 44.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=302): time 0.06884/1.669, allocations: 16.41 MB / 0.6369 GB, free: 33.37 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/1.67, allocations: 93.69 kB / 0.637 GB, free: 33.26 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008078/1.678, allocations: 3.318 MB / 0.6403 GB, free: 30.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006855/1.678, allocations: 77.7 kB / 0.6403 GB, free: 30.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001943/1.68, allocations: 2.454 MB / 0.6427 GB, free: 28.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001378/1.682, allocations: 1.022 MB / 0.6437 GB, free: 27.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003646/1.682, allocations: 76 kB / 0.6438 GB, free: 27.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002338/1.682, allocations: 463.6 kB / 0.6442 GB, free: 26.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004298/1.687, allocations: 1.626 MB / 0.6458 GB, free: 25.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005678/1.692, allocations: 2.807 MB / 0.6486 GB, free: 22.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005656/1.698, allocations: 2.103 MB / 0.6506 GB, free: 20.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.179e-05/1.698, allocations: 12 kB / 0.6506 GB, free: 20.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=484) (initialization): time 0.01606/1.714, allocations: 5.495 MB / 0.656 GB, free: 15.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.308e-05/1.714, allocations: 20.62 kB / 0.656 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.442e-05/1.714, allocations: 43.47 kB / 0.6561 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003512/1.718, allocations: 0.8604 MB / 0.6569 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006544/1.725, allocations: 0.8893 MB / 0.6578 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/1.742, allocations: 10.04 MB / 0.6676 GB, free: 4.379 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005353/1.747, allocations: 231.6 kB / 0.6678 GB, free: 4.195 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007666/1.748, allocations: 170.8 kB / 0.668 GB, free: 4.035 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.005295/1.753, allocations: 1.62 MB / 0.6696 GB, free: 2.574 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/1.755, allocations: 395.2 kB / 0.6699 GB, free: 2.184 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4202/2.175, allocations: 5.321 MB / 0.6751 GB, free: 64.01 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-05/2.175, allocations: 27.44 kB / 0.6752 GB, free: 64.01 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.54e-05/2.175, allocations: 11.62 kB / 0.6752 GB, free: 64.01 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.095e-05/2.175, allocations: 12.75 kB / 0.6752 GB, free: 64.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04446/2.22, allocations: 10.56 MB / 0.6855 GB, free: 63.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01989/2.24, allocations: 4.122 MB / 0.6895 GB, free: 62.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006272/2.246, allocations: 0.5177 MB / 0.69 GB, free: 62.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006389/2.252, allocations: 0.9888 MB / 0.691 GB, free: 62.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007999/2.253, allocations: 76.28 kB / 0.6911 GB, free: 62.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03125/2.284, allocations: 15.11 MB / 0.7058 GB, free: 54.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.139e-05/2.285, allocations: 11 kB / 0.7058 GB, free: 54.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0196/2.304, allocations: 7.071 MB / 0.7127 GB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003366/2.308, allocations: 0.7971 MB / 0.7135 GB, free: 53.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001708/2.309, allocations: 70 kB / 0.7136 GB, free: 53.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004726/2.314, allocations: 191.4 kB / 0.7138 GB, free: 53.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009855/2.315, allocations: 222.3 kB / 0.714 GB, free: 53.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003062/2.315, allocations: 93.3 kB / 0.7141 GB, free: 53.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006446/2.322, allocations: 2.23 MB / 0.7162 GB, free: 53.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.322, allocations: 1.625 kB / 0.7162 GB, free: 53.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007265/2.329, allocations: 1.214 MB / 0.7174 GB, free: 53.59 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.001506/2.331, allocations: 0.4955 MB / 0.7179 GB, free: 53.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01337/2.344, allocations: 5 MB / 0.7228 GB, free: 52.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/2.344, allocations: 0 / 0.7228 GB, free: 52.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00853/2.353, allocations: 3.16 MB / 0.7259 GB, free: 51.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006941/2.36, allocations: 0.8282 MB / 0.7267 GB, free: 51.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02999/2.39, allocations: 12.66 MB / 0.739 GB, free: 44.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006105/2.396, allocations: 3.538 MB / 0.7425 GB, free: 42.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/2.398, allocations: 283.4 kB / 0.7428 GB, free: 42.97 MB / 410.7 MB Notification: Performance of SimCode: time 1.252e-06/2.398, allocations: 0 / 0.7428 GB, free: 42.97 MB / 410.7 MB Notification: Performance of Templates: time 1.101/3.499, allocations: 212.5 MB / 0.9503 GB, free: 11.27 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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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'