Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.702/1.702, allocations: 171.2 MB / 187.3 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003446/0.0003446, allocations: 12 kB / 233.8 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08101/0.08138, allocations: 38.76 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3658/0.4472, allocations: 69.64 MB / 342.2 MB, free: 4.32 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.4475, allocations: 79.08 kB / 342.3 MB, free: 4.277 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02155/0.4691, allocations: 5.124 MB / 347.4 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.104e-06/0.4692, allocations: 3.984 kB / 347.4 MB, free: 15.9 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.124e-05/0.4692, allocations: 7.938 kB / 347.4 MB, free: 15.89 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.001015/0.4702, allocations: 0.538 MB / 347.9 MB, free: 15.31 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.4703, allocations: 8.031 kB / 347.9 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.4705, allocations: 35.64 kB / 348 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.4709, allocations: 248.1 kB / 348.2 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.471, allocations: 10.58 kB / 348.2 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.909e-05/0.471, allocations: 15.31 kB / 348.2 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004013/0.4714, allocations: 153.5 kB / 348.4 MB, free: 14.87 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.4715, allocations: 0 / 348.4 MB, free: 14.87 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.4715, allocations: 6.812 kB / 348.4 MB, free: 14.87 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.4715, allocations: 4 kB / 348.4 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003851/0.4719, allocations: 123.7 kB / 348.5 MB, free: 14.78 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.4732, allocations: 0.5842 MB / 349.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004015/0.4736, allocations: 148.5 kB / 349.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.4736, allocations: 0 / 349.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002701/0.4739, allocations: 110.7 kB / 349.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 2.054e-06/0.4739, allocations: 0 / 349.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006306/0.4746, allocations: 208.6 kB / 349.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.4747, allocations: 67.3 kB / 349.6 MB, free: 13.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003958/0.4751, allocations: 254.9 kB / 349.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.818e-05/0.4751, allocations: 33.33 kB / 349.9 MB, free: 13.53 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.4753, allocations: 196.6 kB / 350.1 MB, free: 13.35 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.189e-05/0.4753, allocations: 58.73 kB / 350.2 MB, free: 13.3 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.757e-05/0.4754, allocations: 4 kB / 350.2 MB, free: 13.3 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.4755, allocations: 326.5 kB / 350.5 MB, free: 12.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.4757, allocations: 60.41 kB / 350.5 MB, free: 12.94 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.4759, allocations: 86.8 kB / 350.6 MB, free: 12.87 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.4762, allocations: 93.5 kB / 350.7 MB, free: 12.8 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4762, allocations: 0 / 350.7 MB, free: 12.8 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005629/0.4767, allocations: 231.1 kB / 350.9 MB, free: 12.61 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.121e-05/0.4768, allocations: 40.56 kB / 351 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4768, allocations: 4 kB / 351 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.4769, allocations: 0 / 351 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003399/0.4772, allocations: 43.98 kB / 351 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.4772, allocations: 4 kB / 351 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.4774, allocations: 27.27 kB / 351.1 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.4775, allocations: 11.44 kB / 351.1 MB, free: 12.48 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.0001928/0.4777, allocations: 143.3 kB / 351.2 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-05/0.4778, allocations: 19.72 kB / 351.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005272/0.4783, allocations: 201.3 kB / 351.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.4783, allocations: 8 kB / 351.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4783, allocations: 0 / 351.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.4783, allocations: 3.984 kB / 351.4 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004172/0.4788, allocations: 287.9 kB / 351.7 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.4788, allocations: 4 kB / 351.7 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003472/0.4791, allocations: 43.86 kB / 351.8 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4792, allocations: 0 / 351.8 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.4792, allocations: 6.812 kB / 351.8 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4792, allocations: 0 / 351.8 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4792, allocations: 0 / 351.8 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006772/0.4799, allocations: 277.9 kB / 352 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.48, allocations: 100.8 kB / 352.1 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.4801, allocations: 13.33 kB / 352.2 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.4803, allocations: 4 kB / 352.2 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.4803, allocations: 11.05 kB / 352.2 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.4803, allocations: 4 kB / 352.2 MB, free: 11.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002787/0.4806, allocations: 194.6 kB / 352.4 MB, free: 11.31 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4807, allocations: 4.062 kB / 352.4 MB, free: 11.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004076/0.4811, allocations: 78.03 kB / 352.4 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.0009317/0.482, allocations: 341.7 kB / 352.8 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000504/0.4825, allocations: 209 kB / 353 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4826, allocations: 0 / 353 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001857/0.4827, allocations: 68.05 kB / 353.1 MB, free: 10.74 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.4832, allocations: 38.95 kB / 353.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.4847, allocations: 0.6748 MB / 353.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.4851, allocations: 0.7518 MB / 354.5 MB, free: 9.258 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.4853, allocations: 31.11 kB / 354.5 MB, free: 9.23 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4853, allocations: 0 / 354.5 MB, free: 9.23 MB / 282.7 MB Notification: Performance of Templates: time 0.007926/0.4932, allocations: 3.011 MB / 357.6 MB, free: 6.234 MB / 282.7 MB