Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.5e-05/3.512e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09143/0.0915, allocations: 44.5 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4475/0.5391, allocations: 121.2 MB / 421.2 MB, free: 7.551 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.5394, allocations: 99.52 kB / 421.3 MB, free: 7.531 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.611/2.15, allocations: 339.5 MB / 0.743 GB, free: 46.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.464e-06/2.15, allocations: 0 / 0.743 GB, free: 46.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006639/2.151, allocations: 213 kB / 0.7432 GB, free: 46.96 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.04227/2.193, allocations: 9.049 MB / 0.752 GB, free: 43.85 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/2.193, allocations: 10.31 kB / 0.752 GB, free: 43.85 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007388/2.201, allocations: 1.563 MB / 0.7536 GB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04039/2.241, allocations: 4.858 MB / 0.7583 GB, free: 42.19 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02543/2.267, allocations: 7.877 MB / 0.766 GB, free: 37.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001028/2.268, allocations: 0.6948 MB / 0.7667 GB, free: 36.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004413/2.272, allocations: 0.9071 MB / 0.7676 GB, free: 35.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05025/2.323, allocations: 16.4 MB / 0.7836 GB, free: 19.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005334/2.323, allocations: 7.906 kB / 0.7836 GB, free: 19.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004162/2.327, allocations: 398.8 kB / 0.784 GB, free: 19.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001053/2.328, allocations: 0.6948 MB / 0.7846 GB, free: 18.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04748/2.376, allocations: 15.08 MB / 0.7994 GB, free: 3.559 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4598/2.836, allocations: 53.88 MB / 0.852 GB, free: 45.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02959/2.865, allocations: 18.71 MB / 0.8703 GB, free: 36.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01657/2.882, allocations: 6.985 MB / 0.8771 GB, free: 36.31 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05871/2.941, allocations: 22.67 MB / 0.8992 GB, free: 28.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.532e-05/2.941, allocations: 91.2 kB / 0.8993 GB, free: 28.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=684): time 1.16e-05/2.941, allocations: 0 / 0.8993 GB, free: 28.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=690): time 0.06334/3.004, allocations: 23.38 MB / 0.9221 GB, free: 18.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.802e-05/3.004, allocations: 110.9 kB / 0.9222 GB, free: 18.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005482/3.01, allocations: 2.438 MB / 0.9246 GB, free: 17.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00156/3.012, allocations: 115.3 kB / 0.9247 GB, free: 17.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002248/3.014, allocations: 3.312 MB / 0.928 GB, free: 14.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003553/3.017, allocations: 2.263 MB / 0.9302 GB, free: 13.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001103/3.019, allocations: 120.5 kB / 0.9303 GB, free: 12.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007304/3.019, allocations: 0.5883 MB / 0.9309 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01132/3.031, allocations: 4.639 MB / 0.9354 GB, free: 10.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01307/3.044, allocations: 5.925 MB / 0.9412 GB, free: 7.109 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01375/3.058, allocations: 5.642 MB / 0.9467 GB, free: 4.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.232e-05/3.058, allocations: 8 kB / 0.9467 GB, free: 4.512 MB / 426.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.04354/3.101, allocations: 13.24 MB / 0.9596 GB, free: 9.102 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.338e-05/3.101, allocations: 20 kB / 0.9596 GB, free: 9.082 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001403/3.102, allocations: 36 kB / 0.9597 GB, free: 9.047 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01967/3.121, allocations: 3.846 MB / 0.9634 GB, free: 5.895 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01276/3.134, allocations: 1.125 MB / 0.9645 GB, free: 5.031 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02888/3.163, allocations: 10.65 MB / 0.9749 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/3.174, allocations: 351.7 kB / 0.9753 GB, free: 10.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003022/3.177, allocations: 274.7 kB / 0.9755 GB, free: 10.74 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (601): * Single equations (assignments): 533 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.004185/3.181, allocations: 433.5 kB / 0.976 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002649/3.184, allocations: 429.2 kB / 0.9764 GB, free: 9.961 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3727/3.556, allocations: 13.23 MB / 0.9893 GB, free: 88.66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03403/3.59, allocations: 11.72 MB / 1.001 GB, free: 88.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.36e-05/3.59, allocations: 3.281 kB / 1.001 GB, free: 88.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001534/3.591, allocations: 31.12 kB / 1.001 GB, free: 88.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06735/3.658, allocations: 26.14 MB / 1.026 GB, free: 87.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.589e-05/3.658, allocations: 3.469 kB / 1.026 GB, free: 87.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007353/3.665, allocations: 0.808 MB / 1.027 GB, free: 87.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01238/3.678, allocations: 3.792 MB / 1.031 GB, free: 87.47 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0017/3.68, allocations: 144 kB / 1.031 GB, free: 87.47 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01673/3.696, allocations: 10.55 MB / 1.041 GB, free: 82.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/3.696, allocations: 0 / 1.041 GB, free: 82.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04727/3.744, allocations: 19.65 MB / 1.06 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005345/3.749, allocations: 1.545 MB / 1.062 GB, free: 73.31 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002293/3.751, allocations: 94.22 kB / 1.062 GB, free: 73.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006121/3.758, allocations: 284.2 kB / 1.062 GB, free: 73.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002406/3.76, allocations: 0.4957 MB / 1.063 GB, free: 73.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001105/3.761, allocations: 184 kB / 1.063 GB, free: 73.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004325/3.765, allocations: 1.837 MB / 1.065 GB, free: 72.28 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.083e-06/3.766, allocations: 0 / 1.065 GB, free: 72.28 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01008/3.776, allocations: 1.686 MB / 1.066 GB, free: 72.09 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (436): * Single equations (assignments): 368 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.04958/3.825, allocations: 20.76 MB / 1.087 GB, free: 62.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02973/3.855, allocations: 11.22 MB / 1.098 GB, free: 52.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/3.855, allocations: 0 / 1.098 GB, free: 52.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01684/3.872, allocations: 5.816 MB / 1.103 GB, free: 47.03 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008199/3.88, allocations: 0.8439 MB / 1.104 GB, free: 46.39 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06174/3.942, allocations: 20.34 MB / 1.124 GB, free: 28.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01228/3.954, allocations: 6.323 MB / 1.13 GB, free: 23.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009057/3.963, allocations: 3.318 MB / 1.133 GB, free: 20.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.593e-06/3.963, allocations: 0 / 1.133 GB, free: 20.8 MB / 458.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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp325 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp325 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_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_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o] Error 1