Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.009e-05/3.014e-05, allocations: 0 / 292.2 MB, free: 8.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 50.42 MB / 342.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5546/0.6653, allocations: 153.5 MB / 496.1 MB, free: 5.641 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003597/0.6657, allocations: 98.36 kB / 496.2 MB, free: 5.586 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.463/3.128, allocations: 0.4891 GB / 0.9737 GB, free: 42.74 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.324e-06/3.129, allocations: 192 / 0.9737 GB, free: 42.74 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001306/3.13, allocations: 347.3 kB / 0.974 GB, free: 42.69 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.07076/3.201, allocations: 14.79 MB / 0.9885 GB, free: 37.96 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/3.201, allocations: 9.625 kB / 0.9885 GB, free: 37.96 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01077/3.211, allocations: 2.159 MB / 0.9906 GB, free: 37.81 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06149/3.273, allocations: 7.375 MB / 0.9978 GB, free: 36.94 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04305/3.316, allocations: 12.52 MB / 1.01 GB, free: 29.61 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001562/3.318, allocations: 1.12 MB / 1.011 GB, free: 28.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007793/3.326, allocations: 1.468 MB / 1.013 GB, free: 27.05 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08312/3.409, allocations: 24.67 MB / 1.037 GB, free: 5.082 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008956/3.41, allocations: 26.83 kB / 1.037 GB, free: 5.062 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00699/3.417, allocations: 0.6249 MB / 1.037 GB, free: 4.438 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001934/3.419, allocations: 1.094 MB / 1.038 GB, free: 3.473 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4947/3.913, allocations: 22.19 MB / 1.06 GB, free: 45.39 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2036/4.117, allocations: 80.59 MB / 1.139 GB, free: 17.56 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07104/4.188, allocations: 38.78 MB / 1.177 GB, free: 1.211 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02821/4.216, allocations: 7.492 MB / 1.184 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05427/4.271, allocations: 17.35 MB / 1.201 GB, free: 7.496 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01357/4.284, allocations: 5.15 MB / 1.206 GB, free: 3.781 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=717): time 1.159e-05/4.284, allocations: 3 kB / 1.206 GB, free: 3.781 MB / 0.4948 GB Notification: Performance of matching and sorting (n=725): time 0.5195/4.804, allocations: 25.87 MB / 1.231 GB, free: 87.41 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002819/4.804, allocations: 471.5 kB / 1.232 GB, free: 86.94 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01709/4.821, allocations: 5.585 MB / 1.237 GB, free: 86.58 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00175/4.823, allocations: 151.7 kB / 1.237 GB, free: 86.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.009163/4.832, allocations: 6.177 MB / 1.243 GB, free: 85.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004187/4.836, allocations: 2.412 MB / 1.246 GB, free: 83.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001697/4.838, allocations: 183.2 kB / 1.246 GB, free: 83.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009819/4.839, allocations: 0.6792 MB / 1.246 GB, free: 83.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01365/4.853, allocations: 4.635 MB / 1.251 GB, free: 83.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01659/4.87, allocations: 7.446 MB / 1.258 GB, free: 79.92 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0158/4.885, allocations: 6.13 MB / 1.264 GB, free: 79.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001728/4.886, allocations: 25.91 kB / 1.264 GB, free: 79.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.04409/4.93, allocations: 14.61 MB / 1.278 GB, free: 79.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/4.93, allocations: 47.84 kB / 1.279 GB, free: 79.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002153/4.93, allocations: 84.16 kB / 1.279 GB, free: 79.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0126/4.943, allocations: 2.879 MB / 1.281 GB, free: 79.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01411/4.957, allocations: 1.81 MB / 1.283 GB, free: 79.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06247/5.019, allocations: 30.57 MB / 1.313 GB, free: 66.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01202/5.031, allocations: 0.5828 MB / 1.314 GB, free: 66.74 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002401/5.034, allocations: 406.8 kB / 1.314 GB, free: 66.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (966): * Single equations (assignments): 959 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002307/5.036, allocations: 0.6735 MB / 1.315 GB, free: 66.24 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002164/5.038, allocations: 0.701 MB / 1.315 GB, free: 65.87 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03784/5.076, allocations: 13.15 MB / 1.328 GB, free: 60.62 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.17e-05/5.076, allocations: 73.97 kB / 1.328 GB, free: 60.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.073e-05/5.076, allocations: 34.55 kB / 1.328 GB, free: 60.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001776/5.077, allocations: 41.8 kB / 1.328 GB, free: 60.62 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07613/5.153, allocations: 27.5 MB / 1.355 GB, free: 49.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.944e-05/5.153, allocations: 3.688 kB / 1.355 GB, free: 49.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009633/5.163, allocations: 1.069 MB / 1.356 GB, free: 49.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01278/5.175, allocations: 2.935 MB / 1.359 GB, free: 47.91 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001699/5.177, allocations: 166 kB / 1.359 GB, free: 47.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05805/5.235, allocations: 33.04 MB / 1.392 GB, free: 17.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.278e-06/5.235, allocations: 4.156 kB / 1.392 GB, free: 17.19 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05313/5.288, allocations: 20.35 MB / 1.411 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007784/5.296, allocations: 1.81 MB / 1.413 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00321/5.3, allocations: 139 kB / 1.413 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009425/5.309, allocations: 443.4 kB / 1.414 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003322/5.312, allocations: 0.6436 MB / 1.414 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0013/5.314, allocations: 204.3 kB / 1.415 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.49/5.804, allocations: 5.154 MB / 1.42 GB, free: 95.27 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.232e-06/5.804, allocations: 0.9375 kB / 1.42 GB, free: 95.27 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01838/5.822, allocations: 2.923 MB / 1.422 GB, free: 95.27 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (576): * Single equations (assignments): 562 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,31.9%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05633/5.879, allocations: 22.44 MB / 1.444 GB, free: 91.42 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03313/5.912, allocations: 12.73 MB / 1.457 GB, free: 90.36 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/5.912, allocations: 3.438 kB / 1.457 GB, free: 90.36 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02059/5.932, allocations: 7.744 MB / 1.464 GB, free: 89.31 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01539/5.948, allocations: 1.753 MB / 1.466 GB, free: 89.28 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09593/6.044, allocations: 28.35 MB / 1.494 GB, free: 84.56 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02469/6.069, allocations: 9.836 MB / 1.503 GB, free: 83.43 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01572/6.084, allocations: 5.75 MB / 1.509 GB, free: 79.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.814e-06/6.084, allocations: 4 kB / 1.509 GB, free: 79.3 MB / 0.5261 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_IMC_YDCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp222 = 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_IMC_YDFunctions.cpp:417:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp222 = 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_IMC_YDCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o] Error 1