Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.952/1.952, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.397e-05/3.378e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1141, allocations: 50.41 MB / 342.7 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5246/0.6388, allocations: 131.9 MB / 474.6 MB, free: 10.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003686/0.6392, allocations: 103.9 kB / 474.7 MB, free: 10.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.755/2.394, allocations: 379.2 MB / 0.8339 GB, free: 14.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/2.394, allocations: 0 / 0.8339 GB, free: 14.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007185/2.395, allocations: 235.8 kB / 0.8341 GB, free: 14.09 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04934/2.445, allocations: 10.17 MB / 0.844 GB, free: 3.828 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/2.445, allocations: 12.03 kB / 0.844 GB, free: 3.816 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008695/2.453, allocations: 1.775 MB / 0.8458 GB, free: 2.027 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05014/2.503, allocations: 5.644 MB / 0.8513 GB, free: 12.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03397/2.538, allocations: 8.919 MB / 0.86 GB, free: 3.352 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001246/2.539, allocations: 0.7746 MB / 0.8607 GB, free: 2.574 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005604/2.544, allocations: 1.012 MB / 0.8617 GB, free: 1.562 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8071/3.352, allocations: 17.71 MB / 0.879 GB, free: 35.96 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006584/3.352, allocations: 13.56 kB / 0.879 GB, free: 35.96 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00453/3.357, allocations: 451.2 kB / 0.8795 GB, free: 35.96 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001576/3.358, allocations: 0.8701 MB / 0.8803 GB, free: 35.94 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04996/3.408, allocations: 15.9 MB / 0.8959 GB, free: 35.89 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1415/3.55, allocations: 58.45 MB / 0.9529 GB, free: 15.42 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05807/3.608, allocations: 37.15 MB / 0.9892 GB, free: 14.26 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01414/3.622, allocations: 4.118 MB / 0.9932 GB, free: 12.62 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00107/3.623, allocations: 188.2 kB / 0.9934 GB, free: 12.51 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001266/3.624, allocations: 86.33 kB / 0.9935 GB, free: 12.43 MB / 490.8 MB Notification: Performance of pre-optimization done (n=524): time 1.439e-05/3.624, allocations: 3.094 kB / 0.9935 GB, free: 12.43 MB / 490.8 MB Notification: Performance of matching and sorting (n=530): time 0.05524/3.679, allocations: 15.53 MB / 1.009 GB, free: 5.508 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/3.679, allocations: 108.6 kB / 1.009 GB, free: 5.438 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009293/3.688, allocations: 3.561 MB / 1.012 GB, free: 4.039 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001121/3.689, allocations: 114.5 kB / 1.012 GB, free: 3.941 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004506/3.694, allocations: 4.365 MB / 1.017 GB, free: 0.5781 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0032/3.697, allocations: 1.794 MB / 1.018 GB, free: 15.2 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/3.698, allocations: 145.2 kB / 1.019 GB, free: 15.08 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.000819/3.699, allocations: 0.6019 MB / 1.019 GB, free: 14.64 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009666/3.709, allocations: 3.362 MB / 1.022 GB, free: 12.7 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01312/3.722, allocations: 5.742 MB / 1.028 GB, free: 6.422 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01314/3.735, allocations: 4.73 MB / 1.033 GB, free: 2.43 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/3.735, allocations: 20 kB / 1.033 GB, free: 2.41 MB / 0.4949 GB Notification: Performance of matching and sorting (n=917) (initialization): time 0.0399/3.775, allocations: 10.78 MB / 1.043 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.95e-05/3.776, allocations: 43.39 kB / 1.043 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001824/3.776, allocations: 76 kB / 1.043 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006485/3.782, allocations: 1.401 MB / 1.045 GB, free: 9.652 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0123/3.795, allocations: 1.602 MB / 1.046 GB, free: 8.395 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4224/4.217, allocations: 10.54 MB / 1.056 GB, free: 92.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008326/4.225, allocations: 416.9 kB / 1.057 GB, free: 92.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001938/4.227, allocations: 334.8 kB / 1.057 GB, free: 92.78 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 356 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (844): * Single equations (assignments): 839 * 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%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001714/4.229, allocations: 0.5385 MB / 1.058 GB, free: 92.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001688/4.231, allocations: 482 kB / 1.058 GB, free: 92.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02743/4.258, allocations: 8.365 MB / 1.066 GB, free: 92.38 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02185/4.28, allocations: 6.94 MB / 1.073 GB, free: 92.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.591e-05/4.28, allocations: 13.16 kB / 1.073 GB, free: 92.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001555/4.28, allocations: 26.39 kB / 1.073 GB, free: 92.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05654/4.337, allocations: 19.66 MB / 1.092 GB, free: 90.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-05/4.337, allocations: 7.594 kB / 1.092 GB, free: 90.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008134/4.345, allocations: 0.9338 MB / 1.093 GB, free: 90.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005661/4.351, allocations: 1.213 MB / 1.094 GB, free: 90.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0012/4.352, allocations: 112.6 kB / 1.095 GB, free: 90.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02074/4.373, allocations: 9.133 MB / 1.104 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/4.373, allocations: 3.469 kB / 1.104 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03164/4.405, allocations: 12.22 MB / 1.115 GB, free: 87.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004738/4.409, allocations: 1.159 MB / 1.117 GB, free: 87.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002113/4.412, allocations: 99.33 kB / 1.117 GB, free: 87.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005706/4.417, allocations: 284 kB / 1.117 GB, free: 87.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001424/4.419, allocations: 348.1 kB / 1.117 GB, free: 87.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004937/4.419, allocations: 148.9 kB / 1.117 GB, free: 87.61 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005963/4.425, allocations: 2.649 MB / 1.12 GB, free: 87.41 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.51e-07/4.425, allocations: 2.594 kB / 1.12 GB, free: 87.41 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01151/4.437, allocations: 1.977 MB / 1.122 GB, free: 87.41 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (502): * Single equations (assignments): 497 * 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.8%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03149/4.468, allocations: 13.75 MB / 1.135 GB, free: 84.09 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02262/4.491, allocations: 8.386 MB / 1.144 GB, free: 81.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/4.491, allocations: 5.375 kB / 1.144 GB, free: 81.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01194/4.503, allocations: 4.038 MB / 1.148 GB, free: 79.49 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008498/4.512, allocations: 0.9998 MB / 1.148 GB, free: 79.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0616/4.573, allocations: 19.28 MB / 1.167 GB, free: 70.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01469/4.588, allocations: 6.997 MB / 1.174 GB, free: 65.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009928/4.598, allocations: 3.916 MB / 1.178 GB, free: 61.93 MB / 0.5105 GB Notification: Performance of SimCode: time 2.845e-06/4.598, allocations: 0 / 1.178 GB, free: 61.93 MB / 0.5105 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_IMS_CharacteristicsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsFunctions.cpp:540:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp178 = 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_IMS_CharacteristicsFunctions.cpp:540:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp178 = 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_IMS_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_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_IMS_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.o] Error 1