Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.848/1.848, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.616e-05/3.638e-05, allocations: 4 kB / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09143/0.0915, allocations: 44.51 MB / 300 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5012/0.5928, allocations: 147.7 MB / 447.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003289/0.5932, allocations: 107.7 kB / 447.7 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.463/3.056, allocations: 468.1 MB / 0.8944 GB, free: 27.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.164e-06/3.056, allocations: 3.844 kB / 0.8944 GB, free: 27.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001217/3.058, allocations: 329.8 kB / 0.8947 GB, free: 27.85 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.06762/3.125, allocations: 13.57 MB / 0.908 GB, free: 23.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/3.125, allocations: 9.969 kB / 0.908 GB, free: 23.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01035/3.136, allocations: 2.008 MB / 0.9099 GB, free: 23.63 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05563/3.191, allocations: 6.706 MB / 0.9165 GB, free: 22.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04039/3.232, allocations: 11.46 MB / 0.9277 GB, free: 21.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00176/3.234, allocations: 1.042 MB / 0.9287 GB, free: 21.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007363/3.241, allocations: 1.36 MB / 0.93 GB, free: 21.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08029/3.321, allocations: 23.81 MB / 0.9533 GB, free: 19.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009048/3.322, allocations: 24.06 kB / 0.9533 GB, free: 19.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006157/3.328, allocations: 0.5771 MB / 0.9538 GB, free: 19.75 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001555/3.33, allocations: 0.9358 MB / 0.9548 GB, free: 19.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06486/3.395, allocations: 21.63 MB / 0.9759 GB, free: 11.99 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5911/3.986, allocations: 77.49 MB / 1.052 GB, free: 26.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04682/4.033, allocations: 30.56 MB / 1.081 GB, free: 26.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02537/4.058, allocations: 10.65 MB / 1.092 GB, free: 26.09 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09126/4.15, allocations: 33.27 MB / 1.124 GB, free: 18.96 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001277/4.15, allocations: 129.6 kB / 1.124 GB, free: 18.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1011): time 1.688e-05/4.15, allocations: 2.531 kB / 1.124 GB, free: 18.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=1019): time 0.1107/4.261, allocations: 37.61 MB / 1.161 GB, free: 1.477 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/4.261, allocations: 165.6 kB / 1.161 GB, free: 1.375 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/4.273, allocations: 4.281 MB / 1.165 GB, free: 14.99 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002443/4.276, allocations: 165.7 kB / 1.166 GB, free: 14.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005098/4.281, allocations: 4.904 MB / 1.17 GB, free: 10.42 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006601/4.288, allocations: 3.344 MB / 1.174 GB, free: 7.402 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002609/4.29, allocations: 177.7 kB / 1.174 GB, free: 7.234 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001387/4.292, allocations: 0.7081 MB / 1.175 GB, free: 6.633 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01945/4.311, allocations: 6.658 MB / 1.181 GB, free: 0.6914 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4319/4.743, allocations: 10.38 MB / 1.191 GB, free: 71.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02297/4.766, allocations: 7.956 MB / 1.199 GB, free: 71.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/4.766, allocations: 13 kB / 1.199 GB, free: 71.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.06197/4.828, allocations: 20.62 MB / 1.219 GB, free: 70.68 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.403e-05/4.829, allocations: 23.81 kB / 1.219 GB, free: 70.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/4.829, allocations: 45.12 kB / 1.219 GB, free: 70.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03041/4.859, allocations: 8.433 MB / 1.227 GB, free: 70.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0118/4.871, allocations: 1.394 MB / 1.229 GB, free: 70.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0519/4.923, allocations: 27.79 MB / 1.256 GB, free: 62.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01114/4.934, allocations: 426.3 kB / 1.256 GB, free: 62.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00297/4.937, allocations: 374.9 kB / 1.257 GB, free: 62.31 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (727): * Single equations (assignments): 698 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 5 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.005355/4.943, allocations: 0.561 MB / 1.257 GB, free: 62.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004032/4.947, allocations: 0.7023 MB / 1.258 GB, free: 62.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06242/5.009, allocations: 21.01 MB / 1.278 GB, free: 56.47 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004004/5.009, allocations: 253.7 kB / 1.279 GB, free: 56.34 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.943e-05/5.01, allocations: 9.875 kB / 1.279 GB, free: 56.34 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002215/5.01, allocations: 46.53 kB / 1.279 GB, free: 56.34 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1074/5.117, allocations: 39.9 MB / 1.318 GB, free: 38.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001636/5.117, allocations: 6.5 kB / 1.318 GB, free: 38.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009106/5.127, allocations: 0.9703 MB / 1.319 GB, free: 38.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02978/5.156, allocations: 8.529 MB / 1.327 GB, free: 31.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002575/5.159, allocations: 226 kB / 1.327 GB, free: 31.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05483/5.214, allocations: 32.03 MB / 1.358 GB, free: 1.656 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/5.214, allocations: 8.406 kB / 1.358 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5091/5.723, allocations: 33.23 MB / 1.391 GB, free: 67.01 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009218/5.732, allocations: 2.356 MB / 1.393 GB, free: 66.92 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00412/5.737, allocations: 157.4 kB / 1.393 GB, free: 66.92 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01008/5.747, allocations: 393.8 kB / 1.394 GB, free: 66.92 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004145/5.751, allocations: 0.7896 MB / 1.395 GB, free: 66.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002692/5.754, allocations: 271.3 kB / 1.395 GB, free: 66.91 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009132/5.763, allocations: 3.259 MB / 1.398 GB, free: 66.71 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.41e-07/5.763, allocations: 2.594 kB / 1.398 GB, free: 66.71 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01619/5.779, allocations: 2.647 MB / 1.401 GB, free: 66.71 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (510): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.0878/5.867, allocations: 33.19 MB / 1.433 GB, free: 63.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04837/5.915, allocations: 17.4 MB / 1.45 GB, free: 57.71 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/5.915, allocations: 3.375 kB / 1.45 GB, free: 57.71 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03059/5.946, allocations: 10.12 MB / 1.46 GB, free: 53.25 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01485/5.961, allocations: 1.578 MB / 1.461 GB, free: 52.85 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1047/6.066, allocations: 30.84 MB / 1.492 GB, free: 35.76 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02066/6.086, allocations: 9.229 MB / 1.501 GB, free: 28.79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0143/6.101, allocations: 5.248 MB / 1.506 GB, free: 23.91 MB / 490.7 MB Notification: Performance of SimCode: time 1.423e-06/6.101, allocations: 0 / 1.506 GB, free: 23.91 MB / 490.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_YDCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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_YDFunctions.cpp:417:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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_YDCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFMU.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_YDCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o] Error 1