Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.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.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadModel(Modelica): time 2.188/2.188, allocations: 194.9 MB / 211.7 MB, free: 2.875 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003759, allocations: 8 kB / 264.5 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1042, allocations: 44.49 MB / 309 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4683/0.5725, allocations: 74.51 MB / 383.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/0.5729, allocations: 81.83 kB / 383.6 MB, free: 15.41 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2331:7-2332:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableValueNoDer. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.0225/0.5955, allocations: 5.23 MB / 388.9 MB, free: 14.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5955, allocations: 0 / 388.9 MB, free: 14.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.5955, allocations: 3.906 kB / 388.9 MB, free: 14.81 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0009286/0.5965, allocations: 0.5696 MB / 389.4 MB, free: 14.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.5965, allocations: 11.66 kB / 389.4 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001919/0.5967, allocations: 27.28 kB / 389.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.5972, allocations: 264.7 kB / 389.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.5972, allocations: 11.19 kB / 389.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.54e-05/0.5973, allocations: 17.53 kB / 389.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000442/0.5977, allocations: 159.6 kB / 389.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.5978, allocations: 1.594 kB / 389.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/0.5978, allocations: 12 kB / 389.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.5978, allocations: 2.875 kB / 389.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003759/0.5982, allocations: 125.8 kB / 390 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.5994, allocations: 0.6019 MB / 390.7 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.5999, allocations: 166.9 kB / 390.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.6, allocations: 0 / 390.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003015/0.6003, allocations: 124.4 kB / 390.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 2.425e-06/0.6003, allocations: 0 / 390.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007368/0.601, allocations: 241.3 kB / 391.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.6011, allocations: 55.31 kB / 391.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.6014, allocations: 252.8 kB / 391.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.6015, allocations: 32.59 kB / 391.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.236e-05/0.6016, allocations: 145 kB / 391.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.728e-05/0.6017, allocations: 70.98 kB / 391.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.806e-05/0.6017, allocations: 3.625 kB / 391.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.862e-05/0.6018, allocations: 338.2 kB / 392 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.602, allocations: 66.59 kB / 392.1 MB, free: 12.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.6023, allocations: 110.2 kB / 392.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.6025, allocations: 113.9 kB / 392.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6026, allocations: 0 / 392.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006803/0.6032, allocations: 291.6 kB / 392.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.691e-05/0.6033, allocations: 38.73 kB / 392.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.6033, allocations: 4 kB / 392.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.6034, allocations: 7.906 kB / 392.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003578/0.6037, allocations: 47.48 kB / 392.7 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.6037, allocations: 3.844 kB / 392.7 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.604, allocations: 25.59 kB / 392.7 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.604, allocations: 7.281 kB / 392.7 MB, free: 12.7 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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.0001829/0.6042, allocations: 146.1 kB / 392.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.76e-05/0.6043, allocations: 27.33 kB / 392.9 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005844/0.6049, allocations: 221.6 kB / 393.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.6049, allocations: 3.875 kB / 393.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.6049, allocations: 7.875 kB / 393.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.6049, allocations: 2.391 kB / 393.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.6053, allocations: 299.9 kB / 393.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.6053, allocations: 0 / 393.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003333/0.6056, allocations: 35.92 kB / 393.5 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.6057, allocations: 3.953 kB / 393.5 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.6057, allocations: 6.75 kB / 393.5 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.6057, allocations: 0 / 393.5 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.6057, allocations: 10.28 kB / 393.5 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007157/0.6065, allocations: 308.4 kB / 393.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.6066, allocations: 119.9 kB / 393.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.816e-05/0.6067, allocations: 7.891 kB / 393.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.6068, allocations: 9.766 kB / 393.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.81e-05/0.6069, allocations: 12.19 kB / 393.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.607, allocations: 14.05 kB / 394 MB, free: 12.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002577/0.6072, allocations: 187.1 kB / 394.1 MB, free: 12.03 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6072, allocations: 0 / 394.1 MB, free: 12.03 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004383/0.6077, allocations: 71.52 kB / 394.2 MB, free: 12.02 MB / 314.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: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001042/0.6087, allocations: 409.1 kB / 394.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006201/0.6094, allocations: 251.8 kB / 394.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.6094, allocations: 0 / 394.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.6096, allocations: 85.58 kB / 394.9 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.6101, allocations: 38.17 kB / 395 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.6114, allocations: 0.6595 MB / 395.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.6117, allocations: 0.7556 MB / 396.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002108/0.6119, allocations: 33.69 kB / 396.4 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.13e-05/0.612, allocations: 18.66 kB / 396.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.612, allocations: 3.75 kB / 396.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of Templates: time 0.008607/0.6206, allocations: 2.655 MB / 399.1 MB, free: 10.28 MB / 314.7 MB