Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.886/1.886, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.92e-05/2.932e-05, allocations: 0 / 255.5 MB, free: 3.059 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.0899, allocations: 44.5 MB / 300 MB, free: 6.492 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5188/0.6088, allocations: 147.2 MB / 447.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004455/0.6093, allocations: 107.5 kB / 447.3 MB, free: 13.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.361/2.971, allocations: 458.7 MB / 0.8847 GB, free: 33.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.903e-06/2.971, allocations: 0 / 0.8847 GB, free: 33.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001582/2.972, allocations: 332.6 kB / 0.8851 GB, free: 33.27 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: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.06524/3.038, allocations: 13.28 MB / 0.898 GB, free: 29.24 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/3.038, allocations: 10.34 kB / 0.898 GB, free: 29.24 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01195/3.05, allocations: 2.305 MB / 0.9003 GB, free: 29.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05487/3.104, allocations: 6.467 MB / 0.9066 GB, free: 28.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04188/3.146, allocations: 11.52 MB / 0.9179 GB, free: 26.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001784/3.148, allocations: 1.049 MB / 0.9189 GB, free: 26.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007506/3.156, allocations: 1.371 MB / 0.9202 GB, free: 26.87 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08465/3.241, allocations: 23.21 MB / 0.9429 GB, free: 25.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001078/3.242, allocations: 20.89 kB / 0.9429 GB, free: 25.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007644/3.249, allocations: 0.5866 MB / 0.9435 GB, free: 25.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002048/3.251, allocations: 0.9241 MB / 0.9444 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07222/3.324, allocations: 20.81 MB / 0.9647 GB, free: 19.29 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5913/3.915, allocations: 75.15 MB / 1.038 GB, free: 28.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04491/3.96, allocations: 28.18 MB / 1.066 GB, free: 28.96 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02275/3.983, allocations: 9.359 MB / 1.075 GB, free: 28.84 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1029/4.086, allocations: 29.54 MB / 1.104 GB, free: 27.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00012/4.086, allocations: 121.4 kB / 1.104 GB, free: 27.41 MB / 474.7 MB Notification: Performance of pre-optimization done (n=934): time 1.38e-05/4.086, allocations: 0 / 1.104 GB, free: 27.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=942): time 0.09458/4.181, allocations: 33.15 MB / 1.136 GB, free: 14.64 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/4.181, allocations: 162.3 kB / 1.136 GB, free: 14.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01068/4.191, allocations: 4.092 MB / 1.14 GB, free: 12.99 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002147/4.194, allocations: 156.3 kB / 1.14 GB, free: 12.86 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00382/4.198, allocations: 5.057 MB / 1.145 GB, free: 8.949 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005907/4.203, allocations: 3.11 MB / 1.148 GB, free: 6.527 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002411/4.206, allocations: 165.9 kB / 1.149 GB, free: 6.398 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001276/4.207, allocations: 0.6898 MB / 1.149 GB, free: 5.918 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01663/4.224, allocations: 5.961 MB / 1.155 GB, free: 3.426 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01923/4.243, allocations: 7.787 MB / 1.163 GB, free: 14.84 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02043/4.264, allocations: 7.271 MB / 1.17 GB, free: 10.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00011/4.264, allocations: 12 kB / 1.17 GB, free: 10.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.4527/4.717, allocations: 18.39 MB / 1.188 GB, free: 70.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.363e-05/4.717, allocations: 29.59 kB / 1.188 GB, free: 70.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/4.717, allocations: 51.69 kB / 1.188 GB, free: 70.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02258/4.739, allocations: 5.864 MB / 1.193 GB, free: 70.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01282/4.752, allocations: 1.522 MB / 1.195 GB, free: 70.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03528/4.788, allocations: 19.97 MB / 1.214 GB, free: 62.92 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0106/4.798, allocations: 426.2 kB / 1.215 GB, free: 62.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002801/4.801, allocations: 374.3 kB / 1.215 GB, free: 62.92 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (800): * Single equations (assignments): 747 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.004502/4.806, allocations: 0.5618 MB / 1.216 GB, free: 62.81 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003074/4.809, allocations: 0.6568 MB / 1.216 GB, free: 62.81 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05368/4.863, allocations: 18.08 MB / 1.234 GB, free: 62.18 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03865/4.901, allocations: 14.28 MB / 1.248 GB, free: 61.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.833e-05/4.901, allocations: 6.531 kB / 1.248 GB, free: 61.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002087/4.902, allocations: 43.5 kB / 1.248 GB, free: 61.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09767/4.999, allocations: 35.33 MB / 1.283 GB, free: 50.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001231/4.999, allocations: 3.688 kB / 1.283 GB, free: 50.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009777/5.009, allocations: 1.034 MB / 1.284 GB, free: 50.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0207/5.03, allocations: 5.957 MB / 1.289 GB, free: 48.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002428/5.033, allocations: 206.8 kB / 1.29 GB, free: 48.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0383/5.071, allocations: 24.2 MB / 1.313 GB, free: 32.04 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/5.071, allocations: 4.656 kB / 1.313 GB, free: 32.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06532/5.136, allocations: 27.02 MB / 1.34 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007948/5.144, allocations: 2.103 MB / 1.342 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003707/5.148, allocations: 154.1 kB / 1.342 GB, free: 10.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009171/5.157, allocations: 368.9 kB / 1.342 GB, free: 9.969 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003529/5.161, allocations: 0.7086 MB / 1.343 GB, free: 9.516 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002385/5.163, allocations: 253.5 kB / 1.343 GB, free: 9.293 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007726/5.171, allocations: 3.104 MB / 1.346 GB, free: 6.523 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.001e-06/5.171, allocations: 2.156 kB / 1.346 GB, free: 6.523 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0148/5.186, allocations: 2.497 MB / 1.349 GB, free: 4.043 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imc.inertiaRotor.w,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,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (552): * Single equations (assignments): 498 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * 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: 6 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.4778/5.664, allocations: 29.94 MB / 1.378 GB, free: 70.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04149/5.705, allocations: 15.23 MB / 1.393 GB, free: 69.39 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.308e-05/5.705, allocations: 0 / 1.393 GB, free: 69.39 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02532/5.731, allocations: 8.644 MB / 1.401 GB, free: 68.53 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01397/5.745, allocations: 1.481 MB / 1.403 GB, free: 68.51 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09276/5.837, allocations: 29.45 MB / 1.431 GB, free: 64.21 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01935/5.857, allocations: 9.041 MB / 1.44 GB, free: 62.68 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01309/5.87, allocations: 5.343 MB / 1.445 GB, free: 58.13 MB / 490.7 MB Notification: Performance of SimCode: time 1.994e-06/5.87, allocations: 0 / 1.445 GB, free: 58.13 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_DOLCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLFunctions.cpp:508:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp330 = 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_DOLFunctions.cpp:508:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp330 = 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_DOLCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLFMU.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_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.o] Error 1