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.78/1.78, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.564e-05/2.577e-05, allocations: 2.844 kB / 255.3 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07703/0.07708, allocations: 44.51 MB / 299.8 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3554/0.4325, allocations: 104.1 MB / 404 MB, free: 16.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.4328, allocations: 85.42 kB / 404.1 MB, free: 16.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2004/0.6333, allocations: 51.4 MB / 455.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.836e-06/0.6333, allocations: 0 / 455.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002195/0.6336, allocations: 59.94 kB / 455.5 MB, free: 15.5 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.006926/0.6405, allocations: 2.439 MB / 457.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.6406, allocations: 19.97 kB / 458 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001723/0.6423, allocations: 332.3 kB / 458.3 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005491/0.6478, allocations: 1.758 MB / 460.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.6481, allocations: 157.4 kB / 460.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007766/0.6489, allocations: 202.3 kB / 460.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007308/0.6562, allocations: 2.595 MB / 463 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.101e-05/0.6564, allocations: 7.938 kB / 463 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003404/0.6567, allocations: 84 kB / 463.1 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.6569, allocations: 83.94 kB / 463.2 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006267/0.6632, allocations: 2.065 MB / 465.2 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02193/0.6851, allocations: 8.326 MB / 473.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004028/0.6892, allocations: 1.592 MB / 475.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002394/0.6917, allocations: 0.9688 MB / 476.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004255/0.6921, allocations: 142 kB / 476.3 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.106e-05/0.6922, allocations: 47.94 kB / 476.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 5.116e-06/0.6922, allocations: 4 kB / 476.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.0145/0.7067, allocations: 5.036 MB / 481.3 MB, free: 6.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.7068, allocations: 68.7 kB / 481.4 MB, free: 6.441 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004369/0.7112, allocations: 1.858 MB / 483.3 MB, free: 4.535 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002975/0.7116, allocations: 45.7 kB / 483.3 MB, free: 4.484 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.7127, allocations: 1.001 MB / 484.3 MB, free: 3.473 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000708/0.7134, allocations: 473.2 kB / 484.8 MB, free: 3.004 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.7135, allocations: 28 kB / 484.8 MB, free: 2.977 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002379/0.7138, allocations: 366.8 kB / 485.2 MB, free: 2.609 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001653/0.7155, allocations: 0.7107 MB / 485.9 MB, free: 1.898 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00195/0.7174, allocations: 0.9629 MB / 486.8 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002033/0.7195, allocations: 0.8811 MB / 487.7 MB, free: 15.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.7195, allocations: 4 kB / 487.7 MB, free: 15.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006878/0.7264, allocations: 2.6 MB / 490.3 MB, free: 13.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.667e-05/0.7265, allocations: 37.69 kB / 490.4 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.301e-05/0.7266, allocations: 12.19 kB / 490.4 MB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003239/0.7298, allocations: 0.8376 MB / 491.2 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/0.7315, allocations: 283.5 kB / 491.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01792/0.7495, allocations: 9.271 MB / 0.489 GB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.7513, allocations: 99.89 kB / 0.4891 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/0.7515, allocations: 59.92 kB / 0.4892 GB, free: 2.457 MB / 378.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 () * 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.0003942/0.7519, allocations: 176.8 kB / 0.4893 GB, free: 2.277 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005131/0.7525, allocations: 197.6 kB / 0.4895 GB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006293/0.7588, allocations: 2.47 MB / 0.4919 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.402e-05/0.7588, allocations: 15.98 kB / 0.492 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.7589, allocations: 12 kB / 0.492 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.342e-05/0.7589, allocations: 3.984 kB / 0.492 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/0.7718, allocations: 5 MB / 0.4969 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.527e-05/0.7719, allocations: 7.938 kB / 0.4969 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/0.7733, allocations: 224.1 kB / 0.4971 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002967/0.7763, allocations: 0.7095 MB / 0.4978 GB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002417/0.7766, allocations: 35.98 kB / 0.4978 GB, free: 9.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/0.7982, allocations: 8.448 MB / 0.5061 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.99e-06/0.7983, allocations: 7.938 kB / 0.5061 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2694/1.068, allocations: 3.6 MB / 0.5096 GB, free: 92.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/1.069, allocations: 477.4 kB / 0.51 GB, free: 92.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003791/1.069, allocations: 30.55 kB / 0.5101 GB, free: 92.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/1.071, allocations: 96.95 kB / 0.5102 GB, free: 92.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003562/1.071, allocations: 108.9 kB / 0.5103 GB, free: 92.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/1.071, allocations: 42.14 kB / 0.5103 GB, free: 92.81 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003034/1.074, allocations: 1.443 MB / 0.5117 GB, free: 92.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.245e-06/1.074, allocations: 0 / 0.5117 GB, free: 92.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002991/1.077, allocations: 0.5917 MB / 0.5123 GB, free: 92.65 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * 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.001365/1.079, allocations: 496.2 kB / 0.5128 GB, free: 92.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005329/1.084, allocations: 2.442 MB / 0.5151 GB, free: 92.12 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.26e-06/1.084, allocations: 1.344 kB / 0.5151 GB, free: 92.12 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003599/1.088, allocations: 1.681 MB / 0.5168 GB, free: 91.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/1.091, allocations: 407.6 kB / 0.5172 GB, free: 91.58 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009599/1.1, allocations: 4.333 MB / 0.5214 GB, free: 90.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002046/1.102, allocations: 1.983 MB / 0.5233 GB, free: 89.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007495/1.103, allocations: 141 kB / 0.5235 GB, free: 89.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.941e-06/1.103, allocations: 0 / 0.5235 GB, free: 89.9 MB / 394.7 MB Notification: Performance of Templates: time 0.07772/1.181, allocations: 61.53 MB / 0.5836 GB, free: 61.33 MB / 394.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.makefile 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 In file included from OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:397:34: error: use of undeclared identifier 'D_24tmpVar10_'; did you mean 'D_24tmpVar11_'? D_24tmpVar11_ = std::cos(D_24tmpVar10_); ^~~~~~~~~~~~~ D_24tmpVar11_ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:374:12: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:434:34: error: use of undeclared identifier 'D_24tmpVar13_'; did you mean 'D_24tmpVar14_'? D_24tmpVar14_ = std::sin(D_24tmpVar13_); ^~~~~~~~~~~~~ D_24tmpVar14_ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:411:12: note: 'D_24tmpVar14_' declared here double D_24tmpVar14_; ^ 2 errors generated. : recipe for target 'OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesCalcHelperMain.o] Error 1