Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.796/1.796, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004975/0.0004977, allocations: 12 kB / 264.1 MB, free: 13.45 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09108/0.09161, allocations: 44.5 MB / 308.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.49/0.5816, allocations: 147.8 MB / 456.3 MB, free: 7.656 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003289/0.582, allocations: 106.3 kB / 456.5 MB, free: 7.598 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.286/2.868, allocations: 468.3 MB / 0.9031 GB, free: 29.47 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.625e-06/2.868, allocations: 0 / 0.9031 GB, free: 29.47 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001139/2.869, allocations: 326.9 kB / 0.9034 GB, free: 29.45 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.06838/2.937, allocations: 14.41 MB / 0.9175 GB, free: 24.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/2.937, allocations: 10.38 kB / 0.9175 GB, free: 24.93 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009589/2.947, allocations: 2.029 MB / 0.9195 GB, free: 24.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05478/3.002, allocations: 6.757 MB / 0.9261 GB, free: 23.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03657/3.038, allocations: 11.5 MB / 0.9373 GB, free: 22.62 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001647/3.04, allocations: 1.044 MB / 0.9383 GB, free: 22.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00701/3.047, allocations: 1.353 MB / 0.9396 GB, free: 22.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07583/3.123, allocations: 24.11 MB / 0.9632 GB, free: 20.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007225/3.124, allocations: 22.42 kB / 0.9632 GB, free: 20.63 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005733/3.13, allocations: 0.5852 MB / 0.9638 GB, free: 20.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001349/3.131, allocations: 0.9358 MB / 0.9647 GB, free: 19.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06549/3.196, allocations: 22.05 MB / 0.9862 GB, free: 10.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5717/3.768, allocations: 77.66 MB / 1.062 GB, free: 28.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04691/3.815, allocations: 30.76 MB / 1.092 GB, free: 28.97 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08603/3.901, allocations: 32.66 MB / 1.124 GB, free: 23.78 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001334/3.901, allocations: 132.5 kB / 1.124 GB, free: 23.68 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1021): time 1.424e-05/3.901, allocations: 0 / 1.124 GB, free: 23.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=1029): time 0.9241/4.826, allocations: 94.69 MB / 1.217 GB, free: 56.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/4.826, allocations: 167.7 kB / 1.217 GB, free: 56.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01191/4.838, allocations: 4.329 MB / 1.221 GB, free: 56.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002376/4.84, allocations: 164.4 kB / 1.221 GB, free: 56.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004/4.844, allocations: 4.895 MB / 1.226 GB, free: 53.67 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005712/4.85, allocations: 3.374 MB / 1.229 GB, free: 51.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002154/4.852, allocations: 173.6 kB / 1.229 GB, free: 51.48 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001112/4.853, allocations: 0.7077 MB / 1.23 GB, free: 51.15 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01803/4.871, allocations: 6.839 MB / 1.237 GB, free: 51.12 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02055/4.892, allocations: 8.541 MB / 1.245 GB, free: 49.45 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02108/4.913, allocations: 8.115 MB / 1.253 GB, free: 49.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/4.913, allocations: 14.06 kB / 1.253 GB, free: 49.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.05978/4.973, allocations: 20.98 MB / 1.274 GB, free: 45.99 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.363e-05/4.973, allocations: 21.69 kB / 1.274 GB, free: 45.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/4.973, allocations: 44.94 kB / 1.274 GB, free: 45.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02937/5.003, allocations: 8.516 MB / 1.282 GB, free: 43.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01144/5.014, allocations: 1.411 MB / 1.283 GB, free: 43.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04925/5.063, allocations: 28.14 MB / 1.311 GB, free: 26.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01064/5.074, allocations: 426.3 kB / 1.311 GB, free: 26.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002731/5.077, allocations: 379.7 kB / 1.312 GB, free: 26.08 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 197 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (735): * Single equations (assignments): 706 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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: 5 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.01577/5.093, allocations: 5.36 MB / 1.317 GB, free: 23.53 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003086/5.096, allocations: 0.6975 MB / 1.317 GB, free: 23.16 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06113/5.157, allocations: 21.43 MB / 1.338 GB, free: 11.13 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00039/5.157, allocations: 248.1 kB / 1.339 GB, free: 10.92 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.367e-05/5.157, allocations: 12 kB / 1.339 GB, free: 10.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002343/5.158, allocations: 42.42 kB / 1.339 GB, free: 10.91 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.513/5.671, allocations: 41.31 MB / 1.379 GB, free: 67.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001511/5.671, allocations: 6.125 kB / 1.379 GB, free: 67.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009073/5.68, allocations: 0.9923 MB / 1.38 GB, free: 67.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03096/5.711, allocations: 8.604 MB / 1.388 GB, free: 67.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002639/5.714, allocations: 222.6 kB / 1.389 GB, free: 67.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05816/5.772, allocations: 32.51 MB / 1.42 GB, free: 56.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/5.772, allocations: 5.375 kB / 1.42 GB, free: 56.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08417/5.856, allocations: 31.92 MB / 1.452 GB, free: 51.89 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008495/5.865, allocations: 2.372 MB / 1.454 GB, free: 50.94 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004114/5.869, allocations: 157.8 kB / 1.454 GB, free: 50.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0097/5.878, allocations: 399.4 kB / 1.454 GB, free: 50.71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004085/5.883, allocations: 0.7962 MB / 1.455 GB, free: 50.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00235/5.885, allocations: 274.6 kB / 1.455 GB, free: 50.48 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008447/5.893, allocations: 3.307 MB / 1.459 GB, free: 49.27 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.31e-07/5.893, allocations: 0 / 1.459 GB, free: 49.27 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01598/5.909, allocations: 2.652 MB / 1.461 GB, free: 48.99 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (520): * Single equations (assignments): 490 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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: 7 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.08693/5.996, allocations: 33.72 MB / 1.494 GB, free: 32.88 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04929/6.046, allocations: 17.82 MB / 1.512 GB, free: 18.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/6.046, allocations: 4 kB / 1.512 GB, free: 18.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02998/6.076, allocations: 10.34 MB / 1.522 GB, free: 9.879 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01409/6.09, allocations: 1.582 MB / 1.523 GB, free: 8.668 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6767/6.767, allocations: 126.5 MB / 1.647 GB, free: 26.73 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02116/6.788, allocations: 9.232 MB / 1.656 GB, free: 25.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01436/6.802, allocations: 5.244 MB / 1.661 GB, free: 25.69 MB / 0.4948 GB Notification: Performance of SimCode: time 1.062e-06/6.802, allocations: 0 / 1.661 GB, free: 25.69 MB / 0.4948 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_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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_YDFunctions.cpp:417:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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_YDCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFMU.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_YDCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o] Error 1