Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003517, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09146, allocations: 44.5 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4642/0.5557, allocations: 104.2 MB / 413.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.5561, allocations: 99.97 kB / 413.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2427/0.7988, allocations: 51.37 MB / 464.7 MB, free: 7.812 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7988, allocations: 0 / 464.7 MB, free: 7.812 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003723/0.7992, allocations: 59.92 kB / 464.7 MB, free: 7.754 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.01116/0.8104, allocations: 2.781 MB / 467.5 MB, free: 5.074 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.8104, allocations: 8.031 kB / 467.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.8125, allocations: 338.8 kB / 467.8 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006971/0.8195, allocations: 1.771 MB / 469.6 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002504/0.8198, allocations: 148 kB / 469.7 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009843/0.8208, allocations: 211.9 kB / 470 MB, free: 2.672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009823/0.8306, allocations: 2.685 MB / 472.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.8308, allocations: 7.984 kB / 472.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004959/0.8313, allocations: 84 kB / 472.7 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001508/0.8315, allocations: 91.88 kB / 472.8 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008498/0.84, allocations: 2.194 MB / 475 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02556/0.8656, allocations: 8.329 MB / 483.3 MB, free: 4.945 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005666/0.8713, allocations: 1.685 MB / 485 MB, free: 3.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000512/0.8718, allocations: 142 kB / 485.2 MB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.252e-05/0.8719, allocations: 47.56 kB / 485.2 MB, free: 2.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.318e-06/0.8719, allocations: 0 / 485.2 MB, free: 2.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.02532/0.8972, allocations: 6.691 MB / 491.9 MB, free: 12.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.8973, allocations: 68.72 kB / 492 MB, free: 12.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005237/0.9026, allocations: 2.093 MB / 494.1 MB, free: 9.914 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003921/0.903, allocations: 49.7 kB / 494.1 MB, free: 9.859 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.9041, allocations: 0.9967 MB / 495.1 MB, free: 8.852 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007549/0.9049, allocations: 469.2 kB / 495.6 MB, free: 8.387 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.9051, allocations: 35.94 kB / 495.6 MB, free: 8.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002208/0.9053, allocations: 358.8 kB / 496 MB, free: 7.992 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002503/0.9078, allocations: 0.773 MB / 496.7 MB, free: 7.219 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002759/0.9106, allocations: 1.025 MB / 497.8 MB, free: 6.102 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.9136, allocations: 0.9372 MB / 498.7 MB, free: 5.164 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.9136, allocations: 3.984 kB / 498.7 MB, free: 5.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.009258/0.9229, allocations: 2.737 MB / 0.4897 GB, free: 2.402 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.732e-05/0.923, allocations: 33.7 kB / 0.4897 GB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.916e-05/0.923, allocations: 8 kB / 0.4897 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004026/0.9271, allocations: 0.8427 MB / 0.4905 GB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/0.9294, allocations: 267.6 kB / 0.4908 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02211/0.9515, allocations: 9.65 MB / 0.5002 GB, free: 7.316 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/0.954, allocations: 104 kB / 0.5003 GB, free: 7.215 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000298/0.9543, allocations: 55.98 kB / 0.5004 GB, free: 7.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (124): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002327/0.9566, allocations: 0.7355 MB / 0.5011 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008023/0.9574, allocations: 201.5 kB / 0.5013 GB, free: 6.215 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008817/0.9663, allocations: 2.602 MB / 0.5038 GB, free: 3.586 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.278e-05/0.9663, allocations: 12 kB / 0.5038 GB, free: 3.574 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/0.9664, allocations: 12 kB / 0.5038 GB, free: 3.562 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-05/0.9664, allocations: 3.984 kB / 0.5038 GB, free: 3.559 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/0.9828, allocations: 5.096 MB / 0.5088 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.911e-05/0.9829, allocations: 4 kB / 0.5088 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002014/0.9849, allocations: 223.9 kB / 0.509 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003553/0.9885, allocations: 0.7065 MB / 0.5097 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003143/0.9888, allocations: 35.98 kB / 0.5098 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01753/1.006, allocations: 8.687 MB / 0.5183 GB, free: 4.297 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.006, allocations: 4.062 kB / 0.5183 GB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0117/1.018, allocations: 3.64 MB / 0.5218 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002251/1.02, allocations: 478.5 kB / 0.5223 GB, free: 120 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007843/1.021, allocations: 31.94 kB / 0.5223 GB, free: 88 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.3742/1.395, allocations: 92.7 kB / 0.5224 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007968/1.396, allocations: 107.1 kB / 0.5225 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003123/1.397, allocations: 43.2 kB / 0.5225 GB, free: 107.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006046/1.403, allocations: 1.463 MB / 0.524 GB, free: 107.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.412e-06/1.403, allocations: 0 / 0.524 GB, free: 107.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004992/1.408, allocations: 0.6009 MB / 0.5245 GB, free: 107.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002371/1.41, allocations: 0.4969 MB / 0.525 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01223/1.423, allocations: 2.577 MB / 0.5275 GB, free: 107.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.423, allocations: 0 / 0.5275 GB, free: 107.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007709/1.43, allocations: 1.742 MB / 0.5292 GB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004711/1.435, allocations: 410.9 kB / 0.5296 GB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/1.45, allocations: 6.146 MB / 0.5356 GB, free: 104.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003949/1.454, allocations: 1.978 MB / 0.5376 GB, free: 103.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/1.455, allocations: 142 kB / 0.5377 GB, free: 103.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/1.455, allocations: 1.125 kB / 0.5377 GB, free: 103.6 MB / 410.7 MB Notification: Performance of Templates: time 0.1067/1.562, allocations: 61.56 MB / 0.5978 GB, free: 76.34 MB / 410.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:397: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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:374:12: note: \'_omcQ_24tmpVar11_\' declared here\n double _omcQ_24tmpVar11_;\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:434: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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:411:12: note: \'_omcQ_24tmpVar14_\' declared here\n double _omcQ_24tmpVar14_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesCalcHelperMain.o] Error 1\n'