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.814/1.814, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003535, allocations: 8 kB / 233.1 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07029/0.07067, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002801/0.07352, allocations: 1.709 MB / 273.6 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.07544, allocations: 0.909 MB / 274.5 MB, free: 9.57 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.07562, allocations: 4 kB / 274.5 MB, free: 9.566 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003366/0.07597, allocations: 87.67 kB / 274.6 MB, free: 9.48 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.07632, allocations: 111.7 kB / 274.7 MB, free: 9.371 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.07665, allocations: 87.77 kB / 274.8 MB, free: 9.285 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000332/0.077, allocations: 195.6 kB / 275 MB, free: 9.094 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.07721, allocations: 73.95 kB / 275.1 MB, free: 9.02 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.07738, allocations: 83.75 kB / 275.2 MB, free: 8.938 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000196/0.07759, allocations: 111.6 kB / 275.3 MB, free: 8.828 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/0.07763, allocations: 8 kB / 275.3 MB, free: 8.82 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001805/0.07782, allocations: 43.94 kB / 275.3 MB, free: 8.777 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.599e-05/0.07792, allocations: 43.83 kB / 275.4 MB, free: 8.734 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.09e-05/0.07802, allocations: 61.58 kB / 275.4 MB, free: 8.668 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003666/0.0784, allocations: 215.8 kB / 275.6 MB, free: 8.457 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.114e-06/0.07842, allocations: 0 / 275.6 MB, free: 8.457 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.929e-06/0.07843, allocations: 0 / 275.6 MB, free: 8.457 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.755e-06/0.07844, allocations: 0 / 275.6 MB, free: 8.457 MB / 234.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.0008646/0.07932, allocations: 0.5284 MB / 276.2 MB, free: 7.871 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.07937, allocations: 8.031 kB / 276.2 MB, free: 7.863 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.07957, allocations: 31.7 kB / 276.2 MB, free: 7.832 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.07995, allocations: 242.7 kB / 276.4 MB, free: 7.555 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.08, allocations: 12.28 kB / 276.5 MB, free: 7.543 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.694e-05/0.08006, allocations: 16 kB / 276.5 MB, free: 7.527 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000377/0.08045, allocations: 152.2 kB / 276.6 MB, free: 7.375 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.08048, allocations: 3.938 kB / 276.6 MB, free: 7.371 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.08051, allocations: 15.98 kB / 276.6 MB, free: 7.355 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.249e-06/0.08053, allocations: 4 kB / 276.6 MB, free: 7.352 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002998/0.08084, allocations: 108.2 kB / 276.7 MB, free: 7.246 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.08197, allocations: 0.5548 MB / 277.3 MB, free: 6.641 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.08236, allocations: 142.5 kB / 277.4 MB, free: 6.492 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.08241, allocations: 4 kB / 277.4 MB, free: 6.488 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002808/0.0827, allocations: 106.3 kB / 277.6 MB, free: 6.375 MB / 234.7 MB Notification: Performance of pre-optimization done (n=18): time 3.394e-06/0.08272, allocations: 0 / 277.6 MB, free: 6.375 MB / 234.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005535/0.08329, allocations: 209.5 kB / 277.8 MB, free: 6.164 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.08336, allocations: 55.41 kB / 277.8 MB, free: 6.098 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003536/0.08373, allocations: 260 kB / 278.1 MB, free: 5.832 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.08378, allocations: 29.7 kB / 278.1 MB, free: 5.797 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.08394, allocations: 202.8 kB / 278.3 MB, free: 5.598 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.828e-05/0.08403, allocations: 55.2 kB / 278.3 MB, free: 5.543 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.828e-05/0.08407, allocations: 4 kB / 278.3 MB, free: 5.539 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.08425, allocations: 330.8 kB / 278.7 MB, free: 5.207 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.0844, allocations: 47.84 kB / 278.7 MB, free: 5.16 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.08458, allocations: 82.17 kB / 278.8 MB, free: 5.074 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.0848, allocations: 85.89 kB / 278.9 MB, free: 4.984 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.765e-06/0.08482, allocations: 3.953 kB / 278.9 MB, free: 4.98 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004888/0.08532, allocations: 220 kB / 279.1 MB, free: 4.754 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.87e-05/0.08538, allocations: 37.77 kB / 279.1 MB, free: 4.711 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.88e-06/0.0854, allocations: 3.938 kB / 279.1 MB, free: 4.707 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.08542, allocations: 0 / 279.1 MB, free: 4.707 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.08569, allocations: 43.97 kB / 279.2 MB, free: 4.664 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.807e-06/0.08571, allocations: 0 / 279.2 MB, free: 4.664 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001636/0.08588, allocations: 23.75 kB / 279.2 MB, free: 4.641 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.855e-05/0.08592, allocations: 12 kB / 279.2 MB, free: 4.629 MB / 234.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.0002072/0.08614, allocations: 149.7 kB / 279.4 MB, free: 4.473 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.0862, allocations: 19.77 kB / 279.4 MB, free: 4.453 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.058e-05/0.08629, allocations: 29.86 kB / 279.4 MB, free: 4.426 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.644e-06/0.08631, allocations: 4 kB / 279.4 MB, free: 4.422 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.027e-06/0.08632, allocations: 0 / 279.4 MB, free: 4.422 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.078e-06/0.08634, allocations: 0 / 279.4 MB, free: 4.422 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.08673, allocations: 277.4 kB / 279.7 MB, free: 4.102 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.526e-06/0.08675, allocations: 4 kB / 279.7 MB, free: 4.098 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/0.08701, allocations: 43.88 kB / 279.7 MB, free: 4.055 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.963e-06/0.08703, allocations: 0 / 279.7 MB, free: 4.055 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.08705, allocations: 0 / 279.7 MB, free: 4.055 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.035e-06/0.08707, allocations: 8 kB / 279.7 MB, free: 4.047 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.27e-06/0.08708, allocations: 0 / 279.7 MB, free: 4.047 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005744/0.08767, allocations: 252.8 kB / 280 MB, free: 3.785 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.875e-05/0.08778, allocations: 104.8 kB / 280.1 MB, free: 3.664 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.08784, allocations: 4 kB / 280.1 MB, free: 3.66 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.08797, allocations: 11.94 kB / 280.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.612e-05/0.08803, allocations: 12.03 kB / 280.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.08807, allocations: 8 kB / 280.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002419/0.08832, allocations: 193.6 kB / 280.3 MB, free: 3.441 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.08833, allocations: 0 / 280.3 MB, free: 3.441 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004032/0.08875, allocations: 63.83 kB / 280.4 MB, free: 3.379 MB / 234.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 (18): * Single equations (assignments): 17 * 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.001068/0.08983, allocations: 331.7 kB / 280.7 MB, free: 3.109 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004447/0.09029, allocations: 191.6 kB / 280.9 MB, free: 2.91 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.983e-06/0.09032, allocations: 8.062 kB / 280.9 MB, free: 2.902 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.09048, allocations: 63.91 kB / 281 MB, free: 2.84 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.09082, allocations: 32.66 kB / 281 MB, free: 2.809 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.09217, allocations: 0.6564 MB / 281.6 MB, free: 2.117 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.09267, allocations: 0.744 MB / 282.4 MB, free: 1.348 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.213e-05/0.09278, allocations: 27.42 kB / 282.4 MB, free: 1.32 MB / 234.7 MB Notification: Performance of SimCode: time 1.707e-06/0.0928, allocations: 4 kB / 282.4 MB, free: 1.316 MB / 234.7 MB Notification: Performance of Templates: time 0.006716/0.09953, allocations: 2.934 MB / 285.4 MB, free: 14.39 MB / 250.7 MB