Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.377e-05, allocations: 6.031 kB / 292.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 50.41 MB / 342.7 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5489/0.6623, allocations: 147.6 MB / 490.3 MB, free: 11.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003366/0.6627, allocations: 111.2 kB / 490.4 MB, free: 11.04 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673/2.336, allocations: 349.3 MB / 0.82 GB, free: 45.65 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.824e-06/2.336, allocations: 3.938 kB / 0.82 GB, free: 45.65 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008881/2.337, allocations: 247.7 kB / 0.8203 GB, free: 45.41 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04792/2.385, allocations: 10.19 MB / 0.8302 GB, free: 35.12 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/2.385, allocations: 12.03 kB / 0.8302 GB, free: 35.11 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006979/2.392, allocations: 1.498 MB / 0.8317 GB, free: 33.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0405/2.432, allocations: 4.735 MB / 0.8363 GB, free: 28.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03169/2.464, allocations: 9.469 MB / 0.8456 GB, free: 19.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009597/2.465, allocations: 0.7707 MB / 0.8463 GB, free: 18.53 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004899/2.47, allocations: 1.027 MB / 0.8473 GB, free: 17.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05822/2.528, allocations: 16.66 MB / 0.8636 GB, free: 0.4961 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000643/2.529, allocations: 11.89 kB / 0.8636 GB, free: 496 kB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004525/2.534, allocations: 448 kB / 0.864 GB, free: 48 kB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3775/2.911, allocations: 0.7447 MB / 0.8647 GB, free: 46.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05067/2.962, allocations: 14.88 MB / 0.8793 GB, free: 46.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1395/3.101, allocations: 55.89 MB / 0.9339 GB, free: 33.47 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03947/3.141, allocations: 30.87 MB / 0.964 GB, free: 5.84 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01055/3.151, allocations: 4.221 MB / 0.9681 GB, free: 4.215 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02974/3.181, allocations: 10.47 MB / 0.9784 GB, free: 15.17 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.88e-05/3.181, allocations: 80.61 kB / 0.9784 GB, free: 15.1 MB / 474.7 MB Notification: Performance of pre-optimization done (n=396): time 6.973e-06/3.181, allocations: 0 / 0.9784 GB, free: 15.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=421): time 0.05006/3.232, allocations: 16 MB / 0.9941 GB, free: 7.039 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/3.232, allocations: 119.7 kB / 0.9942 GB, free: 6.938 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01077/3.242, allocations: 4.075 MB / 0.9982 GB, free: 5.352 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001018/3.244, allocations: 96.2 kB / 0.9982 GB, free: 5.266 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004543/3.248, allocations: 4.452 MB / 1.003 GB, free: 1.812 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002553/3.251, allocations: 1.445 MB / 1.004 GB, free: 0.6992 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008569/3.252, allocations: 118.7 kB / 1.004 GB, free: 0.6055 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005564/3.252, allocations: 0.5493 MB / 1.005 GB, free: 192 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01172/3.264, allocations: 3.038 MB / 1.008 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/3.274, allocations: 4.788 MB / 1.012 GB, free: 11.73 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/3.285, allocations: 3.879 MB / 1.016 GB, free: 8.453 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.973e-05/3.285, allocations: 16 kB / 1.016 GB, free: 8.438 MB / 490.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.02964/3.314, allocations: 9.082 MB / 1.025 GB, free: 0.8906 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.531e-05/3.315, allocations: 32 kB / 1.025 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001571/3.315, allocations: 64 kB / 1.025 GB, free: 0.7969 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008558/3.323, allocations: 1.676 MB / 1.027 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01075/3.334, allocations: 1.311 MB / 1.028 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4538/3.788, allocations: 16.38 MB / 1.044 GB, free: 84.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008397/3.796, allocations: 331.7 kB / 1.044 GB, free: 84.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002077/3.798, allocations: 282.1 kB / 1.045 GB, free: 84.77 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (669): * Single equations (assignments): 665 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,67.3%) 28,(1,100.0%) 1,(14,40.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002991/3.802, allocations: 473.3 kB / 1.045 GB, free: 84.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002515/3.804, allocations: 497.5 kB / 1.045 GB, free: 84.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03579/3.84, allocations: 7.628 MB / 1.053 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.108e-05/3.84, allocations: 46.98 kB / 1.053 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.361e-05/3.84, allocations: 20.22 kB / 1.053 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001653/3.84, allocations: 24.52 kB / 1.053 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06388/3.904, allocations: 17.27 MB / 1.07 GB, free: 83.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.016e-05/3.904, allocations: 8.938 kB / 1.07 GB, free: 83.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006703/3.911, allocations: 0.7203 MB / 1.071 GB, free: 83.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007624/3.919, allocations: 1.557 MB / 1.072 GB, free: 82.98 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001133/3.92, allocations: 104.4 kB / 1.072 GB, free: 82.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03287/3.953, allocations: 19.41 MB / 1.091 GB, free: 73.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.155e-05/3.953, allocations: 15.67 kB / 1.091 GB, free: 73.82 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03008/3.983, allocations: 11.91 MB / 1.103 GB, free: 71.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006037/3.989, allocations: 1.156 MB / 1.104 GB, free: 71.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002397/3.991, allocations: 87.03 kB / 1.104 GB, free: 71.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008086/4, allocations: 252 kB / 1.104 GB, free: 71.82 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001244/4.001, allocations: 326.9 kB / 1.105 GB, free: 71.81 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004521/4.001, allocations: 127.2 kB / 1.105 GB, free: 71.81 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007305/4.009, allocations: 3.062 MB / 1.108 GB, free: 71.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.352e-06/4.009, allocations: 0 / 1.108 GB, free: 71.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01055/4.019, allocations: 1.916 MB / 1.11 GB, free: 71.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 355 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 7 {(1,100.0%) 1,(14,39.8%) 44,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02951/4.049, allocations: 14.39 MB / 1.124 GB, free: 67.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02074/4.07, allocations: 7.682 MB / 1.131 GB, free: 64.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.67e-05/4.07, allocations: 10.22 kB / 1.131 GB, free: 64.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01232/4.082, allocations: 4.448 MB / 1.135 GB, free: 62.43 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01053/4.093, allocations: 1.181 MB / 1.137 GB, free: 62.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06184/4.154, allocations: 18.97 MB / 1.155 GB, free: 54.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01783/4.172, allocations: 6.75 MB / 1.162 GB, free: 50.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01022/4.183, allocations: 4.019 MB / 1.166 GB, free: 46.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.743e-06/4.183, allocations: 0 / 1.166 GB, free: 46.66 MB / 0.4948 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_InitializeCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFunctions.cpp:418:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp133 = 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_InitializeFunctions.cpp:418:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp133 = 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_InitializeCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFMU.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_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.o] Error 1