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.899/1.899, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.925e-05/2.935e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08872/0.08877, allocations: 44.51 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5266/0.6154, allocations: 147.7 MB / 447.7 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003607/0.6158, allocations: 101.5 kB / 447.8 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.352/2.968, allocations: 468.1 MB / 0.8944 GB, free: 27.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.555e-06/2.968, allocations: 3.656 kB / 0.8944 GB, free: 27.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001446/2.97, allocations: 326.5 kB / 0.8947 GB, free: 27.93 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.06738/3.037, allocations: 13.58 MB / 0.908 GB, free: 23.85 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/3.037, allocations: 10.81 kB / 0.908 GB, free: 23.85 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009675/3.047, allocations: 2.002 MB / 0.9099 GB, free: 23.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05501/3.102, allocations: 6.719 MB / 0.9165 GB, free: 22.9 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03901/3.141, allocations: 11.45 MB / 0.9277 GB, free: 21.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001666/3.143, allocations: 1.044 MB / 0.9287 GB, free: 21.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007606/3.15, allocations: 1.365 MB / 0.93 GB, free: 21.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07428/3.225, allocations: 23.63 MB / 0.9531 GB, free: 19.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000782/3.225, allocations: 27.73 kB / 0.9532 GB, free: 19.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006159/3.232, allocations: 0.5796 MB / 0.9537 GB, free: 19.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001474/3.233, allocations: 0.9376 MB / 0.9546 GB, free: 19.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06392/3.297, allocations: 21.45 MB / 0.9756 GB, free: 12.22 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6013/3.898, allocations: 77.41 MB / 1.051 GB, free: 26.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0487/3.947, allocations: 30.47 MB / 1.081 GB, free: 26.48 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03167/3.979, allocations: 10.65 MB / 1.091 GB, free: 26.36 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0936/4.072, allocations: 33.27 MB / 1.124 GB, free: 19.4 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/4.073, allocations: 133.4 kB / 1.124 GB, free: 19.29 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1011): time 1.528e-05/4.073, allocations: 0 / 1.124 GB, free: 19.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=1019): time 0.1129/4.186, allocations: 37.6 MB / 1.161 GB, free: 1.918 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/4.186, allocations: 172.3 kB / 1.161 GB, free: 1.816 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01287/4.199, allocations: 4.319 MB / 1.165 GB, free: 15.78 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002456/4.201, allocations: 165.7 kB / 1.165 GB, free: 15.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005096/4.206, allocations: 4.902 MB / 1.17 GB, free: 11.21 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006717/4.213, allocations: 3.349 MB / 1.173 GB, free: 8.188 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002585/4.216, allocations: 172 kB / 1.173 GB, free: 8.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001409/4.217, allocations: 0.7137 MB / 1.174 GB, free: 7.414 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01923/4.236, allocations: 6.651 MB / 1.181 GB, free: 1.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4267/4.663, allocations: 10.04 MB / 1.19 GB, free: 70.87 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02292/4.686, allocations: 7.96 MB / 1.198 GB, free: 70.74 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/4.686, allocations: 13.16 kB / 1.198 GB, free: 70.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.06135/4.748, allocations: 20.51 MB / 1.218 GB, free: 70.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.043e-05/4.748, allocations: 21.94 kB / 1.218 GB, free: 70.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/4.748, allocations: 47.52 kB / 1.218 GB, free: 70.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02954/4.777, allocations: 8.434 MB / 1.227 GB, free: 70.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01155/4.789, allocations: 1.393 MB / 1.228 GB, free: 70.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06637/4.855, allocations: 27.79 MB / 1.255 GB, free: 61.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01114/4.867, allocations: 430.8 kB / 1.255 GB, free: 61.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003064/4.87, allocations: 370.9 kB / 1.256 GB, free: 61.93 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.005377/4.875, allocations: 0.5592 MB / 1.256 GB, free: 61.83 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003948/4.879, allocations: 0.694 MB / 1.257 GB, free: 61.82 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06137/4.941, allocations: 21 MB / 1.278 GB, free: 56.13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003979/4.941, allocations: 251.6 kB / 1.278 GB, free: 56.01 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.103e-05/4.941, allocations: 11.53 kB / 1.278 GB, free: 56.01 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002227/4.941, allocations: 44.31 kB / 1.278 GB, free: 56.01 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1132/5.055, allocations: 39.91 MB / 1.317 GB, free: 38.51 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000191/5.055, allocations: 3.938 kB / 1.317 GB, free: 38.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009171/5.064, allocations: 0.9682 MB / 1.318 GB, free: 38.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0299/5.094, allocations: 8.539 MB / 1.326 GB, free: 31.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002704/5.097, allocations: 214.3 kB / 1.326 GB, free: 31.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0576/5.154, allocations: 32.02 MB / 1.358 GB, free: 1.781 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/5.154, allocations: 4 kB / 1.358 GB, free: 1.777 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.487/5.641, allocations: 33.18 MB / 1.39 GB, free: 66.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008743/5.65, allocations: 2.355 MB / 1.392 GB, free: 66.84 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004117/5.654, allocations: 157.7 kB / 1.392 GB, free: 66.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009964/5.664, allocations: 396.5 kB / 1.393 GB, free: 66.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00387/5.668, allocations: 0.7942 MB / 1.394 GB, free: 66.83 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001827/5.67, allocations: 269 kB / 1.394 GB, free: 66.83 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008353/5.679, allocations: 3.26 MB / 1.397 GB, free: 66.62 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.114e-06/5.679, allocations: 2.281 kB / 1.397 GB, free: 66.62 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01661/5.695, allocations: 2.646 MB / 1.4 GB, free: 66.62 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.0838/5.779, allocations: 33.19 MB / 1.432 GB, free: 63.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.05776/5.837, allocations: 17.23 MB / 1.449 GB, free: 57.65 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/5.837, allocations: 4.812 kB / 1.449 GB, free: 57.65 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03845/5.875, allocations: 10.01 MB / 1.459 GB, free: 53.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01754/5.893, allocations: 1.582 MB / 1.46 GB, free: 52.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1002/5.993, allocations: 30.8 MB / 1.49 GB, free: 36.12 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01857/6.012, allocations: 9.229 MB / 1.499 GB, free: 29.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01271/6.025, allocations: 5.24 MB / 1.504 GB, free: 24.28 MB / 490.7 MB Notification: Performance of SimCode: time 2.104e-06/6.025, allocations: 0 / 1.504 GB, free: 24.28 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