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.813/1.813, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.059e-05/3.103e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09123, allocations: 44.51 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4883/0.5796, allocations: 147.2 MB / 447.2 MB, free: 13.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003628/0.58, allocations: 97.5 kB / 447.3 MB, free: 13.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.317/2.897, allocations: 458.7 MB / 0.8847 GB, free: 33.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.445e-06/2.897, allocations: 0 / 0.8847 GB, free: 33.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001277/2.899, allocations: 332.2 kB / 0.885 GB, free: 33.57 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.06697/2.966, allocations: 13.28 MB / 0.898 GB, free: 29.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/2.966, allocations: 9.75 kB / 0.898 GB, free: 29.54 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01172/2.977, allocations: 2.302 MB / 0.9002 GB, free: 29.37 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05417/3.032, allocations: 6.47 MB / 0.9066 GB, free: 28.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04091/3.072, allocations: 11.51 MB / 0.9178 GB, free: 27.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00185/3.074, allocations: 1.053 MB / 0.9188 GB, free: 27.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007283/3.082, allocations: 1.368 MB / 0.9202 GB, free: 27.17 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07801/3.16, allocations: 23.38 MB / 0.943 GB, free: 25.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008685/3.161, allocations: 16.47 kB / 0.943 GB, free: 25.46 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006362/3.167, allocations: 0.5917 MB / 0.9436 GB, free: 25.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001528/3.169, allocations: 0.9318 MB / 0.9445 GB, free: 25.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06341/3.232, allocations: 20.99 MB / 0.965 GB, free: 19.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.584/3.816, allocations: 75.14 MB / 1.038 GB, free: 28.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04405/3.86, allocations: 28.26 MB / 1.066 GB, free: 28.91 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02218/3.882, allocations: 9.36 MB / 1.075 GB, free: 28.8 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08018/3.963, allocations: 29.54 MB / 1.104 GB, free: 27.42 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/3.963, allocations: 122.5 kB / 1.104 GB, free: 27.37 MB / 474.7 MB Notification: Performance of pre-optimization done (n=934): time 1.439e-05/3.963, allocations: 2.656 kB / 1.104 GB, free: 27.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=942): time 0.09242/4.055, allocations: 33.14 MB / 1.136 GB, free: 14.58 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/4.055, allocations: 161.6 kB / 1.137 GB, free: 14.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/4.066, allocations: 4.101 MB / 1.141 GB, free: 12.92 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00211/4.068, allocations: 154.4 kB / 1.141 GB, free: 12.79 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003848/4.072, allocations: 5.06 MB / 1.146 GB, free: 8.875 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005786/4.078, allocations: 3.102 MB / 1.149 GB, free: 6.461 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00227/4.08, allocations: 163.8 kB / 1.149 GB, free: 6.332 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001146/4.081, allocations: 0.6928 MB / 1.15 GB, free: 5.852 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01638/4.098, allocations: 5.962 MB / 1.155 GB, free: 3.359 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01896/4.117, allocations: 7.846 MB / 1.163 GB, free: 14.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01986/4.137, allocations: 7.267 MB / 1.17 GB, free: 10.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.026e-05/4.137, allocations: 16 kB / 1.17 GB, free: 10.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.4509/4.588, allocations: 18.63 MB / 1.188 GB, free: 70.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.524e-05/4.588, allocations: 28.22 kB / 1.188 GB, free: 70.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/4.588, allocations: 54.09 kB / 1.188 GB, free: 70.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02153/4.61, allocations: 5.867 MB / 1.194 GB, free: 70.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01232/4.622, allocations: 1.517 MB / 1.196 GB, free: 70.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0336/4.656, allocations: 19.98 MB / 1.215 GB, free: 63.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01041/4.666, allocations: 429.2 kB / 1.216 GB, free: 63.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002706/4.669, allocations: 375 kB / 1.216 GB, free: 63.02 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.004518/4.673, allocations: 0.567 MB / 1.216 GB, free: 62.91 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003477/4.677, allocations: 0.6582 MB / 1.217 GB, free: 62.91 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05242/4.729, allocations: 18.07 MB / 1.235 GB, free: 62.28 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03817/4.767, allocations: 14.29 MB / 1.249 GB, free: 62 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.452e-05/4.768, allocations: 11.81 kB / 1.249 GB, free: 62 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000208/4.768, allocations: 41.58 kB / 1.249 GB, free: 62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09589/4.864, allocations: 35.33 MB / 1.283 GB, free: 50.28 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001309/4.864, allocations: 2.938 kB / 1.283 GB, free: 50.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009407/4.873, allocations: 1.042 MB / 1.284 GB, free: 50.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02008/4.893, allocations: 5.953 MB / 1.29 GB, free: 48.41 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002327/4.896, allocations: 201 kB / 1.29 GB, free: 48.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03816/4.934, allocations: 24.2 MB / 1.314 GB, free: 31.94 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/4.934, allocations: 8.844 kB / 1.314 GB, free: 31.94 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06388/4.998, allocations: 27.02 MB / 1.34 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007824/5.006, allocations: 2.1 MB / 1.342 GB, free: 10.49 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003076/5.009, allocations: 150.9 kB / 1.343 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008871/5.018, allocations: 369.6 kB / 1.343 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00345/5.021, allocations: 0.7093 MB / 1.344 GB, free: 9.625 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001674/5.023, allocations: 250.9 kB / 1.344 GB, free: 9.402 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007344/5.03, allocations: 3.104 MB / 1.347 GB, free: 6.633 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.092e-06/5.03, allocations: 2.75 kB / 1.347 GB, free: 6.633 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01401/5.044, allocations: 2.499 MB / 1.349 GB, free: 4.152 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.4623/5.507, allocations: 29.9 MB / 1.378 GB, free: 70.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04119/5.548, allocations: 15.4 MB / 1.394 GB, free: 69.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/5.548, allocations: 2.031 kB / 1.394 GB, free: 69.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02479/5.573, allocations: 8.718 MB / 1.402 GB, free: 68.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01419/5.587, allocations: 1.474 MB / 1.403 GB, free: 68.68 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.102/5.689, allocations: 29.5 MB / 1.432 GB, free: 64.37 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03877/5.728, allocations: 9.037 MB / 1.441 GB, free: 62.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02502/5.753, allocations: 5.338 MB / 1.446 GB, free: 58.15 MB / 490.7 MB Notification: Performance of SimCode: time 1.833e-06/5.753, allocations: 0 / 1.446 GB, free: 58.15 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