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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.025/2.025, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003683, allocations: 15.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.09618, allocations: 44.5 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4459/0.5421, allocations: 104.2 MB / 412.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003094/0.5425, allocations: 96.16 kB / 412.9 MB, free: 11.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2093/0.7519, allocations: 51.37 MB / 464.2 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.7519, allocations: 4 kB / 464.2 MB, free: 7.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002268/0.7522, allocations: 55.94 kB / 464.3 MB, free: 7.547 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.00978/0.7619, allocations: 2.783 MB / 467.1 MB, free: 4.867 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.762, allocations: 8.031 kB / 467.1 MB, free: 4.859 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001652/0.7637, allocations: 357.5 kB / 467.4 MB, free: 4.625 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/0.7655, allocations: 336.3 kB / 467.8 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006477/0.772, allocations: 1.779 MB / 469.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.7723, allocations: 160.1 kB / 469.7 MB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008605/0.7731, allocations: 219.9 kB / 469.9 MB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008518/0.7817, allocations: 2.707 MB / 472.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.58e-05/0.7818, allocations: 0 / 472.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003443/0.7822, allocations: 84 kB / 472.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001463/0.7823, allocations: 92.05 kB / 472.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007791/0.7901, allocations: 2.218 MB / 475 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02435/0.8145, allocations: 8.389 MB / 483.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005373/0.8199, allocations: 1.682 MB / 485.1 MB, free: 2.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000501/0.8205, allocations: 146 kB / 485.2 MB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/0.8206, allocations: 43.56 kB / 485.3 MB, free: 2.281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.148e-06/0.8206, allocations: 0 / 485.3 MB, free: 2.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.02598/0.8466, allocations: 6.71 MB / 492 MB, free: 11.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.8467, allocations: 64.72 kB / 492 MB, free: 11.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005296/0.852, allocations: 1.881 MB / 493.9 MB, free: 9.414 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003794/0.8524, allocations: 45.7 kB / 494 MB, free: 9.363 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001256/0.8537, allocations: 1.02 MB / 495 MB, free: 8.332 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008548/0.8546, allocations: 469.1 kB / 495.4 MB, free: 7.867 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.8548, allocations: 28 kB / 495.5 MB, free: 7.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.855, allocations: 362.8 kB / 495.8 MB, free: 7.477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002604/0.8576, allocations: 0.773 MB / 496.6 MB, free: 6.703 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0029/0.8606, allocations: 1.021 MB / 497.6 MB, free: 5.594 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002974/0.8636, allocations: 0.9294 MB / 498.5 MB, free: 4.656 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.8636, allocations: 4 kB / 498.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.009622/0.8733, allocations: 2.737 MB / 0.4895 GB, free: 1.895 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.226e-05/0.8734, allocations: 37.77 kB / 0.4896 GB, free: 1.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.477e-05/0.8734, allocations: 7.938 kB / 0.4896 GB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004039/0.8775, allocations: 0.8423 MB / 0.4904 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/0.8798, allocations: 275.6 kB / 0.4907 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02179/0.9017, allocations: 9.646 MB / 0.5001 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.9041, allocations: 99.89 kB / 0.5002 GB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003226/0.9045, allocations: 56.05 kB / 0.5002 GB, free: 6.648 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.002349/0.9069, allocations: 0.7472 MB / 0.501 GB, free: 5.891 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007527/0.9076, allocations: 201.6 kB / 0.5011 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008598/0.9162, allocations: 2.598 MB / 0.5037 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.422e-05/0.9163, allocations: 12 kB / 0.5037 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/0.9163, allocations: 8 kB / 0.5037 GB, free: 3.051 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.475e-05/0.9164, allocations: 3.984 kB / 0.5037 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0162/0.9326, allocations: 5.113 MB / 0.5087 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.492e-05/0.9327, allocations: 4 kB / 0.5087 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002042/0.9347, allocations: 215.7 kB / 0.5089 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00346/0.9382, allocations: 0.7106 MB / 0.5096 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002922/0.9385, allocations: 31.98 kB / 0.5096 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01627/0.9548, allocations: 8.698 MB / 0.5181 GB, free: 3.773 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.9549, allocations: 7.969 kB / 0.5181 GB, free: 3.766 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2745/1.229, allocations: 3.718 MB / 0.5218 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/1.231, allocations: 478.6 kB / 0.5222 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004686/1.232, allocations: 29.06 kB / 0.5223 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001812/1.233, allocations: 94.69 kB / 0.5223 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004116/1.234, allocations: 108.2 kB / 0.5224 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/1.234, allocations: 42.23 kB / 0.5225 GB, free: 106.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003179/1.237, allocations: 1.467 MB / 0.5239 GB, free: 106.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.237, allocations: 2.734 kB / 0.5239 GB, free: 106.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003345/1.241, allocations: 0.5994 MB / 0.5245 GB, free: 106.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.01227/1.253, allocations: 5.028 MB / 0.5294 GB, free: 105.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007207/1.26, allocations: 2.572 MB / 0.5319 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/1.26, allocations: 1.656 kB / 0.5319 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004644/1.265, allocations: 1.742 MB / 0.5336 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/1.268, allocations: 408.8 kB / 0.534 GB, free: 104.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01949/1.288, allocations: 12.21 MB / 0.5459 GB, free: 96.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002947/1.291, allocations: 1.993 MB / 0.5479 GB, free: 95.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002396/1.293, allocations: 0.9603 MB / 0.5488 GB, free: 95.96 MB / 410.7 MB Notification: Performance of SimCode: time 2.014e-06/1.293, allocations: 1.641 kB / 0.5488 GB, free: 95.96 MB / 410.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -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:38: error: use of undeclared identifier '_omcQ_24tmpVar10_'; did you mean '_omcQ_24tmpVar11_'? _omcQ_24tmpVar11_ = std::cos(_omcQ_24tmpVar10_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar11_ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:374:12: note: '_omcQ_24tmpVar11_' declared here double _omcQ_24tmpVar11_; ^ ./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_'? _omcQ_24tmpVar14_ = std::sin(_omcQ_24tmpVar13_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar14_ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFunctions.cpp:411:12: note: '_omcQ_24tmpVar14_' declared here double _omcQ_24tmpVar14_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 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