Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadModel(Modelica): time 1.723/1.723, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006015/0.0006018, allocations: 8 kB / 233.2 MB, free: 3.023 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1114, allocations: 38.78 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3143/0.4258, allocations: 69.65 MB / 341.7 MB, free: 4.297 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.426, allocations: 71.7 kB / 341.7 MB, free: 4.258 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02108/0.4471, allocations: 5.125 MB / 346.9 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.155e-06/0.4472, allocations: 3.938 kB / 346.9 MB, free: 15.88 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.4472, allocations: 4 kB / 346.9 MB, free: 15.88 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0009423/0.4481, allocations: 0.5456 MB / 347.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.4482, allocations: 11.97 kB / 347.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/0.4484, allocations: 31.7 kB / 347.4 MB, free: 15.24 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.4488, allocations: 231.6 kB / 347.7 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.4489, allocations: 14.14 kB / 347.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.535e-05/0.4489, allocations: 21.55 kB / 347.7 MB, free: 14.96 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.4493, allocations: 147.5 kB / 347.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.4494, allocations: 0 / 347.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.4494, allocations: 14.56 kB / 347.9 MB, free: 14.85 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.893e-06/0.4494, allocations: 7.938 kB / 347.9 MB, free: 14.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.4498, allocations: 115.2 kB / 348 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.451, allocations: 0.5855 MB / 348.6 MB, free: 14.22 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003769/0.4514, allocations: 152.2 kB / 348.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.4514, allocations: 4 kB / 348.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002518/0.4517, allocations: 104.7 kB / 348.8 MB, free: 14 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 3.655e-06/0.4517, allocations: 4 kB / 348.8 MB, free: 14 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005777/0.4523, allocations: 210.9 kB / 349 MB, free: 13.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.4524, allocations: 59.31 kB / 349.1 MB, free: 13.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003518/0.4527, allocations: 233.3 kB / 349.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.4528, allocations: 29.7 kB / 349.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.4529, allocations: 202.1 kB / 349.6 MB, free: 13.35 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.4531, allocations: 61.34 kB / 349.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-05/0.4531, allocations: 3.562 kB / 349.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.4534, allocations: 325.9 kB / 349.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.4537, allocations: 54.17 kB / 350 MB, free: 12.94 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.454, allocations: 84.78 kB / 350.1 MB, free: 12.87 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.4543, allocations: 90.81 kB / 350.2 MB, free: 12.8 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.4544, allocations: 0 / 350.2 MB, free: 12.8 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008636/0.4553, allocations: 237.8 kB / 350.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.668e-05/0.4554, allocations: 29.7 kB / 350.4 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.4554, allocations: 8.062 kB / 350.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.4554, allocations: 7.922 kB / 350.4 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.4559, allocations: 39.48 kB / 350.5 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.456, allocations: 7.984 kB / 350.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003446/0.4564, allocations: 23.53 kB / 350.5 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.4564, allocations: 8 kB / 350.5 MB, free: 12.49 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003543/0.4568, allocations: 147.8 kB / 350.7 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.4569, allocations: 23.72 kB / 350.7 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000841/0.4578, allocations: 198 kB / 350.9 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.4578, allocations: 4 kB / 350.9 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.4579, allocations: 3.938 kB / 350.9 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.661e-06/0.4579, allocations: 0 / 350.9 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006311/0.4585, allocations: 294.1 kB / 351.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.45e-06/0.4586, allocations: 0 / 351.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004161/0.459, allocations: 31.98 kB / 351.2 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.51e-05/0.459, allocations: 7.953 kB / 351.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.4591, allocations: 7.562 kB / 351.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.324e-06/0.4591, allocations: 4 kB / 351.2 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.893e-06/0.4591, allocations: 3.984 kB / 351.2 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009508/0.4601, allocations: 283.2 kB / 351.5 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.4603, allocations: 104.4 kB / 351.6 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.439e-05/0.4604, allocations: 11.64 kB / 351.6 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.4606, allocations: 7.984 kB / 351.6 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.432e-05/0.4607, allocations: 11.8 kB / 351.6 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-05/0.4608, allocations: 8 kB / 351.6 MB, free: 11.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004627/0.4613, allocations: 193.9 kB / 351.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.067e-06/0.4613, allocations: 0 / 351.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007437/0.4621, allocations: 79.16 kB / 351.9 MB, free: 11.23 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 2 ($whenCondition1,lossTable.nextTimeEvent) * Number of discrete states: 1 (lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001646/0.4637, allocations: 338.2 kB / 352.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007559/0.4645, allocations: 207.6 kB / 352.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.882e-06/0.4646, allocations: 4.125 kB / 352.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002857/0.4649, allocations: 68.98 kB / 352.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006152/0.4655, allocations: 37.02 kB / 352.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.4677, allocations: 0.6716 MB / 353.2 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006526/0.4684, allocations: 0.7513 MB / 354 MB, free: 9.266 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.4686, allocations: 23.44 kB / 354 MB, free: 9.242 MB / 282.7 MB Notification: Performance of SimCode: time 2.113e-06/0.4686, allocations: 4 kB / 354 MB, free: 9.238 MB / 282.7 MB Notification: Performance of Templates: time 0.01193/0.4806, allocations: 3.002 MB / 357 MB, free: 6.254 MB / 282.7 MB