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.774/1.774, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.795e-05/2.806e-05, allocations: 4 kB / 255.4 MB, free: 3.164 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07686/0.07691, allocations: 44.5 MB / 299.9 MB, free: 6.605 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3615/0.4385, allocations: 104.1 MB / 404 MB, free: 16.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.4387, allocations: 82.39 kB / 404.1 MB, free: 16.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1977/0.6365, allocations: 51.41 MB / 455.5 MB, free: 15.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.6365, allocations: 0 / 455.5 MB, free: 15.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002274/0.6368, allocations: 55.94 kB / 455.5 MB, free: 15.84 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.006589/0.6434, allocations: 2.442 MB / 458 MB, free: 13.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.6435, allocations: 12.02 kB / 458 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.6449, allocations: 340.1 kB / 458.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00483/0.6497, allocations: 1.751 MB / 460.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.6499, allocations: 149.8 kB / 460.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005552/0.6505, allocations: 218.4 kB / 460.4 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005934/0.6565, allocations: 2.57 MB / 463 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.543e-05/0.6566, allocations: 7.984 kB / 463 MB, free: 9.355 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003094/0.6569, allocations: 84 kB / 463.1 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001327/0.657, allocations: 87.94 kB / 463.2 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005089/0.6621, allocations: 2.034 MB / 465.2 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01914/0.6813, allocations: 8.322 MB / 473.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003658/0.685, allocations: 1.582 MB / 475.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002135/0.6872, allocations: 0.965 MB / 476.1 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003858/0.6876, allocations: 142 kB / 476.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/0.6877, allocations: 51.5 kB / 476.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 5.034e-06/0.6877, allocations: 4 kB / 476.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.01371/0.7014, allocations: 5.032 MB / 481.3 MB, free: 6.695 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/0.7015, allocations: 64.72 kB / 481.4 MB, free: 6.621 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00419/0.7057, allocations: 1.862 MB / 483.2 MB, free: 4.711 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002855/0.706, allocations: 45.7 kB / 483.3 MB, free: 4.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.7071, allocations: 1.004 MB / 484.3 MB, free: 3.645 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000686/0.7078, allocations: 461.2 kB / 484.7 MB, free: 3.188 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.708, allocations: 28 kB / 484.8 MB, free: 3.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002422/0.7082, allocations: 374.8 kB / 485.1 MB, free: 2.785 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/0.7099, allocations: 0.7068 MB / 485.8 MB, free: 2.078 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0019/0.7118, allocations: 0.9551 MB / 486.8 MB, free: 1.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001947/0.7138, allocations: 0.881 MB / 487.7 MB, free: 156 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.101e-06/0.7138, allocations: 0 / 487.7 MB, free: 156 kB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006665/0.7205, allocations: 2.593 MB / 490.3 MB, free: 13.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.975e-05/0.7206, allocations: 33.7 kB / 490.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-05/0.7206, allocations: 8 kB / 490.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003215/0.7239, allocations: 0.8382 MB / 491.1 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/0.7256, allocations: 271.6 kB / 491.4 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01783/0.7434, allocations: 9.293 MB / 0.489 GB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.7453, allocations: 95.91 kB / 0.4891 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002781/0.7456, allocations: 55.98 kB / 0.4891 GB, free: 2.656 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.0004133/0.7461, allocations: 184.7 kB / 0.4893 GB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006165/0.7467, allocations: 197.6 kB / 0.4895 GB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006329/0.753, allocations: 2.474 MB / 0.4919 GB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/0.7531, allocations: 12 kB / 0.4919 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.7531, allocations: 8 kB / 0.4919 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-05/0.7532, allocations: 11.97 kB / 0.4919 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01327/0.7665, allocations: 4.996 MB / 0.4968 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.86e-05/0.7665, allocations: 4 kB / 0.4968 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/0.768, allocations: 219.9 kB / 0.497 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002889/0.771, allocations: 0.699 MB / 0.4977 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002421/0.7712, allocations: 43.97 kB / 0.4977 GB, free: 9.684 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01421/0.7855, allocations: 8.451 MB / 0.506 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.144e-06/0.7855, allocations: 4 kB / 0.506 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2242/1.01, allocations: 3.599 MB / 0.5095 GB, free: 93.19 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/1.011, allocations: 476.7 kB / 0.51 GB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004428/1.012, allocations: 38.5 kB / 0.51 GB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/1.013, allocations: 91.39 kB / 0.5101 GB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003505/1.013, allocations: 109.6 kB / 0.5102 GB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001585/1.013, allocations: 40.55 kB / 0.5102 GB, free: 93.09 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002854/1.016, allocations: 1.443 MB / 0.5116 GB, free: 92.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.016, allocations: 0 / 0.5116 GB, free: 92.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002772/1.019, allocations: 0.5912 MB / 0.5122 GB, free: 92.93 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.001342/1.021, allocations: 490 kB / 0.5127 GB, free: 92.81 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005143/1.026, allocations: 2.396 MB / 0.515 GB, free: 92.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.65e-06/1.026, allocations: 2.844 kB / 0.515 GB, free: 92.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003578/1.029, allocations: 1.64 MB / 0.5166 GB, free: 91.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/1.032, allocations: 414.5 kB / 0.517 GB, free: 91.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009286/1.041, allocations: 4.328 MB / 0.5213 GB, free: 90.97 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/1.043, allocations: 1.982 MB / 0.5232 GB, free: 90.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007527/1.044, allocations: 143.1 kB / 0.5233 GB, free: 90.23 MB / 394.7 MB Notification: Performance of SimCode: time 1.764e-06/1.044, allocations: 2.812 kB / 0.5233 GB, free: 90.23 MB / 394.7 MB Notification: Performance of Templates: time 0.07388/1.118, allocations: 61.32 MB / 0.5832 GB, free: 62.04 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/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 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:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:374:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:434:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLossesFunctions.cpp:411:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 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