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.913/1.913, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.325e-05, allocations: 0 / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09271/0.09278, allocations: 44.52 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4473/0.5401, allocations: 104.1 MB / 404.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003295/0.5405, allocations: 84.89 kB / 404.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.229/0.7695, allocations: 51.4 MB / 455.5 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.042e-05/0.7696, allocations: 7.984 kB / 455.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003576/0.77, allocations: 55.94 kB / 455.6 MB, free: 12.54 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.01028/0.7803, allocations: 2.449 MB / 458.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.905e-05/0.7804, allocations: 8.031 kB / 458.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002422/0.7828, allocations: 351.2 kB / 458.4 MB, free: 9.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00271/0.7856, allocations: 340.2 kB / 458.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008906/0.7946, allocations: 1.768 MB / 460.5 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003158/0.7949, allocations: 157.7 kB / 460.7 MB, free: 8.074 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001171/0.7961, allocations: 213.7 kB / 460.9 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/0.8065, allocations: 2.629 MB / 463.5 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.8067, allocations: 0 / 463.5 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007907/0.8075, allocations: 84 kB / 463.6 MB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000175/0.8077, allocations: 92.05 kB / 463.7 MB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008155/0.8159, allocations: 2.081 MB / 465.7 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03376/0.8497, allocations: 8.408 MB / 474.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006887/0.8566, allocations: 1.588 MB / 475.7 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004287/0.861, allocations: 0.9611 MB / 476.7 MB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007343/0.8618, allocations: 157.9 kB / 476.9 MB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.414e-05/0.8619, allocations: 43.56 kB / 476.9 MB, free: 7.383 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 6.452e-06/0.8619, allocations: 0 / 476.9 MB, free: 7.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.02556/0.8875, allocations: 5.044 MB / 481.9 MB, free: 2.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/0.8876, allocations: 68.7 kB / 482 MB, free: 2.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007688/0.8953, allocations: 1.854 MB / 483.9 MB, free: 296 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004578/0.8959, allocations: 49.7 kB / 483.9 MB, free: 240 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001795/0.8977, allocations: 1.02 MB / 484.9 MB, free: 15.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/0.8988, allocations: 465.2 kB / 485.4 MB, free: 14.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/0.8991, allocations: 24 kB / 485.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003169/0.8994, allocations: 370.8 kB / 485.8 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003121/0.9026, allocations: 0.7068 MB / 486.5 MB, free: 13.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003597/0.9062, allocations: 0.9668 MB / 487.4 MB, free: 12.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003654/0.91, allocations: 0.8694 MB / 488.3 MB, free: 11.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-05/0.9101, allocations: 4 kB / 488.3 MB, free: 11.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.02209/0.9322, allocations: 2.616 MB / 490.9 MB, free: 9.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.9344, allocations: 33.7 kB / 491 MB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.934e-05/0.9345, allocations: 4 kB / 491 MB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005523/0.94, allocations: 0.8494 MB / 491.8 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003015/0.9431, allocations: 271.6 kB / 492.1 MB, free: 7.906 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04967/0.9928, allocations: 9.267 MB / 0.4896 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00334/0.9962, allocations: 99.91 kB / 0.4897 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004835/0.9968, allocations: 59.94 kB / 0.4898 GB, free: 14.2 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.0004503/0.9972, allocations: 176.7 kB / 0.4899 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008118/0.9981, allocations: 209.4 kB / 0.4901 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008662/1.007, allocations: 2.474 MB / 0.4925 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-05/1.007, allocations: 12 kB / 0.4926 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.019e-05/1.007, allocations: 8 kB / 0.4926 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-05/1.007, allocations: 7.969 kB / 0.4926 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02596/1.033, allocations: 5.005 MB / 0.4975 GB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.631e-05/1.033, allocations: 4.219 kB / 0.4975 GB, free: 6.188 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003171/1.036, allocations: 227.6 kB / 0.4977 GB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005558/1.042, allocations: 0.7016 MB / 0.4984 GB, free: 5.254 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004804/1.042, allocations: 39.97 kB / 0.4984 GB, free: 5.215 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02528/1.068, allocations: 8.471 MB / 0.5067 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/1.068, allocations: 4.031 kB / 0.5067 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/1.08, allocations: 3.597 MB / 0.5102 GB, free: 8.617 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001962/1.082, allocations: 474.4 kB / 0.5106 GB, free: 8.133 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007059/1.083, allocations: 35.98 kB / 0.5107 GB, free: 8.098 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002354/1.085, allocations: 99.86 kB / 0.5108 GB, free: 8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00065/1.086, allocations: 109.1 kB / 0.5109 GB, free: 7.895 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001932/1.086, allocations: 47.97 kB / 0.5109 GB, free: 7.848 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004355/1.091, allocations: 1.442 MB / 0.5123 GB, free: 6.375 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.091, allocations: 0 / 0.5123 GB, free: 6.375 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003819/1.095, allocations: 0.5898 MB / 0.5129 GB, free: 5.785 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.01364/1.108, allocations: 5.016 MB / 0.5178 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2957/1.404, allocations: 2.43 MB / 0.5202 GB, free: 109.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/1.404, allocations: 0.5938 kB / 0.5202 GB, free: 109.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004875/1.409, allocations: 1.685 MB / 0.5218 GB, free: 109 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003832/1.413, allocations: 411.5 kB / 0.5222 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01707/1.43, allocations: 5.031 MB / 0.5271 GB, free: 107.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004263/1.434, allocations: 1.99 MB / 0.5291 GB, free: 107.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002618/1.437, allocations: 0.9602 MB / 0.53 GB, free: 107.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.853e-06/1.437, allocations: 1.188 kB / 0.53 GB, free: 107.2 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: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_; ^ 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