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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003599, allocations: 12 kB / 264.5 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.09672, allocations: 44.5 MB / 309 MB, free: 1.027 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5399/0.6366, allocations: 161.9 MB / 470.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003692/0.6371, allocations: 111.6 kB / 471 MB, free: 10.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.336/4.973, allocations: 0.863 GB / 1.323 GB, free: 22.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.745e-06/4.973, allocations: 0 / 1.323 GB, free: 22.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001943/4.975, allocations: 479.5 kB / 1.323 GB, free: 22.66 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.09926/5.075, allocations: 20.72 MB / 1.344 GB, free: 15.35 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/5.075, allocations: 8.031 kB / 1.344 GB, free: 15.34 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08456/5.159, allocations: 10.38 MB / 1.354 GB, free: 8.648 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.8562/6.015, allocations: 15.88 MB / 1.369 GB, free: 24.85 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003113/6.019, allocations: 1.546 MB / 1.371 GB, free: 24.8 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01088/6.03, allocations: 2.014 MB / 1.373 GB, free: 24.8 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1244/6.154, allocations: 36.1 MB / 1.408 GB, free: 22.44 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00123/6.155, allocations: 28.78 kB / 1.408 GB, free: 22.44 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009477/6.165, allocations: 0.8667 MB / 1.409 GB, free: 22.44 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002246/6.167, allocations: 1.388 MB / 1.41 GB, free: 22.39 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1009/6.268, allocations: 32.71 MB / 1.442 GB, free: 17.34 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3187/6.587, allocations: 112.7 MB / 1.552 GB, free: 1.734 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5206/7.107, allocations: 44.25 MB / 1.596 GB, free: 49.53 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1415/7.249, allocations: 49.4 MB / 1.644 GB, free: 45.99 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/7.249, allocations: 177.9 kB / 1.644 GB, free: 45.85 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1590): time 2.215e-05/7.249, allocations: 0 / 1.644 GB, free: 45.85 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1602): time 0.1996/7.449, allocations: 73.27 MB / 1.715 GB, free: 9.738 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/7.449, allocations: 220.1 kB / 1.716 GB, free: 9.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01499/7.464, allocations: 6.72 MB / 1.722 GB, free: 3.891 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003493/7.468, allocations: 245.7 kB / 1.722 GB, free: 3.645 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005869/7.473, allocations: 6.899 MB / 1.729 GB, free: 13.46 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.01014/7.484, allocations: 5.245 MB / 1.734 GB, free: 8.719 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00382/7.488, allocations: 260 kB / 1.735 GB, free: 8.465 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001869/7.489, allocations: 0.9099 MB / 1.735 GB, free: 7.715 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03795/7.527, allocations: 10.85 MB / 1.746 GB, free: 0 / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4835/8.011, allocations: 12.64 MB / 1.758 GB, free: 80.73 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03392/8.045, allocations: 12.33 MB / 1.77 GB, free: 80.58 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001192/8.045, allocations: 13.31 kB / 1.77 GB, free: 80.58 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1877) (initialization): time 0.0929/8.138, allocations: 31.46 MB / 1.801 GB, free: 80.02 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 9.619e-05/8.138, allocations: 29.94 kB / 1.801 GB, free: 80.02 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001918/8.138, allocations: 48.31 kB / 1.801 GB, free: 80.02 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04953/8.188, allocations: 14.89 MB / 1.816 GB, free: 79.48 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01761/8.206, allocations: 2.102 MB / 1.818 GB, free: 79.48 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07147/8.277, allocations: 36.02 MB / 1.853 GB, free: 59.73 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01611/8.293, allocations: 0.6239 MB / 1.854 GB, free: 59.53 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004487/8.298, allocations: 0.53 MB / 1.854 GB, free: 59.41 MB / 0.5262 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.02492/8.323, allocations: 7.903 MB / 1.862 GB, free: 55.74 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005275/8.328, allocations: 1.017 MB / 1.863 GB, free: 55.73 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09288/8.421, allocations: 32.55 MB / 1.895 GB, free: 35.88 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005993/8.422, allocations: 384.4 kB / 1.895 GB, free: 35.55 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-05/8.422, allocations: 12 kB / 1.895 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003228/8.422, allocations: 68.16 kB / 1.895 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6433/9.066, allocations: 60.99 MB / 1.955 GB, free: 70.09 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002706/9.066, allocations: 2.812 kB / 1.955 GB, free: 70.09 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01526/9.081, allocations: 1.653 MB / 1.956 GB, free: 70.09 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0499/9.131, allocations: 14.82 MB / 1.971 GB, free: 69.55 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003735/9.135, allocations: 347.2 kB / 1.971 GB, free: 69.55 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07466/9.21, allocations: 40.32 MB / 2.01 GB, free: 57.63 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/9.21, allocations: 6.984 kB / 2.01 GB, free: 57.63 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1304/9.34, allocations: 47.86 MB / 2.057 GB, free: 44.48 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01292/9.353, allocations: 3.512 MB / 2.061 GB, free: 43.11 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006341/9.359, allocations: 244.2 kB / 2.061 GB, free: 42.93 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01458/9.374, allocations: 0.6337 MB / 2.062 GB, free: 42.76 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005702/9.38, allocations: 1.171 MB / 2.063 GB, free: 42.52 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003774/9.384, allocations: 424 kB / 2.063 GB, free: 42.41 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01181/9.395, allocations: 4.593 MB / 2.068 GB, free: 40.74 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7.31e-07/9.395, allocations: 2.844 kB / 2.068 GB, free: 40.74 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0219/9.417, allocations: 3.916 MB / 2.071 GB, free: 40.33 MB / 0.5262 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.004958/9.422, allocations: 0.7975 MB / 2.072 GB, free: 40.03 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.07179/9.494, allocations: 26.65 MB / 2.098 GB, free: 20.17 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/9.494, allocations: 6.969 kB / 2.098 GB, free: 20.16 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.04377/9.538, allocations: 15.23 MB / 2.113 GB, free: 6.961 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01908/9.557, allocations: 2.329 MB / 2.115 GB, free: 5.152 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5533/10.11, allocations: 54.25 MB / 2.168 GB, free: 69.26 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02904/10.14, allocations: 13.48 MB / 2.181 GB, free: 67.95 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005984/10.15, allocations: 0.7235 MB / 2.182 GB, free: 67.95 MB / 0.5418 GB Notification: Performance of SimCode: time 8.91e-07/10.15, allocations: 2.938 kB / 2.182 GB, free: 67.95 MB / 0.5418 GB Notification: Performance of Templates: time 5.926/16.07, allocations: 1.774 GB / 3.956 GB, free: 161.4 MB / 0.6199 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -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\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.cpp:587:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp376 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerFunctions.cpp:587:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp376 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.o] Error 1\n'