Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001519/0.001519, allocations: 186 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 86.86 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004131/0.0004131, allocations: 8 kB / 327.1 MB, free: 68 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.3315, allocations: 47.56 MB / 374.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5407/0.8722, allocations: 167.3 MB / 0.5292 GB, free: 63.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003422/0.8726, allocations: 101.6 kB / 0.5293 GB, free: 63.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.491/5.364, allocations: 0.8585 GB / 1.388 GB, free: 32.02 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.814e-06/5.364, allocations: 0 / 1.388 GB, free: 32.02 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.002366/5.366, allocations: 481.9 kB / 1.388 GB, free: 31.97 MB / 0.4948 GB 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.1058/5.472, allocations: 20.73 MB / 1.408 GB, free: 25.59 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/5.472, allocations: 9.688 kB / 1.409 GB, free: 25.59 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01615/5.489, allocations: 3.013 MB / 1.411 GB, free: 25.41 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08658/5.575, allocations: 10.37 MB / 1.422 GB, free: 24.22 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05703/5.632, allocations: 15.87 MB / 1.437 GB, free: 22.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002945/5.635, allocations: 1.554 MB / 1.439 GB, free: 22.36 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01245/5.648, allocations: 2.01 MB / 1.441 GB, free: 22.35 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1309/5.779, allocations: 35.94 MB / 1.476 GB, free: 19.92 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001324/5.78, allocations: 26.22 kB / 1.476 GB, free: 19.91 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009971/5.79, allocations: 0.8607 MB / 1.477 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002167/5.792, allocations: 1.392 MB / 1.478 GB, free: 19.53 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1332/5.925, allocations: 34.24 MB / 1.511 GB, free: 0 / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8062/6.732, allocations: 112.1 MB / 1.621 GB, free: 24 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07847/6.81, allocations: 44.27 MB / 1.664 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1549/6.965, allocations: 49.6 MB / 1.712 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/6.966, allocations: 194 kB / 1.713 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1590): time 2.183e-05/6.966, allocations: 0 / 1.713 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1602): time 0.7428/7.708, allocations: 74.55 MB / 1.785 GB, free: 68.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001972/7.709, allocations: 221.4 kB / 1.786 GB, free: 67.94 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01774/7.726, allocations: 5.984 MB / 1.792 GB, free: 67.52 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.003953/7.73, allocations: 246.5 kB / 1.792 GB, free: 67.49 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006017/7.737, allocations: 6.902 MB / 1.799 GB, free: 63.88 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.008802/7.745, allocations: 5.247 MB / 1.804 GB, free: 60.45 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004175/7.75, allocations: 257.9 kB / 1.804 GB, free: 60.45 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001951/7.752, allocations: 0.9188 MB / 1.805 GB, free: 60.11 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02876/7.78, allocations: 10.39 MB / 1.815 GB, free: 60.07 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03171/7.812, allocations: 12.6 MB / 1.827 GB, free: 58.02 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03385/7.846, allocations: 12.33 MB / 1.839 GB, free: 52.52 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001162/7.846, allocations: 13.62 kB / 1.839 GB, free: 52.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1877) (initialization): time 0.09645/7.943, allocations: 31.46 MB / 1.87 GB, free: 39.39 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.233e-05/7.943, allocations: 24.5 kB / 1.87 GB, free: 39.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001902/7.943, allocations: 54.41 kB / 1.87 GB, free: 39.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04844/7.991, allocations: 14.89 MB / 1.885 GB, free: 32.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01812/8.01, allocations: 2.105 MB / 1.887 GB, free: 31.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07512/8.085, allocations: 36.02 MB / 1.922 GB, free: 14.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0166/8.101, allocations: 0.6291 MB / 1.922 GB, free: 13.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004827/8.106, allocations: 0.5227 MB / 1.923 GB, free: 13.12 MB / 0.5573 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.531/8.637, allocations: 7.949 MB / 1.931 GB, free: 91.16 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006484/8.644, allocations: 1.013 MB / 1.932 GB, free: 91.16 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1093/8.753, allocations: 32.55 MB / 1.964 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006878/8.754, allocations: 386.4 kB / 1.964 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.556e-05/8.754, allocations: 12.69 kB / 1.964 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003328/8.754, allocations: 69.05 kB / 1.964 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.186/8.94, allocations: 60.9 MB / 2.023 GB, free: 80.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002946/8.941, allocations: 7.266 kB / 2.023 GB, free: 80.58 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0152/8.956, allocations: 1.646 MB / 2.025 GB, free: 80.53 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04994/9.006, allocations: 14.84 MB / 2.04 GB, free: 76.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004343/9.01, allocations: 343.7 kB / 2.04 GB, free: 76.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08055/9.091, allocations: 40.32 MB / 2.079 GB, free: 47.74 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/9.091, allocations: 4.031 kB / 2.079 GB, free: 47.73 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1392/9.23, allocations: 48.42 MB / 2.127 GB, free: 5.73 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01449/9.245, allocations: 3.502 MB / 2.13 GB, free: 2.699 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00596/9.251, allocations: 247.5 kB / 2.13 GB, free: 2.461 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01603/9.267, allocations: 0.7548 MB / 2.131 GB, free: 2.312 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.5298/9.797, allocations: 1.444 MB / 2.132 GB, free: 87.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004402/9.801, allocations: 424.4 kB / 2.133 GB, free: 87.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01371/9.815, allocations: 4.594 MB / 2.137 GB, free: 87.68 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.102e-06/9.815, allocations: 1.5 kB / 2.137 GB, free: 87.68 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02313/9.838, allocations: 3.913 MB / 2.141 GB, free: 87.68 MB / 0.5573 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.1473/9.986, allocations: 50.3 MB / 2.19 GB, free: 84.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.07832/10.06, allocations: 26.65 MB / 2.216 GB, free: 83.55 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/10.06, allocations: 3.094 kB / 2.216 GB, free: 83.55 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.04891/10.11, allocations: 15.23 MB / 2.231 GB, free: 77.67 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02199/10.14, allocations: 2.329 MB / 2.233 GB, free: 77.09 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9225/11.06, allocations: 186.3 MB / 2.415 GB, free: 79.6 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03244/11.09, allocations: 13.48 MB / 2.428 GB, free: 78.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0239/11.11, allocations: 7.999 MB / 2.436 GB, free: 78.5 MB / 0.573 GB Notification: Performance of SimCode: time 1.623e-06/11.11, allocations: 0 / 2.436 GB, free: 78.5 MB / 0.573 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_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_3_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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o] Error 1