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 1.824/1.824, allocations: 194.9 MB / 208.5 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.12e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08901, allocations: 44.51 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4429/0.532, allocations: 104.1 MB / 404.1 MB, free: 10.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.5323, allocations: 86.17 kB / 404.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2174/0.7497, allocations: 51.41 MB / 455.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.7498, allocations: 0 / 455.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002415/0.75, allocations: 55.94 kB / 455.6 MB, free: 12.14 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.008206/0.7582, allocations: 2.448 MB / 458.1 MB, free: 9.781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.7583, allocations: 8.031 kB / 458.1 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001203/0.7595, allocations: 353.6 kB / 458.4 MB, free: 9.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/0.7611, allocations: 336.2 kB / 458.8 MB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005979/0.7671, allocations: 1.768 MB / 460.5 MB, free: 7.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.7673, allocations: 157.6 kB / 460.7 MB, free: 7.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005888/0.7679, allocations: 209.4 kB / 460.9 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007348/0.7753, allocations: 2.604 MB / 463.5 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.343e-05/0.7754, allocations: 3.938 kB / 463.5 MB, free: 5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003371/0.7758, allocations: 88 kB / 463.6 MB, free: 4.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001716/0.776, allocations: 92.05 kB / 463.7 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006691/0.7827, allocations: 2.05 MB / 465.7 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0235/0.8062, allocations: 8.393 MB / 474.1 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004463/0.8107, allocations: 1.585 MB / 475.7 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002544/0.8133, allocations: 0.9656 MB / 476.7 MB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000441/0.8138, allocations: 153.9 kB / 476.8 MB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.069e-05/0.8138, allocations: 51.5 kB / 476.9 MB, free: 7.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.158e-06/0.8139, allocations: 0 / 476.9 MB, free: 7.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.01592/0.8298, allocations: 5.036 MB / 481.9 MB, free: 2.203 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.8299, allocations: 64.72 kB / 482 MB, free: 2.129 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00452/0.8344, allocations: 1.858 MB / 483.8 MB, free: 228 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003604/0.8348, allocations: 49.7 kB / 483.9 MB, free: 172 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/0.8359, allocations: 1.02 MB / 484.9 MB, free: 15.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006791/0.8366, allocations: 461.1 kB / 485.3 MB, free: 14.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.8367, allocations: 32 kB / 485.4 MB, free: 14.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.837, allocations: 362.8 kB / 485.7 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001886/0.8389, allocations: 0.7107 MB / 486.4 MB, free: 13.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002061/0.8409, allocations: 0.959 MB / 487.4 MB, free: 12.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002133/0.8431, allocations: 0.8733 MB / 488.3 MB, free: 11.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.842e-06/0.8431, allocations: 0 / 488.3 MB, free: 11.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00767/0.8508, allocations: 2.597 MB / 490.9 MB, free: 9.035 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.8509, allocations: 33.7 kB / 490.9 MB, free: 8.996 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.704e-05/0.8509, allocations: 8 kB / 490.9 MB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003804/0.8547, allocations: 0.8459 MB / 491.8 MB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002275/0.857, allocations: 275.6 kB / 492 MB, free: 7.867 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02006/0.8771, allocations: 9.274 MB / 0.4896 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00233/0.8795, allocations: 103.9 kB / 0.4897 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.8797, allocations: 59.94 kB / 0.4897 GB, free: 14.14 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 () * 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.0004137/0.8802, allocations: 172.7 kB / 0.4899 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005586/0.8807, allocations: 205.5 kB / 0.4901 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007261/0.888, allocations: 2.474 MB / 0.4925 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.228e-05/0.8881, allocations: 16 kB / 0.4925 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.8881, allocations: 4 kB / 0.4925 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.616e-05/0.8881, allocations: 7.969 kB / 0.4925 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/0.9029, allocations: 5.009 MB / 0.4974 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-05/0.903, allocations: 0 / 0.4974 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002025/0.905, allocations: 219.9 kB / 0.4976 GB, free: 5.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003409/0.9084, allocations: 0.7086 MB / 0.4983 GB, free: 5.207 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002148/0.9087, allocations: 36.16 kB / 0.4983 GB, free: 5.172 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01533/0.924, allocations: 8.471 MB / 0.5066 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.9241, allocations: 0 / 0.5066 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009484/0.9336, allocations: 3.605 MB / 0.5101 GB, free: 8.566 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/0.9352, allocations: 470.5 kB / 0.5106 GB, free: 8.086 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004179/0.9356, allocations: 28 kB / 0.5106 GB, free: 8.059 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00186/0.9375, allocations: 107.9 kB / 0.5107 GB, free: 7.953 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003891/0.9379, allocations: 101.2 kB / 0.5108 GB, free: 7.855 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/0.9381, allocations: 43.98 kB / 0.5109 GB, free: 7.812 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004069/0.9422, allocations: 1.445 MB / 0.5123 GB, free: 6.336 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.162e-06/0.9422, allocations: 0 / 0.5123 GB, free: 6.336 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003587/0.9458, allocations: 0.5937 MB / 0.5128 GB, free: 5.742 MB / 410.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.01155/0.9574, allocations: 5.024 MB / 0.5177 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2946/1.252, allocations: 2.376 MB / 0.5201 GB, free: 109.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/1.252, allocations: 0.8125 kB / 0.5201 GB, free: 109.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004137/1.256, allocations: 1.647 MB / 0.5217 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003189/1.259, allocations: 405 kB / 0.5221 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/1.274, allocations: 5.021 MB / 0.527 GB, free: 108.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002877/1.277, allocations: 1.993 MB / 0.5289 GB, free: 107.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002158/1.279, allocations: 0.961 MB / 0.5299 GB, free: 107.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/1.279, allocations: 0.75 kB / 0.5299 GB, free: 107.3 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: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_; ^ 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