Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.312e-05/3.35e-05, allocations: 4 kB / 292.3 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1418, allocations: 50.41 MB / 342.7 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5925/0.7344, allocations: 127.3 MB / 470 MB, free: 15.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004609/0.7349, allocations: 100.5 kB / 470.1 MB, free: 15.33 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.738/2.473, allocations: 337.3 MB / 0.7884 GB, free: 59.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.255e-06/2.473, allocations: 0 / 0.7884 GB, free: 59.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007334/2.473, allocations: 211.2 kB / 0.7886 GB, free: 59.88 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2620 * Number of variables: 2620 Notification: Performance of Generate backend data structure: time 0.04412/2.518, allocations: 8.96 MB / 0.7974 GB, free: 56.46 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/2.518, allocations: 7.562 kB / 0.7974 GB, free: 56.46 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007786/2.525, allocations: 1.542 MB / 0.7989 GB, free: 55.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03571/2.561, allocations: 4.213 MB / 0.803 GB, free: 54.86 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02666/2.588, allocations: 8.049 MB / 0.8109 GB, free: 50.76 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008858/2.589, allocations: 0.6643 MB / 0.8115 GB, free: 50.46 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004318/2.593, allocations: 0.8847 MB / 0.8124 GB, free: 50.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04879/2.642, allocations: 15.3 MB / 0.8273 GB, free: 35.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000588/2.643, allocations: 11.91 kB / 0.8273 GB, free: 35.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003964/2.647, allocations: 390.8 kB / 0.8277 GB, free: 35.43 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001091/2.648, allocations: 0.7265 MB / 0.8284 GB, free: 34.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03993/2.688, allocations: 13.39 MB / 0.8415 GB, free: 21.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5029/3.191, allocations: 51.34 MB / 0.8916 GB, free: 38.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0369/3.228, allocations: 26.3 MB / 0.9173 GB, free: 33.14 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007698/3.235, allocations: 3.168 MB / 0.9204 GB, free: 33.1 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007126/3.236, allocations: 165.5 kB / 0.9206 GB, free: 33 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.881e-05/3.236, allocations: 74.95 kB / 0.9206 GB, free: 32.96 MB / 474.7 MB Notification: Performance of pre-optimization done (n=404): time 7.334e-06/3.236, allocations: 2 kB / 0.9206 GB, free: 32.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=410): time 0.037/3.273, allocations: 12.37 MB / 0.9327 GB, free: 31.29 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.997e-05/3.273, allocations: 98.38 kB / 0.9328 GB, free: 31.22 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00759/3.281, allocations: 3.22 MB / 0.936 GB, free: 30.94 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008637/3.282, allocations: 89.58 kB / 0.936 GB, free: 30.91 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002955/3.285, allocations: 3.872 MB / 0.9398 GB, free: 28.84 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002027/3.287, allocations: 1.397 MB / 0.9412 GB, free: 27.96 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007137/3.288, allocations: 119.2 kB / 0.9413 GB, free: 27.96 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005394/3.288, allocations: 0.5447 MB / 0.9418 GB, free: 27.63 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007041/3.295, allocations: 2.724 MB / 0.9445 GB, free: 27.62 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009012/3.304, allocations: 4.83 MB / 0.9492 GB, free: 25.05 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008739/3.313, allocations: 3.901 MB / 0.953 GB, free: 24.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/3.313, allocations: 19.09 kB / 0.953 GB, free: 24.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02367/3.337, allocations: 8.583 MB / 0.9614 GB, free: 24.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.241e-05/3.337, allocations: 33.78 kB / 0.9615 GB, free: 24.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001439/3.337, allocations: 72.25 kB / 0.9615 GB, free: 24.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005469/3.343, allocations: 1.214 MB / 0.9627 GB, free: 24.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009373/3.352, allocations: 1.318 MB / 0.964 GB, free: 24.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0213/3.373, allocations: 9.062 MB / 0.9728 GB, free: 19.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006746/3.38, allocations: 341.3 kB / 0.9732 GB, free: 19.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001324/3.382, allocations: 289.2 kB / 0.9734 GB, free: 19.68 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 319 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (697): * Single equations (assignments): 692 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001338/3.383, allocations: 479 kB / 0.9739 GB, free: 19.37 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/3.384, allocations: 396.7 kB / 0.9743 GB, free: 19.17 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01794/3.402, allocations: 6.584 MB / 0.9807 GB, free: 16.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01484/3.417, allocations: 5.461 MB / 0.986 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.123e-05/3.417, allocations: 10.19 kB / 0.9861 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-05/3.417, allocations: 20.25 kB / 0.9861 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04371/3.461, allocations: 16.22 MB / 1.002 GB, free: 7.664 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.44e-05/3.461, allocations: 10.59 kB / 1.002 GB, free: 7.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005973/3.467, allocations: 0.7157 MB / 1.003 GB, free: 7.637 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005104/3.472, allocations: 1.063 MB / 1.004 GB, free: 7.43 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008292/3.473, allocations: 92 kB / 1.004 GB, free: 7.375 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01966/3.493, allocations: 8.032 MB / 1.012 GB, free: 420 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/3.493, allocations: 7 kB / 1.012 GB, free: 416 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02644/3.519, allocations: 10.15 MB / 1.022 GB, free: 7.281 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003821/3.523, allocations: 0.9662 MB / 1.022 GB, free: 6.395 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001182/3.524, allocations: 79.81 kB / 1.023 GB, free: 6.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004078/3.528, allocations: 211.7 kB / 1.023 GB, free: 6.168 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008969/3.529, allocations: 294.5 kB / 1.023 GB, free: 5.988 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004167/3.53, allocations: 115.7 kB / 1.023 GB, free: 5.879 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006288/3.536, allocations: 2.401 MB / 1.025 GB, free: 3.762 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.31e-07/3.536, allocations: 0 / 1.025 GB, free: 3.762 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01028/3.546, allocations: 1.658 MB / 1.027 GB, free: 2.113 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (392): * Single equations (assignments): 387 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,40.8%) 44} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03154/3.578, allocations: 12.31 MB / 1.039 GB, free: 7.078 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0212/3.599, allocations: 6.806 MB / 1.046 GB, free: 1.062 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.359e-05/3.599, allocations: 0 / 1.046 GB, free: 1.062 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.3823/3.982, allocations: 3.637 MB / 1.049 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007861/3.989, allocations: 0.8621 MB / 1.05 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05657/4.046, allocations: 16.53 MB / 1.066 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01297/4.059, allocations: 6.164 MB / 1.072 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008237/4.067, allocations: 3.247 MB / 1.075 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.532e-06/4.067, allocations: 0 / 1.075 GB, free: 100.7 MB / 0.4948 GB 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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFunctions.cpp:479:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp148 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFunctions.cpp:479:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp148 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFMU.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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o] Error 1