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.844/1.844, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.36e-05/3.375e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08946/0.08952, allocations: 44.51 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4977/0.5873, allocations: 141 MB / 440.9 MB, free: 3.379 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000349/0.5877, allocations: 96 kB / 441 MB, free: 3.328 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.695/2.283, allocations: 351.8 MB / 0.7742 GB, free: 50.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/2.283, allocations: 0 / 0.7742 GB, free: 50.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009573/2.284, allocations: 247.7 kB / 0.7744 GB, free: 50.03 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.0485/2.333, allocations: 10.29 MB / 0.7845 GB, free: 46.78 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/2.333, allocations: 7.219 kB / 0.7845 GB, free: 46.78 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007331/2.34, allocations: 1.524 MB / 0.786 GB, free: 46.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04542/2.386, allocations: 5.383 MB / 0.7912 GB, free: 46.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03368/2.419, allocations: 9.381 MB / 0.8004 GB, free: 40.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001239/2.421, allocations: 0.7905 MB / 0.8012 GB, free: 40.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005404/2.426, allocations: 1.039 MB / 0.8022 GB, free: 39.06 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.056/2.482, allocations: 17.72 MB / 0.8195 GB, free: 23.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005796/2.483, allocations: 19.28 kB / 0.8195 GB, free: 23.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004306/2.487, allocations: 451.9 kB / 0.8199 GB, free: 22.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001069/2.488, allocations: 0.7362 MB / 0.8207 GB, free: 22.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05283/2.541, allocations: 16.42 MB / 0.8367 GB, free: 7.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.54/3.081, allocations: 58.33 MB / 0.8937 GB, free: 38.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03476/3.116, allocations: 23.31 MB / 0.9164 GB, free: 21.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01712/3.133, allocations: 6.937 MB / 0.9232 GB, free: 18.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06045/3.193, allocations: 21.9 MB / 0.9446 GB, free: 23.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/3.194, allocations: 96.67 kB / 0.9447 GB, free: 23.42 MB / 442.7 MB Notification: Performance of pre-optimization done (n=662): time 1.171e-05/3.194, allocations: 2.516 kB / 0.9447 GB, free: 23.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=687): time 0.07452/3.268, allocations: 25.02 MB / 0.9691 GB, free: 11.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/3.268, allocations: 144.6 kB / 0.9693 GB, free: 11.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009259/3.278, allocations: 3.568 MB / 0.9727 GB, free: 10.01 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001588/3.279, allocations: 127.1 kB / 0.9729 GB, free: 9.902 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004003/3.283, allocations: 4.011 MB / 0.9768 GB, free: 6.777 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004476/3.288, allocations: 2.279 MB / 0.979 GB, free: 5.004 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001762/3.29, allocations: 137 kB / 0.9791 GB, free: 4.898 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009567/3.291, allocations: 0.5985 MB / 0.9797 GB, free: 4.461 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01217/3.303, allocations: 4.437 MB / 0.9841 GB, free: 2.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02686/3.33, allocations: 6.709 MB / 0.9906 GB, free: 13.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01561/3.345, allocations: 5.464 MB / 0.9959 GB, free: 9.238 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-05/3.346, allocations: 19.05 kB / 0.996 GB, free: 9.223 MB / 458.7 MB Notification: Performance of matching and sorting (n=931) (initialization): time 0.4044/3.75, allocations: 13.53 MB / 1.009 GB, free: 75.99 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.537e-05/3.75, allocations: 25.75 kB / 1.009 GB, free: 75.99 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/3.75, allocations: 45.31 kB / 1.009 GB, free: 75.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01616/3.766, allocations: 3.972 MB / 1.013 GB, free: 75.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01114/3.778, allocations: 1.301 MB / 1.014 GB, free: 75.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02889/3.807, allocations: 16.73 MB / 1.031 GB, free: 69.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008825/3.815, allocations: 347.2 kB / 1.031 GB, free: 69.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002228/3.818, allocations: 295.7 kB / 1.031 GB, free: 69.48 MB / 458.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.00349/3.821, allocations: 480 kB / 1.032 GB, free: 69.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002705/3.824, allocations: 0.5298 MB / 1.032 GB, free: 69.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03966/3.864, allocations: 13.15 MB / 1.045 GB, free: 68.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002576/3.864, allocations: 154 kB / 1.045 GB, free: 68.79 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.044e-05/3.864, allocations: 7.719 kB / 1.045 GB, free: 68.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001874/3.864, allocations: 28.88 kB / 1.045 GB, free: 68.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07407/3.938, allocations: 26.51 MB / 1.071 GB, free: 63.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000121/3.939, allocations: 3.75 kB / 1.071 GB, free: 63.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007979/3.947, allocations: 0.8557 MB / 1.072 GB, free: 63.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01373/3.96, allocations: 3.927 MB / 1.076 GB, free: 62.53 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001608/3.962, allocations: 151.8 kB / 1.076 GB, free: 62.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0275/3.989, allocations: 20.67 MB / 1.096 GB, free: 47.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/3.99, allocations: 5.469 kB / 1.096 GB, free: 47.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0456/4.035, allocations: 19.8 MB / 1.116 GB, free: 37.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005878/4.041, allocations: 1.647 MB / 1.117 GB, free: 36.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/4.043, allocations: 112.1 kB / 1.117 GB, free: 36.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006324/4.049, allocations: 311.5 kB / 1.118 GB, free: 36.74 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001815/4.051, allocations: 0.5041 MB / 1.118 GB, free: 36.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007276/4.052, allocations: 185.1 kB / 1.118 GB, free: 36.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006091/4.058, allocations: 2.697 MB / 1.121 GB, free: 35.53 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.61e-07/4.058, allocations: 0 / 1.121 GB, free: 35.53 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01139/4.069, allocations: 1.975 MB / 1.123 GB, free: 35.32 MB / 458.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.04845/4.118, allocations: 21.68 MB / 1.144 GB, free: 16.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03077/4.149, allocations: 11.54 MB / 1.155 GB, free: 5.695 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/4.149, allocations: 0.5 kB / 1.155 GB, free: 5.695 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01813/4.167, allocations: 6.564 MB / 1.162 GB, free: 15.75 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01103/4.178, allocations: 1.173 MB / 1.163 GB, free: 14.84 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4468/4.625, allocations: 22.27 MB / 1.185 GB, free: 88.43 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01675/4.642, allocations: 6.91 MB / 1.191 GB, free: 87.56 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01237/4.654, allocations: 4.039 MB / 1.195 GB, free: 87.56 MB / 474.7 MB Notification: Performance of SimCode: time 1.693e-06/4.654, allocations: 0 / 1.195 GB, free: 87.56 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