Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.815/1.815, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.947e-05/3.987e-05, allocations: 7.984 kB / 255.5 MB, free: 3.062 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1218, allocations: 44.51 MB / 300 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5589/0.6808, allocations: 141 MB / 441 MB, free: 3.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/0.6811, allocations: 95.06 kB / 441.1 MB, free: 3.301 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.696/2.377, allocations: 351.8 MB / 0.7742 GB, free: 50.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.076e-06/2.377, allocations: 4 kB / 0.7742 GB, free: 50.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009591/2.378, allocations: 248 kB / 0.7745 GB, free: 50.09 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.04958/2.428, allocations: 10.28 MB / 0.7845 GB, free: 46.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/2.428, allocations: 11.03 kB / 0.7845 GB, free: 46.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007633/2.435, allocations: 1.526 MB / 0.786 GB, free: 46.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04576/2.481, allocations: 5.377 MB / 0.7913 GB, free: 46.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03163/2.513, allocations: 9.389 MB / 0.8004 GB, free: 40.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001178/2.514, allocations: 0.7905 MB / 0.8012 GB, free: 40.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005693/2.52, allocations: 1.035 MB / 0.8022 GB, free: 39.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05815/2.578, allocations: 17.59 MB / 0.8194 GB, free: 23.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005753/2.578, allocations: 26.48 kB / 0.8194 GB, free: 23.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004154/2.583, allocations: 452 kB / 0.8199 GB, free: 22.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001028/2.584, allocations: 0.7352 MB / 0.8206 GB, free: 22.31 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05107/2.635, allocations: 16.28 MB / 0.8365 GB, free: 7.449 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4936/3.128, allocations: 58.32 MB / 0.8934 GB, free: 38.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0347/3.163, allocations: 23.25 MB / 0.9161 GB, free: 21.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01662/3.18, allocations: 6.931 MB / 0.9229 GB, free: 18.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06013/3.24, allocations: 21.9 MB / 0.9443 GB, free: 23.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.482e-05/3.24, allocations: 102.7 kB / 0.9444 GB, free: 23.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=662): time 1.062e-05/3.24, allocations: 0 / 0.9444 GB, free: 23.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=687): time 0.07045/3.311, allocations: 25.02 MB / 0.9688 GB, free: 11.83 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/3.311, allocations: 141.4 kB / 0.969 GB, free: 11.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008962/3.32, allocations: 3.562 MB / 0.9724 GB, free: 10.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001578/3.321, allocations: 130.8 kB / 0.9726 GB, free: 10.22 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003939/3.325, allocations: 4.01 MB / 0.9765 GB, free: 7.098 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004197/3.33, allocations: 2.282 MB / 0.9787 GB, free: 5.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/3.331, allocations: 132.6 kB / 0.9788 GB, free: 5.219 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007737/3.332, allocations: 0.6009 MB / 0.9794 GB, free: 4.781 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01177/3.343, allocations: 4.436 MB / 0.9838 GB, free: 2.605 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02394/3.367, allocations: 6.5 MB / 0.9901 GB, free: 14.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01573/3.383, allocations: 5.468 MB / 0.9954 GB, free: 9.277 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.067e-05/3.383, allocations: 15.95 kB / 0.9955 GB, free: 9.262 MB / 458.7 MB Notification: Performance of matching and sorting (n=931) (initialization): time 0.04446/3.428, allocations: 13.39 MB / 1.009 GB, free: 14.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.307e-05/3.428, allocations: 24.84 kB / 1.009 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001226/3.428, allocations: 44 kB / 1.009 GB, free: 14.03 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01506/3.443, allocations: 3.973 MB / 1.012 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01113/3.454, allocations: 1.307 MB / 1.014 GB, free: 9.754 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3822/3.837, allocations: 16.78 MB / 1.03 GB, free: 92.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008812/3.845, allocations: 352.9 kB / 1.03 GB, free: 92.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002238/3.848, allocations: 297.2 kB / 1.031 GB, free: 92.59 MB / 474.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (667): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * 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: 3 {(1,100.0%) 1,(8,56.2%) 27,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.002818/3.851, allocations: 478.2 kB / 1.031 GB, free: 92.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002248/3.853, allocations: 0.5343 MB / 1.032 GB, free: 92.48 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0393/3.892, allocations: 13.14 MB / 1.045 GB, free: 91.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00023/3.892, allocations: 154.2 kB / 1.045 GB, free: 91.91 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.046e-05/3.893, allocations: 7.812 kB / 1.045 GB, free: 91.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001527/3.893, allocations: 35.09 kB / 1.045 GB, free: 91.91 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06992/3.963, allocations: 26.49 MB / 1.071 GB, free: 90.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001171/3.963, allocations: 7 kB / 1.071 GB, free: 90.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00796/3.971, allocations: 0.8631 MB / 1.071 GB, free: 90.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01371/3.984, allocations: 3.919 MB / 1.075 GB, free: 89.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001708/3.986, allocations: 150.1 kB / 1.075 GB, free: 89.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02791/4.014, allocations: 20.66 MB / 1.096 GB, free: 74.42 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/4.014, allocations: 3.656 kB / 1.096 GB, free: 74.42 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04728/4.062, allocations: 19.8 MB / 1.115 GB, free: 65.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005759/4.067, allocations: 1.645 MB / 1.117 GB, free: 64.17 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002664/4.07, allocations: 117.6 kB / 1.117 GB, free: 64.08 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007283/4.077, allocations: 305.2 kB / 1.117 GB, free: 64 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002048/4.079, allocations: 0.5034 MB / 1.117 GB, free: 63.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007503/4.08, allocations: 188.1 kB / 1.118 GB, free: 63.86 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006072/4.086, allocations: 2.69 MB / 1.12 GB, free: 62.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.72e-07/4.086, allocations: 4.969 kB / 1.12 GB, free: 62.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01115/4.097, allocations: 1.98 MB / 1.122 GB, free: 62.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.strayReluctance.Phi.re,imc.stator.strayReluctance.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 (445): * Single equations (assignments): 403 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.04618/4.144, allocations: 21.69 MB / 1.143 GB, free: 48.52 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02839/4.172, allocations: 11.4 MB / 1.155 GB, free: 38.26 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/4.172, allocations: 7.281 kB / 1.155 GB, free: 38.26 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01672/4.189, allocations: 6.468 MB / 1.161 GB, free: 32.41 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01055/4.2, allocations: 1.168 MB / 1.162 GB, free: 31.52 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06436/4.264, allocations: 22.25 MB / 1.184 GB, free: 12.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01244/4.276, allocations: 6.913 MB / 1.19 GB, free: 6.867 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3633/4.64, allocations: 4.629 MB / 1.195 GB, free: 85.84 MB / 474.7 MB Notification: Performance of SimCode: time 1.292e-06/4.64, allocations: 0 / 1.195 GB, free: 85.84 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_InitializeCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFunctions.cpp:418:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeFunctions.cpp:418:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_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_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.o] Error 1