Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.814/1.814, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000362/0.000362, allocations: 12 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08241/0.0828, allocations: 44.51 MB / 308.5 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4409/0.5238, allocations: 161.9 MB / 470.4 MB, free: 11.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.5242, allocations: 106.6 kB / 470.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.955/4.479, allocations: 0.863 GB / 1.322 GB, free: 22.57 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.832e-06/4.479, allocations: 0 / 1.322 GB, free: 22.57 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001668/4.481, allocations: 482.1 kB / 1.323 GB, free: 22.5 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.08785/4.569, allocations: 20.72 MB / 1.343 GB, free: 15.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/4.569, allocations: 8.031 kB / 1.343 GB, free: 15.49 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07597/4.645, allocations: 10.39 MB / 1.353 GB, free: 8.793 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.433/5.078, allocations: 15.87 MB / 1.369 GB, free: 24.67 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002938/5.081, allocations: 1.545 MB / 1.37 GB, free: 24.63 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01025/5.091, allocations: 2.01 MB / 1.372 GB, free: 24.63 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1119/5.203, allocations: 35.94 MB / 1.407 GB, free: 22.27 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001067/5.204, allocations: 30 kB / 1.407 GB, free: 22.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009096/5.213, allocations: 0.8674 MB / 1.408 GB, free: 22.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001936/5.215, allocations: 1.385 MB / 1.41 GB, free: 22.22 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08606/5.302, allocations: 32.71 MB / 1.442 GB, free: 17.32 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2813/5.583, allocations: 112.7 MB / 1.552 GB, free: 2.141 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4636/6.047, allocations: 44.26 MB / 1.595 GB, free: 49.74 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1189/6.166, allocations: 49.39 MB / 1.643 GB, free: 46.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001455/6.166, allocations: 180.5 kB / 1.643 GB, free: 46.27 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1590): time 2.254e-05/6.166, allocations: 0 / 1.643 GB, free: 46.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1602): time 0.1799/6.346, allocations: 73.27 MB / 1.715 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/6.346, allocations: 224.1 kB / 1.715 GB, free: 9.824 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01486/6.361, allocations: 5.986 MB / 1.721 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00309/6.364, allocations: 245.7 kB / 1.721 GB, free: 4.539 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005315/6.369, allocations: 6.897 MB / 1.728 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.009203/6.378, allocations: 5.243 MB / 1.733 GB, free: 9.617 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003314/6.382, allocations: 256 kB / 1.733 GB, free: 9.367 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.002064/6.384, allocations: 0.9173 MB / 1.734 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0284/6.412, allocations: 10.5 MB / 1.744 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4372/6.85, allocations: 12.59 MB / 1.757 GB, free: 81.05 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02931/6.879, allocations: 12.33 MB / 1.769 GB, free: 80.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.386e-05/6.879, allocations: 13.31 kB / 1.769 GB, free: 80.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1877) (initialization): time 0.08026/6.959, allocations: 31.47 MB / 1.799 GB, free: 80.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.629e-05/6.959, allocations: 26.44 kB / 1.799 GB, free: 80.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001468/6.96, allocations: 52.28 kB / 1.799 GB, free: 80.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04206/7.002, allocations: 14.89 MB / 1.814 GB, free: 79.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01227/7.014, allocations: 2.1 MB / 1.816 GB, free: 79.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06122/7.075, allocations: 36.02 MB / 1.851 GB, free: 60.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01256/7.088, allocations: 0.6273 MB / 1.852 GB, free: 59.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003926/7.092, allocations: 0.5278 MB / 1.852 GB, free: 59.76 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.02223/7.114, allocations: 7.899 MB / 1.86 GB, free: 56.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005735/7.12, allocations: 1.021 MB / 1.861 GB, free: 56.08 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08308/7.203, allocations: 32.55 MB / 1.893 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005628/7.204, allocations: 382.1 kB / 1.893 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.417e-05/7.204, allocations: 19.14 kB / 1.893 GB, free: 35.54 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002888/7.204, allocations: 65.91 kB / 1.893 GB, free: 35.54 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5971/7.801, allocations: 60.99 MB / 1.953 GB, free: 70.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000187/7.801, allocations: 6.422 kB / 1.953 GB, free: 70.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009793/7.811, allocations: 1.647 MB / 1.955 GB, free: 70.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0435/7.855, allocations: 14.83 MB / 1.969 GB, free: 69.82 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005479/7.86, allocations: 337.5 kB / 1.969 GB, free: 69.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1087/7.969, allocations: 40.32 MB / 2.009 GB, free: 57.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.9e-06/7.969, allocations: 3.781 kB / 2.009 GB, free: 57.92 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1169/8.086, allocations: 48.41 MB / 2.056 GB, free: 44.21 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01168/8.098, allocations: 3.518 MB / 2.059 GB, free: 42.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005498/8.103, allocations: 241.1 kB / 2.06 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01148/8.115, allocations: 0.6342 MB / 2.06 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005065/8.12, allocations: 1.17 MB / 2.061 GB, free: 42.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003601/8.123, allocations: 422.6 kB / 2.062 GB, free: 42.14 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01173/8.135, allocations: 4.594 MB / 2.066 GB, free: 40.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.384e-06/8.135, allocations: 2.562 kB / 2.066 GB, free: 40.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02126/8.157, allocations: 3.914 MB / 2.07 GB, free: 40.05 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.004454/8.161, allocations: 0.8113 MB / 2.071 GB, free: 39.75 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.06003/8.221, allocations: 26.66 MB / 2.097 GB, free: 19.47 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/8.221, allocations: 4.938 kB / 2.097 GB, free: 19.46 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03653/8.258, allocations: 15.22 MB / 2.112 GB, free: 6.258 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01614/8.274, allocations: 2.328 MB / 2.114 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5421/8.816, allocations: 55.02 MB / 2.168 GB, free: 72.28 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03562/8.852, allocations: 13.47 MB / 2.181 GB, free: 70.97 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006883/8.859, allocations: 0.7327 MB / 2.182 GB, free: 70.96 MB / 0.5417 GB Notification: Performance of SimCode: time 2.26e-06/8.859, allocations: 3.844 kB / 2.182 GB, free: 70.96 MB / 0.5417 GB Notification: Performance of Templates: time 5.756/14.61, allocations: 1.774 GB / 3.956 GB, free: 105.6 MB / 0.6042 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=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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'