Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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.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.736/1.736, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003503, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07637/0.07674, allocations: 44.51 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.422/0.4987, allocations: 104.2 MB / 412.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.499, allocations: 94.47 kB / 412.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2296/0.7286, allocations: 51.37 MB / 464.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.89e-06/0.7287, allocations: 0 / 464.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003304/0.729, allocations: 55.94 kB / 464.2 MB, free: 9.309 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.01175/0.7408, allocations: 2.776 MB / 467 MB, free: 6.637 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.7409, allocations: 8.031 kB / 467 MB, free: 6.629 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002366/0.7433, allocations: 340.2 kB / 467.3 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008408/0.7517, allocations: 1.779 MB / 469.1 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002865/0.7521, allocations: 148.8 kB / 469.2 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009167/0.753, allocations: 203.9 kB / 469.4 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0118/0.7648, allocations: 2.674 MB / 472.1 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001395/0.765, allocations: 7.938 kB / 472.1 MB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005939/0.7656, allocations: 87.98 kB / 472.2 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000207/0.7659, allocations: 95.92 kB / 472.3 MB, free: 1.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/0.777, allocations: 2.186 MB / 474.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03363/0.8107, allocations: 8.329 MB / 482.8 MB, free: 6.848 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007131/0.8179, allocations: 1.681 MB / 484.5 MB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005911/0.8185, allocations: 142 kB / 484.6 MB, free: 4.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.718e-05/0.8186, allocations: 44.03 kB / 484.7 MB, free: 4.891 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 7.62e-06/0.8186, allocations: 0 / 484.7 MB, free: 4.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.03284/0.8515, allocations: 6.694 MB / 491.4 MB, free: 14.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.737e-05/0.8516, allocations: 64.72 kB / 491.4 MB, free: 13.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007112/0.8588, allocations: 1.881 MB / 493.3 MB, free: 12.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003846/0.8592, allocations: 45.7 kB / 493.3 MB, free: 11.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001613/0.8608, allocations: 1.004 MB / 494.4 MB, free: 10.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009131/0.8618, allocations: 469.2 kB / 494.8 MB, free: 10.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/0.862, allocations: 28 kB / 494.8 MB, free: 10.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003192/0.8624, allocations: 366.8 kB / 495.2 MB, free: 10.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003423/0.8658, allocations: 0.773 MB / 496 MB, free: 9.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003848/0.8697, allocations: 1.017 MB / 497 MB, free: 8.234 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004012/0.8738, allocations: 0.9333 MB / 497.9 MB, free: 7.293 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-05/0.8738, allocations: 4 kB / 497.9 MB, free: 7.289 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01272/0.8866, allocations: 2.737 MB / 0.4889 GB, free: 4.531 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.8868, allocations: 37.7 kB / 0.489 GB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.199e-05/0.8868, allocations: 12.25 kB / 0.489 GB, free: 4.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005098/0.892, allocations: 0.8345 MB / 0.4898 GB, free: 3.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002779/0.8948, allocations: 279.5 kB / 0.4901 GB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03097/0.9258, allocations: 9.65 MB / 0.4995 GB, free: 9.438 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.9276, allocations: 95.89 kB / 0.4996 GB, free: 9.344 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000286/0.928, allocations: 55.98 kB / 0.4996 GB, free: 9.289 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.002078/0.9301, allocations: 0.7434 MB / 0.5004 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006571/0.9307, allocations: 201.5 kB / 0.5005 GB, free: 8.336 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006904/0.9376, allocations: 2.598 MB / 0.5031 GB, free: 5.715 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/0.9377, allocations: 12 kB / 0.5031 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.9377, allocations: 8 kB / 0.5031 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-05/0.9378, allocations: 3.984 kB / 0.5031 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/0.9514, allocations: 5.1 MB / 0.5081 GB, free: 0.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-05/0.9515, allocations: 7.953 kB / 0.5081 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.953, allocations: 216.1 kB / 0.5083 GB, free: 288 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002862/0.9559, allocations: 0.7168 MB / 0.509 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002206/0.9561, allocations: 35.98 kB / 0.509 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/0.9707, allocations: 8.689 MB / 0.5175 GB, free: 6.426 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.286e-06/0.9707, allocations: 0 / 0.5175 GB, free: 6.426 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009124/0.9799, allocations: 3.724 MB / 0.5212 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/0.9813, allocations: 474.5 kB / 0.5216 GB, free: 2.121 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003612/0.9817, allocations: 35.98 kB / 0.5216 GB, free: 2.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.983, allocations: 95.86 kB / 0.5217 GB, free: 1.992 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003526/0.9834, allocations: 113 kB / 0.5218 GB, free: 1.883 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/0.9835, allocations: 39.98 kB / 0.5219 GB, free: 1.844 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003048/0.9866, allocations: 1.464 MB / 0.5233 GB, free: 364 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.044e-06/0.9866, allocations: 3.938 kB / 0.5233 GB, free: 360 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.2227/1.209, allocations: 0.5993 MB / 0.5239 GB, free: 108.8 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.001427/1.211, allocations: 0.4889 MB / 0.5244 GB, free: 108.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005402/1.216, allocations: 2.578 MB / 0.5269 GB, free: 108.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.076e-06/1.216, allocations: 0 / 0.5269 GB, free: 108.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003789/1.22, allocations: 1.745 MB / 0.5286 GB, free: 107.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/1.222, allocations: 404.4 kB / 0.529 GB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/1.233, allocations: 6.137 MB / 0.535 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002434/1.235, allocations: 1.986 MB / 0.5369 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000769/1.236, allocations: 144.9 kB / 0.5371 GB, free: 104.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.788e-06/1.236, allocations: 0 / 0.5371 GB, free: 104.6 MB / 410.7 MB Notification: Performance of Templates: time 0.07652/1.313, allocations: 61.55 MB / 0.5972 GB, free: 78.93 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=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.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'