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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|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_MultiPhase") Notification: Performance of loadModel(Modelica): time 2.186/2.186, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004869/0.0004871, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.09992, allocations: 44.51 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4869/0.5869, allocations: 117 MB / 425.9 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.5872, allocations: 97.31 kB / 426 MB, free: 6.465 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.005/1.592, allocations: 192.7 MB / 0.6043 GB, free: 59.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.086e-06/1.593, allocations: 0 / 0.6043 GB, free: 59.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008721/1.593, allocations: 210.6 kB / 0.6045 GB, free: 59.66 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03958/1.633, allocations: 8.698 MB / 0.613 GB, free: 55.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.114e-05/1.633, allocations: 11.66 kB / 0.613 GB, free: 55.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01569/1.649, allocations: 1.918 MB / 0.6148 GB, free: 55.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02732/1.676, allocations: 7.075 MB / 0.6218 GB, free: 51.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008927/1.677, allocations: 0.6345 MB / 0.6224 GB, free: 51.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003709/1.681, allocations: 0.8466 MB / 0.6232 GB, free: 51.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03946/1.72, allocations: 11.21 MB / 0.6341 GB, free: 43.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005054/1.721, allocations: 11.86 kB / 0.6342 GB, free: 43.35 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003164/1.724, allocations: 367.3 kB / 0.6345 GB, free: 43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004259/1.725, allocations: 375.2 kB / 0.6349 GB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03081/1.755, allocations: 9.054 MB / 0.6437 GB, free: 34.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4211/2.177, allocations: 35.86 MB / 0.6787 GB, free: 46.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02681/2.203, allocations: 16.97 MB / 0.6953 GB, free: 33.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03163/2.235, allocations: 9.409 MB / 0.7045 GB, free: 32.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.646e-05/2.235, allocations: 66.56 kB / 0.7045 GB, free: 32.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=327): time 7.304e-06/2.235, allocations: 0 / 0.7045 GB, free: 32.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=381): time 0.06713/2.302, allocations: 16.61 MB / 0.7208 GB, free: 29.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/2.303, allocations: 87.45 kB / 0.7208 GB, free: 29.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01114/2.314, allocations: 4.333 MB / 0.7251 GB, free: 29.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008637/2.315, allocations: 89.2 kB / 0.7252 GB, free: 29.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003076/2.318, allocations: 3.56 MB / 0.7286 GB, free: 27.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001931/2.32, allocations: 1.295 MB / 0.7299 GB, free: 26.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000586/2.32, allocations: 94.5 kB / 0.73 GB, free: 26.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003404/2.321, allocations: 499.2 kB / 0.7305 GB, free: 26.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00627/2.327, allocations: 1.975 MB / 0.7324 GB, free: 26.28 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007482/2.335, allocations: 3.394 MB / 0.7357 GB, free: 24.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007654/2.342, allocations: 2.56 MB / 0.7382 GB, free: 24.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.796e-05/2.342, allocations: 12.91 kB / 0.7382 GB, free: 24.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=597) (initialization): time 0.01966/2.362, allocations: 6.392 MB / 0.7445 GB, free: 23.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.047e-05/2.362, allocations: 21.19 kB / 0.7445 GB, free: 23.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/2.362, allocations: 46.59 kB / 0.7445 GB, free: 23.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003278/2.366, allocations: 0.7715 MB / 0.7453 GB, free: 23.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008205/2.374, allocations: 1.099 MB / 0.7464 GB, free: 23.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01743/2.391, allocations: 10.54 MB / 0.7566 GB, free: 31.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006807/2.398, allocations: 252.5 kB / 0.7569 GB, free: 30.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/2.399, allocations: 205 kB / 0.7571 GB, free: 30.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * 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 (541): * Single equations (assignments): 533 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007916/2.407, allocations: 2.542 MB / 0.7596 GB, free: 29.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001649/2.409, allocations: 490.2 kB / 0.76 GB, free: 29.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01876/2.428, allocations: 5.723 MB / 0.7656 GB, free: 26.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.786e-05/2.428, allocations: 38.72 kB / 0.7657 GB, free: 26.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.252e-05/2.428, allocations: 11.31 kB / 0.7657 GB, free: 26.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001/2.428, allocations: 17.48 kB / 0.7657 GB, free: 26.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05474/2.483, allocations: 13.85 MB / 0.7792 GB, free: 20.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001055/2.483, allocations: 6.656 kB / 0.7792 GB, free: 20.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007269/2.49, allocations: 0.6646 MB / 0.7799 GB, free: 20.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005021/2.495, allocations: 0.9115 MB / 0.7808 GB, free: 20.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009831/2.496, allocations: 87.02 kB / 0.7808 GB, free: 20.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03741/2.534, allocations: 14.29 MB / 0.7948 GB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.554e-05/2.534, allocations: 8.922 kB / 0.7948 GB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03666/2.571, allocations: 8.332 MB / 0.8029 GB, free: 5.719 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00576/2.576, allocations: 0.997 MB / 0.8039 GB, free: 5.055 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003416/2.58, allocations: 77.38 kB / 0.804 GB, free: 5.004 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008725/2.589, allocations: 218.6 kB / 0.8042 GB, free: 4.945 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001893/2.591, allocations: 292.1 kB / 0.8045 GB, free: 4.891 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001146/2.592, allocations: 106.4 kB / 0.8046 GB, free: 4.867 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009032/2.601, allocations: 2.922 MB / 0.8074 GB, free: 3.605 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.02e-07/2.601, allocations: 0 / 0.8074 GB, free: 3.605 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01234/2.613, allocations: 1.552 MB / 0.8089 GB, free: 2.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (303): * Single equations (assignments): 296 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002402/2.616, allocations: 0.5432 MB / 0.8095 GB, free: 1.625 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.04926/2.665, allocations: 5.919 MB / 0.8153 GB, free: 12.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.597e-05/2.665, allocations: 0 / 0.8153 GB, free: 12.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02507/2.69, allocations: 3.605 MB / 0.8188 GB, free: 9.047 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01352/2.704, allocations: 1.063 MB / 0.8198 GB, free: 8.207 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08227/2.786, allocations: 18.02 MB / 0.8374 GB, free: 7.488 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0147/2.801, allocations: 5.091 MB / 0.8424 GB, free: 3.719 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002776/2.804, allocations: 364.1 kB / 0.8427 GB, free: 3.383 MB / 458.7 MB Notification: Performance of SimCode: time 1.302e-06/2.804, allocations: 4 kB / 0.8427 GB, free: 3.379 MB / 458.7 MB Notification: Performance of Templates: time 1.832/4.636, allocations: 320.4 MB / 1.156 GB, free: 30.75 MB / 474.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.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_Generator_MultiPhaseCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:366: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_Generator_MultiPhaseFunctions.cpp:343:12: note: \'_omcQ_24tmpVar11_\' declared here\n double _omcQ_24tmpVar11_;\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:403: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_Generator_MultiPhaseFunctions.cpp:380: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_Generator_MultiPhaseCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.o] Error 1\n'