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.861/1.861, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003609, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08162/0.08201, allocations: 44.51 MB / 308.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.06628/0.1483, allocations: 41.04 MB / 349.4 MB, free: 7.836 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03281/0.1812, allocations: 12.49 MB / 361.9 MB, free: 11.31 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01042/0.1917, allocations: 302.9 kB / 362.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01041/0.2021, allocations: 2.67 MB / 364.9 MB, free: 8.332 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02039/0.2226, allocations: 4.686 MB / 369.6 MB, free: 3.633 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01043/0.233, allocations: 2.141 MB / 371.7 MB, free: 1.488 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.2542/0.4873, allocations: 18.97 MB / 390.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.081/0.5683, allocations: 36.17 MB / 426.9 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01653/0.5849, allocations: 8.389 MB / 435.2 MB, free: 7.691 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01751/0.6024, allocations: 9.626 MB / 444.9 MB, free: 2.359 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005919/0.6084, allocations: 1.414 MB / 446.3 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009664/0.6181, allocations: 1.767 MB / 448.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007387/0.6256, allocations: 4.466 MB / 452.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009535/0.6351, allocations: 4.628 MB / 457.1 MB, free: 9.289 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.05902/0.6942, allocations: 41.01 MB / 498.2 MB, free: 1.062 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.6943, allocations: 0 / 498.2 MB, free: 1.062 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.923e-06/0.6943, allocations: 0 / 498.2 MB, free: 1.062 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008384/0.6951, allocations: 0 / 498.2 MB, free: 1.062 MB / 378.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.07951/0.7747, allocations: 23.15 MB / 0.5091 GB, free: 9.996 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.7747, allocations: 12.02 kB / 0.5091 GB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5844/1.359, allocations: 14.87 MB / 0.5236 GB, free: 95.43 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03317/1.392, allocations: 13.13 MB / 0.5364 GB, free: 89.46 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001827/1.394, allocations: 1.59 MB / 0.538 GB, free: 88.75 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006858/1.401, allocations: 2.08 MB / 0.54 GB, free: 88.06 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09069/1.492, allocations: 35.02 MB / 0.5742 GB, free: 66.93 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009079/1.493, allocations: 33.12 kB / 0.5743 GB, free: 66.89 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005649/1.498, allocations: 0.8658 MB / 0.5751 GB, free: 66.05 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001202/1.5, allocations: 1.186 MB / 0.5763 GB, free: 64.86 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07744/1.577, allocations: 32.86 MB / 0.6083 GB, free: 31.98 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7725/2.35, allocations: 109.3 MB / 0.715 GB, free: 97.19 MB / 474.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05313/2.403, allocations: 55.79 MB / 0.7695 GB, free: 58.01 MB / 474.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06477/2.468, allocations: 26.36 MB / 0.7953 GB, free: 53.05 MB / 474.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001024/2.468, allocations: 137.5 kB / 0.7954 GB, free: 52.94 MB / 474.9 MB Notification: Performance of pre-optimization done (n=906): time 1.576e-05/2.468, allocations: 0 / 0.7954 GB, free: 52.94 MB / 474.9 MB Notification: Performance of matching and sorting (n=918): time 0.09789/2.566, allocations: 39.86 MB / 0.8343 GB, free: 32.56 MB / 474.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/2.566, allocations: 172.5 kB / 0.8345 GB, free: 32.46 MB / 474.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01878/2.585, allocations: 8.399 MB / 0.8427 GB, free: 28.03 MB / 474.9 MB Notification: Performance of collectPreVariables (initialization): time 0.001494/2.586, allocations: 173 kB / 0.8428 GB, free: 27.88 MB / 474.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.00534/2.592, allocations: 8.364 MB / 0.851 GB, free: 20.51 MB / 474.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.003607/2.595, allocations: 3.096 MB / 0.854 GB, free: 17.84 MB / 474.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001665/2.597, allocations: 239.6 kB / 0.8543 GB, free: 17.65 MB / 474.9 MB Notification: Performance of setup shared object (initialization): time 0.001012/2.598, allocations: 0.7967 MB / 0.855 GB, free: 16.98 MB / 474.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01393/2.612, allocations: 6.328 MB / 0.8612 GB, free: 11.77 MB / 474.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01616/2.628, allocations: 10.28 MB / 0.8713 GB, free: 15.74 MB / 490.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02043/2.649, allocations: 8.467 MB / 0.8795 GB, free: 7.25 MB / 490.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001432/2.649, allocations: 36 kB / 0.8796 GB, free: 7.215 MB / 490.9 MB Notification: Performance of matching and sorting (n=1533) (initialization): time 0.3792/3.028, allocations: 20.22 MB / 0.8993 GB, free: 137.2 MB / 490.9 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/3.028, allocations: 58.66 kB / 0.8994 GB, free: 137.2 MB / 490.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002293/3.028, allocations: 122.1 kB / 0.8995 GB, free: 137.2 MB / 490.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01977/3.048, allocations: 4.287 MB / 0.9037 GB, free: 136.2 MB / 490.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01356/3.062, allocations: 2.512 MB / 0.9061 GB, free: 136.1 MB / 490.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08017/3.142, allocations: 39.38 MB / 0.9446 GB, free: 113.9 MB / 490.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01163/3.154, allocations: 0.6261 MB / 0.9452 GB, free: 113.7 MB / 490.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002741/3.157, allocations: 0.5335 MB / 0.9457 GB, free: 113.6 MB / 490.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (1279): * Single equations (assignments): 1272 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(28,26.7%) 176} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01867/3.175, allocations: 7.993 MB / 0.9535 GB, free: 109.8 MB / 490.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003629/3.179, allocations: 0.9167 MB / 0.9544 GB, free: 109.8 MB / 490.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04551/3.225, allocations: 17.2 MB / 0.9712 GB, free: 102.1 MB / 490.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.501e-05/3.225, allocations: 92 kB / 0.9713 GB, free: 102 MB / 490.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001142/3.225, allocations: 40 kB / 0.9713 GB, free: 101.9 MB / 490.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002189/3.225, allocations: 55.66 kB / 0.9714 GB, free: 101.9 MB / 490.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08945/3.314, allocations: 36.26 MB / 1.007 GB, free: 65.93 MB / 490.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001214/3.315, allocations: 8 kB / 1.007 GB, free: 65.92 MB / 490.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008331/3.323, allocations: 1.449 MB / 1.008 GB, free: 64.47 MB / 490.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01801/3.341, allocations: 4.273 MB / 1.012 GB, free: 60.18 MB / 490.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001793/3.343, allocations: 207.9 kB / 1.013 GB, free: 59.98 MB / 490.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07038/3.413, allocations: 41.14 MB / 1.053 GB, free: 18.29 MB / 490.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.982e-06/3.413, allocations: 11.94 kB / 1.053 GB, free: 18.28 MB / 490.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3529/3.766, allocations: 24.98 MB / 1.077 GB, free: 127.1 MB / 490.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007623/3.774, allocations: 2.287 MB / 1.079 GB, free: 126.4 MB / 490.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003709/3.778, allocations: 182.3 kB / 1.08 GB, free: 126.3 MB / 490.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008295/3.786, allocations: 0.5019 MB / 1.08 GB, free: 126.2 MB / 490.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002813/3.789, allocations: 0.7145 MB / 1.081 GB, free: 126.1 MB / 490.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001795/3.791, allocations: 259 kB / 1.081 GB, free: 126 MB / 490.9 MB Notification: Performance of sorting global known variables: time 0.01364/3.804, allocations: 5.677 MB / 1.087 GB, free: 123.9 MB / 490.9 MB Notification: Performance of sort global known variables: time 1.35e-06/3.804, allocations: 0 / 1.087 GB, free: 123.9 MB / 490.9 MB Notification: Performance of remove unused functions: time 0.01871/3.823, allocations: 3.841 MB / 1.09 GB, free: 123.5 MB / 490.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,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,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (715): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(28,25.9%) 176,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002367/3.826, allocations: 445.6 kB / 1.091 GB, free: 123.3 MB / 490.9 MB Notification: Performance of simCode: created initialization part: time 0.03805/3.864, allocations: 17.38 MB / 1.108 GB, free: 116.2 MB / 490.9 MB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/3.864, allocations: 7.125 kB / 1.108 GB, free: 116.2 MB / 490.9 MB Notification: Performance of simCode: created simulation system equations: time 0.02205/3.886, allocations: 9.879 MB / 1.117 GB, free: 111.7 MB / 490.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01325/3.899, allocations: 2.312 MB / 1.12 GB, free: 111 MB / 490.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09292/3.992, allocations: 45.5 MB / 1.164 GB, free: 77.77 MB / 490.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02577/4.018, allocations: 13.23 MB / 1.177 GB, free: 66.8 MB / 490.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005177/4.023, allocations: 0.761 MB / 1.178 GB, free: 66.04 MB / 490.9 MB Notification: Performance of SimCode: time 1.96e-06/4.023, allocations: 4 kB / 1.178 GB, free: 66.04 MB / 490.9 MB Notification: Performance of Templates: time 3.05/7.073, allocations: 1.066 GB / 2.244 GB, free: 117 MB / 0.5107 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@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:177:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp219 = 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:177:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp219 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_TransformerCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.cpp:9219:28: error: use of undeclared identifier \'tmp188\'\n _transformerData_P_C1_ = tmp188;\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.cpp:9220:28: error: use of undeclared identifier \'tmp189\'\n _transformerData_P_C2_ = tmp189;\n ^\n4 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'