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_Transformer.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_Transformer,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.877/1.877, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 19.98 kB / 264.1 MB, free: 13.44 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.09296, allocations: 44.5 MB / 308.6 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5165/0.6095, allocations: 161.9 MB / 470.5 MB, free: 9.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003832/0.61, allocations: 110.3 kB / 470.6 MB, free: 9.598 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.196/4.806, allocations: 0.8631 GB / 1.323 GB, free: 22.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.527e-06/4.806, allocations: 0 / 1.323 GB, free: 22.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001722/4.808, allocations: 479.6 kB / 1.323 GB, free: 22.65 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: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.0979/4.906, allocations: 20.72 MB / 1.343 GB, free: 14.9 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/4.906, allocations: 11.22 kB / 1.343 GB, free: 14.89 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01446/4.92, allocations: 3.006 MB / 1.346 GB, free: 13.66 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08517/5.005, allocations: 10.38 MB / 1.356 GB, free: 6.172 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4976/5.503, allocations: 15.87 MB / 1.372 GB, free: 23.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003066/5.506, allocations: 1.547 MB / 1.373 GB, free: 23.73 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0112/5.517, allocations: 2.015 MB / 1.375 GB, free: 23.73 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1164/5.634, allocations: 35.94 MB / 1.41 GB, free: 21.36 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001165/5.635, allocations: 34.03 kB / 1.411 GB, free: 21.36 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009773/5.645, allocations: 0.8614 MB / 1.411 GB, free: 21.36 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002585/5.648, allocations: 1.394 MB / 1.413 GB, free: 21.32 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09667/5.744, allocations: 32.7 MB / 1.445 GB, free: 16.14 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3203/6.065, allocations: 113.5 MB / 1.556 GB, free: 0 / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5293/6.594, allocations: 44.25 MB / 1.599 GB, free: 48.76 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1553/6.749, allocations: 49.4 MB / 1.647 GB, free: 45.98 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/6.75, allocations: 180.2 kB / 1.647 GB, free: 45.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1590): time 2.091e-05/6.75, allocations: 0 / 1.647 GB, free: 45.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1602): time 0.2474/6.997, allocations: 73.28 MB / 1.719 GB, free: 8.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002085/6.997, allocations: 216.1 kB / 1.719 GB, free: 7.93 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02171/7.019, allocations: 5.979 MB / 1.725 GB, free: 2.895 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.004304/7.023, allocations: 245.7 kB / 1.725 GB, free: 2.648 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.009036/7.032, allocations: 6.906 MB / 1.732 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.01356/7.046, allocations: 5.243 MB / 1.737 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004834/7.051, allocations: 256 kB / 1.737 GB, free: 7.469 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.002743/7.054, allocations: 0.913 MB / 1.738 GB, free: 6.719 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0651/7.119, allocations: 11.22 MB / 1.749 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.55/7.669, allocations: 12.59 MB / 1.761 GB, free: 79.65 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03287/7.702, allocations: 12.33 MB / 1.773 GB, free: 79.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/7.702, allocations: 13.72 kB / 1.773 GB, free: 79.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1877) (initialization): time 0.09106/7.793, allocations: 31.47 MB / 1.804 GB, free: 78.94 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.449e-05/7.793, allocations: 30.38 kB / 1.804 GB, free: 78.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001801/7.793, allocations: 50.56 kB / 1.804 GB, free: 78.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04784/7.841, allocations: 14.89 MB / 1.819 GB, free: 78.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01718/7.859, allocations: 2.104 MB / 1.821 GB, free: 78.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06948/7.928, allocations: 36.01 MB / 1.856 GB, free: 59.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01566/7.944, allocations: 0.6317 MB / 1.856 GB, free: 59.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004544/7.948, allocations: 0.5261 MB / 1.857 GB, free: 59.43 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 228 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1070): * Single equations (assignments): 1030 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of prepare postOptimizeDAE: time 0.02605/7.974, allocations: 7.904 MB / 1.865 GB, free: 55.76 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006248/7.981, allocations: 1.02 MB / 1.866 GB, free: 55.75 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09853/8.079, allocations: 32.54 MB / 1.897 GB, free: 36.01 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006116/8.08, allocations: 385.9 kB / 1.898 GB, free: 35.67 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.234e-05/8.08, allocations: 16 kB / 1.898 GB, free: 35.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003742/8.08, allocations: 67.31 kB / 1.898 GB, free: 35.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6416/8.722, allocations: 60.96 MB / 1.957 GB, free: 68.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000254/8.722, allocations: 6.656 kB / 1.957 GB, free: 68.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01461/8.737, allocations: 1.646 MB / 1.959 GB, free: 68.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05101/8.788, allocations: 14.84 MB / 1.974 GB, free: 68.38 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004013/8.792, allocations: 341.3 kB / 1.974 GB, free: 68.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07622/8.868, allocations: 40.32 MB / 2.013 GB, free: 56.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/8.868, allocations: 3.656 kB / 2.013 GB, free: 56.47 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1316/9, allocations: 48.43 MB / 2.061 GB, free: 43.83 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01271/9.013, allocations: 3.506 MB / 2.064 GB, free: 42.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006124/9.019, allocations: 253.5 kB / 2.064 GB, free: 42.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01481/9.034, allocations: 0.6309 MB / 2.065 GB, free: 42.11 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005991/9.04, allocations: 1.169 MB / 2.066 GB, free: 41.87 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004005/9.044, allocations: 431.2 kB / 2.066 GB, free: 41.76 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01224/9.056, allocations: 4.591 MB / 2.071 GB, free: 40.09 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.11e-07/9.056, allocations: 0 / 2.071 GB, free: 40.09 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02236/9.079, allocations: 3.911 MB / 2.075 GB, free: 39.68 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (834): * Single equations (assignments): 793 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * 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%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of Backend phase and start with SimCode phase: time 0.133/9.212, allocations: 50.32 MB / 2.124 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.5182/9.73, allocations: 26.79 MB / 2.15 GB, free: 94.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/9.73, allocations: 6.719 kB / 2.15 GB, free: 94.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.04638/9.776, allocations: 15.24 MB / 2.165 GB, free: 92.95 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02117/9.798, allocations: 2.328 MB / 2.167 GB, free: 92.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9358/10.73, allocations: 187.1 MB / 2.35 GB, free: 92.91 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03637/10.77, allocations: 13.48 MB / 2.363 GB, free: 91.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02411/10.79, allocations: 7.993 MB / 2.371 GB, free: 91.8 MB / 0.5417 GB Notification: Performance of SimCode: time 9.71e-07/10.79, allocations: 3.344 kB / 2.371 GB, free: 91.8 MB / 0.5417 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_TransformerCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFunctions.cpp:587:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp376 = 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_TransformerFunctions.cpp:587:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp376 = 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_TransformerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFMU.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_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o] Error 1