Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.362e-05/3.379e-05, allocations: 4 kB / 255.4 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0973/0.09736, allocations: 44.51 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4789/0.5763, allocations: 126.4 MB / 426.4 MB, free: 1.715 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003753/0.5768, allocations: 102.8 kB / 426.5 MB, free: 1.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.66/2.237, allocations: 352.9 MB / 0.7611 GB, free: 52.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.495e-06/2.237, allocations: 4 kB / 0.7611 GB, free: 52.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009034/2.238, allocations: 219.8 kB / 0.7613 GB, free: 52.66 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.0463/2.284, allocations: 9.566 MB / 0.7707 GB, free: 49.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/2.284, allocations: 10.66 kB / 0.7707 GB, free: 49.67 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008113/2.293, allocations: 1.632 MB / 0.7723 GB, free: 49.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04066/2.333, allocations: 4.926 MB / 0.7771 GB, free: 48.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02816/2.361, allocations: 8.177 MB / 0.7851 GB, free: 47.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00123/2.363, allocations: 0.7131 MB / 0.7858 GB, free: 46.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004987/2.368, allocations: 0.9251 MB / 0.7867 GB, free: 46.56 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05505/2.423, allocations: 16.95 MB / 0.8032 GB, free: 36.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006966/2.424, allocations: 15.66 kB / 0.8032 GB, free: 36.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00463/2.428, allocations: 408.7 kB / 0.8036 GB, free: 36.49 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00111/2.429, allocations: 0.7082 MB / 0.8043 GB, free: 35.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04559/2.475, allocations: 15.56 MB / 0.8195 GB, free: 21.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4903/2.965, allocations: 55.37 MB / 0.8736 GB, free: 34.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0341/3, allocations: 19.2 MB / 0.8924 GB, free: 41.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01809/3.018, allocations: 7.529 MB / 0.8997 GB, free: 41.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06843/3.086, allocations: 24.89 MB / 0.924 GB, free: 34.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.757e-05/3.086, allocations: 98.72 kB / 0.9241 GB, free: 34.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=749): time 1.279e-05/3.086, allocations: 3.234 kB / 0.9241 GB, free: 34.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=754): time 0.07903/3.165, allocations: 25.13 MB / 0.9486 GB, free: 23.71 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/3.166, allocations: 114 kB / 0.9488 GB, free: 23.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008547/3.174, allocations: 3.175 MB / 0.9519 GB, free: 22.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001862/3.176, allocations: 123.6 kB / 0.952 GB, free: 22.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002759/3.179, allocations: 3.437 MB / 0.9553 GB, free: 19.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004243/3.183, allocations: 2.488 MB / 0.9578 GB, free: 17.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001796/3.185, allocations: 127.8 kB / 0.9579 GB, free: 17.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009244/3.186, allocations: 0.6118 MB / 0.9585 GB, free: 17.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01293/3.199, allocations: 5.014 MB / 0.9634 GB, free: 15.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01499/3.214, allocations: 6.26 MB / 0.9695 GB, free: 11.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01694/3.231, allocations: 6.087 MB / 0.9754 GB, free: 9.168 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-05/3.231, allocations: 11.16 kB / 0.9754 GB, free: 9.168 MB / 442.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.04768/3.279, allocations: 14.35 MB / 0.9895 GB, free: 15.08 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.977e-05/3.279, allocations: 49.66 kB / 0.9895 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/3.279, allocations: 32 kB / 0.9895 GB, free: 14.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0148/3.294, allocations: 4.004 MB / 0.9935 GB, free: 11.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01031/3.304, allocations: 1.182 MB / 0.9946 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3619/3.666, allocations: 12.52 MB / 1.007 GB, free: 79.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008459/3.675, allocations: 364.5 kB / 1.007 GB, free: 79.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002482/3.677, allocations: 281 kB / 1.007 GB, free: 79.69 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (637): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.004181/3.682, allocations: 453.4 kB / 1.008 GB, free: 79.58 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003263/3.685, allocations: 489.2 kB / 1.008 GB, free: 79.58 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04595/3.731, allocations: 14.18 MB / 1.022 GB, free: 79.24 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03582/3.767, allocations: 12.67 MB / 1.035 GB, free: 78.95 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-05/3.767, allocations: 3.844 kB / 1.035 GB, free: 78.95 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000173/3.767, allocations: 30.45 kB / 1.035 GB, free: 78.95 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07639/3.843, allocations: 28.05 MB / 1.062 GB, free: 74.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001144/3.844, allocations: 5.25 kB / 1.062 GB, free: 74.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008144/3.852, allocations: 0.8844 MB / 1.063 GB, free: 74.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01309/3.865, allocations: 3.932 MB / 1.067 GB, free: 73.29 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001949/3.867, allocations: 160.8 kB / 1.067 GB, free: 73.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01977/3.887, allocations: 12.42 MB / 1.079 GB, free: 65.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/3.887, allocations: 5.688 kB / 1.079 GB, free: 65.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0557/3.942, allocations: 21.44 MB / 1.1 GB, free: 55.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006584/3.949, allocations: 1.736 MB / 1.102 GB, free: 54.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002903/3.952, allocations: 105.6 kB / 1.102 GB, free: 54.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006988/3.959, allocations: 306.3 kB / 1.102 GB, free: 54.73 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003018/3.962, allocations: 0.5415 MB / 1.103 GB, free: 54.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002096/3.964, allocations: 202.4 kB / 1.103 GB, free: 54.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006453/3.971, allocations: 2.408 MB / 1.105 GB, free: 53.67 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.082e-06/3.971, allocations: 5.125 kB / 1.105 GB, free: 53.67 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01163/3.982, allocations: 1.826 MB / 1.107 GB, free: 53.47 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.05844/4.041, allocations: 22.95 MB / 1.129 GB, free: 34.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03287/4.074, allocations: 12.34 MB / 1.141 GB, free: 23.37 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/4.074, allocations: 0 / 1.141 GB, free: 23.37 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01868/4.093, allocations: 6.401 MB / 1.148 GB, free: 17.67 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008953/4.102, allocations: 0.8941 MB / 1.148 GB, free: 16.97 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07332/4.175, allocations: 22.28 MB / 1.17 GB, free: 13.88 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01628/4.191, allocations: 6.651 MB / 1.177 GB, free: 8.773 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3756/4.567, allocations: 3.945 MB / 1.181 GB, free: 90.81 MB / 474.7 MB Notification: Performance of SimCode: time 1.744e-06/4.567, allocations: 0 / 1.181 GB, free: 90.81 MB / 474.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_withLossesCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:559:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_withLossesFunctions.cpp:559:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o] Error 1