Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.041/2.041, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.532e-05/3.536e-05, allocations: 7.984 kB / 292.2 MB, free: 8.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.112, allocations: 50.42 MB / 342.7 MB, free: 6.273 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5596/0.6717, allocations: 154 MB / 496.7 MB, free: 4.719 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003249/0.672, allocations: 101.7 kB / 496.8 MB, free: 4.664 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.369/3.041, allocations: 456.8 MB / 0.9313 GB, free: 38.01 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.349e-06/3.042, allocations: 0 / 0.9313 GB, free: 38.01 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.002007/3.044, allocations: 329.2 kB / 0.9316 GB, free: 37.98 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.066/3.11, allocations: 13.19 MB / 0.9445 GB, free: 33.95 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/3.11, allocations: 10.41 kB / 0.9445 GB, free: 33.95 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01219/3.122, allocations: 2.277 MB / 0.9467 GB, free: 33.78 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04924/3.171, allocations: 5.821 MB / 0.9524 GB, free: 33 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04231/3.214, allocations: 11.69 MB / 0.9638 GB, free: 31.64 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001685/3.215, allocations: 1.023 MB / 0.9648 GB, free: 31.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007349/3.223, allocations: 1.355 MB / 0.9661 GB, free: 31.61 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07692/3.3, allocations: 22.01 MB / 0.9876 GB, free: 26.69 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009282/3.301, allocations: 25.61 kB / 0.9877 GB, free: 26.68 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006302/3.307, allocations: 0.583 MB / 0.9882 GB, free: 26.24 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001618/3.309, allocations: 0.9693 MB / 0.9892 GB, free: 26.03 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0623/3.371, allocations: 19 MB / 1.008 GB, free: 13.34 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6481/4.019, allocations: 72.76 MB / 1.079 GB, free: 26.67 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05596/4.075, allocations: 42.07 MB / 1.12 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01326/4.089, allocations: 5.062 MB / 1.125 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05398/4.143, allocations: 12.77 MB / 1.137 GB, free: 22.64 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000156/4.143, allocations: 84.84 kB / 1.137 GB, free: 22.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=502): time 1.319e-05/4.143, allocations: 0 / 1.137 GB, free: 22.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=510): time 0.07371/4.217, allocations: 18.82 MB / 1.156 GB, free: 18.33 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/4.217, allocations: 130 kB / 1.156 GB, free: 18.23 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01486/4.232, allocations: 5.012 MB / 1.161 GB, free: 17.79 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001243/4.233, allocations: 110 kB / 1.161 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004796/4.238, allocations: 5.871 MB / 1.167 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002759/4.241, allocations: 1.74 MB / 1.168 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001777/4.242, allocations: 150.2 kB / 1.168 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001066/4.243, allocations: 0.611 MB / 1.169 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009886/4.253, allocations: 3.511 MB / 1.172 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01222/4.266, allocations: 6.257 MB / 1.179 GB, free: 9.707 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/4.278, allocations: 4.922 MB / 1.183 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001347/4.278, allocations: 27.5 kB / 1.183 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of matching and sorting (n=960) (initialization): time 0.0356/4.314, allocations: 11.23 MB / 1.194 GB, free: 6.434 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/4.314, allocations: 44.94 kB / 1.194 GB, free: 6.434 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001911/4.314, allocations: 90.38 kB / 1.195 GB, free: 6.434 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007827/4.322, allocations: 1.509 MB / 1.196 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0123/4.334, allocations: 1.644 MB / 1.198 GB, free: 5.992 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03877/4.373, allocations: 17.82 MB / 1.215 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01044/4.384, allocations: 429.4 kB / 1.215 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002174/4.386, allocations: 368.4 kB / 1.216 GB, free: 9.98 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 417 * 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 (860): * Single equations (assignments): 850 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 5 {(1,100.0%) 1,(12,52.8%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003987/4.39, allocations: 0.5828 MB / 1.216 GB, free: 9.605 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003069/4.393, allocations: 0.5911 MB / 1.217 GB, free: 9.293 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0332/4.426, allocations: 9.177 MB / 1.226 GB, free: 5.605 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01964/4.446, allocations: 5.758 MB / 1.231 GB, free: 1.898 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.85e-05/4.446, allocations: 20 kB / 1.231 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001634/4.446, allocations: 27.42 kB / 1.232 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5285/4.975, allocations: 21.32 MB / 1.252 GB, free: 91.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.624e-05/4.975, allocations: 6.781 kB / 1.252 GB, free: 91.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007868/4.983, allocations: 0.8508 MB / 1.253 GB, free: 91.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008161/4.991, allocations: 1.533 MB / 1.255 GB, free: 91.36 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001419/4.992, allocations: 127.2 kB / 1.255 GB, free: 91.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03678/5.029, allocations: 21 MB / 1.275 GB, free: 82.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/5.029, allocations: 8.969 kB / 1.275 GB, free: 82.21 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03713/5.066, allocations: 14.29 MB / 1.289 GB, free: 79.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005634/5.072, allocations: 1.358 MB / 1.291 GB, free: 79.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002279/5.074, allocations: 107 kB / 1.291 GB, free: 79.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006597/5.081, allocations: 301 kB / 1.291 GB, free: 79.89 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001632/5.083, allocations: 416.5 kB / 1.291 GB, free: 79.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005673/5.083, allocations: 150 kB / 1.292 GB, free: 79.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009427/5.093, allocations: 3.758 MB / 1.295 GB, free: 79.67 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.61e-07/5.093, allocations: 0 / 1.295 GB, free: 79.67 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0147/5.107, allocations: 2.374 MB / 1.298 GB, free: 79.67 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (439): * Single equations (assignments): 428 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(12,52.1%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03777/5.145, allocations: 16.72 MB / 1.314 GB, free: 75.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0248/5.17, allocations: 9.384 MB / 1.323 GB, free: 74.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/5.17, allocations: 0 / 1.323 GB, free: 74.78 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01487/5.185, allocations: 5.248 MB / 1.328 GB, free: 72.36 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01325/5.198, allocations: 1.491 MB / 1.33 GB, free: 71.97 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0846/5.283, allocations: 24.49 MB / 1.354 GB, free: 62.65 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02111/5.304, allocations: 8.811 MB / 1.362 GB, free: 59.34 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01403/5.318, allocations: 5.206 MB / 1.367 GB, free: 54.49 MB / 0.5261 GB Notification: Performance of SimCode: time 1.643e-06/5.318, allocations: 0 / 1.367 GB, free: 54.49 MB / 0.5261 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_DOLCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLFunctions.cpp:532:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp197 = 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_DOLFunctions.cpp:532:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp197 = 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_DOLCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.o] Error 1