Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.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.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadModel(Modelica): time 2.069/2.069, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003503, allocations: 4 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08099/0.08136, allocations: 44.51 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3361/0.4175, allocations: 74.51 MB / 383 MB, free: 18.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4178, allocations: 71.77 kB / 383 MB, free: 18.9 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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@2/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.01951/0.4373, allocations: 5.224 MB / 388.3 MB, free: 18.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.672e-06/0.4373, allocations: 0 / 388.3 MB, free: 18.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.183e-05/0.4374, allocations: 8.516 kB / 388.3 MB, free: 18.3 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.0007291/0.4381, allocations: 0.5681 MB / 388.8 MB, free: 17.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.4382, allocations: 9.875 kB / 388.8 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.4384, allocations: 33.16 kB / 388.9 MB, free: 17.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.4387, allocations: 254.5 kB / 389.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.4388, allocations: 11.25 kB / 389.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.661e-05/0.4388, allocations: 18.44 kB / 389.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/0.4392, allocations: 166.5 kB / 389.3 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.4393, allocations: 3.938 kB / 389.3 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/0.4393, allocations: 12.91 kB / 389.3 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.857e-06/0.4393, allocations: 3.781 kB / 389.3 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003204/0.4396, allocations: 124.5 kB / 389.5 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.4407, allocations: 0.601 MB / 390.1 MB, free: 17.19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.4411, allocations: 167.5 kB / 390.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.4411, allocations: 0 / 390.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002515/0.4414, allocations: 125.8 kB / 390.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 2.88e-06/0.4414, allocations: 0 / 390.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0006216/0.442, allocations: 243 kB / 390.6 MB, free: 17.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.4421, allocations: 55.34 kB / 390.6 MB, free: 17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002618/0.4424, allocations: 223.9 kB / 390.8 MB, free: 16.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.4424, allocations: 29.52 kB / 390.9 MB, free: 16.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.788e-05/0.4425, allocations: 201.8 kB / 391.1 MB, free: 16.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.787e-05/0.4426, allocations: 75.11 kB / 391.1 MB, free: 16.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.4426, allocations: 3.625 kB / 391.2 MB, free: 16.65 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.847e-05/0.4427, allocations: 321.9 kB / 391.5 MB, free: 16.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.4429, allocations: 71.94 kB / 391.5 MB, free: 16.33 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.4431, allocations: 105 kB / 391.6 MB, free: 16.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.4434, allocations: 124.1 kB / 391.8 MB, free: 16.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.578e-06/0.4434, allocations: 0 / 391.8 MB, free: 16.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005675/0.4439, allocations: 270.5 kB / 392 MB, free: 16.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.885e-05/0.444, allocations: 39.5 kB / 392.1 MB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.444, allocations: 0 / 392.1 MB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.444, allocations: 0 / 392.1 MB, free: 16.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.4443, allocations: 49.28 kB / 392.1 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.372e-06/0.4443, allocations: 3.984 kB / 392.1 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.4445, allocations: 32.52 kB / 392.1 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.4446, allocations: 11.16 kB / 392.2 MB, free: 16.12 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.0001589/0.4448, allocations: 147.7 kB / 392.3 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.552e-05/0.4448, allocations: 27.27 kB / 392.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005228/0.4453, allocations: 214.1 kB / 392.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.739e-06/0.4454, allocations: 3.938 kB / 392.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4454, allocations: 3.938 kB / 392.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.794e-06/0.4454, allocations: 7.75 kB / 392.6 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003198/0.4457, allocations: 299.4 kB / 392.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.805e-06/0.4458, allocations: 4 kB / 392.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002698/0.446, allocations: 40.38 kB / 392.9 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.085e-06/0.4461, allocations: 3.984 kB / 392.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.4461, allocations: 13.05 kB / 392.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.13e-06/0.4461, allocations: 0 / 392.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.809e-06/0.4461, allocations: 0 / 392.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006589/0.4468, allocations: 305.4 kB / 393.2 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.4469, allocations: 119.2 kB / 393.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.373e-05/0.447, allocations: 11.75 kB / 393.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.4472, allocations: 9.891 kB / 393.3 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.507e-05/0.4472, allocations: 15.2 kB / 393.4 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.4473, allocations: 5.891 kB / 393.4 MB, free: 15.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001985/0.4475, allocations: 186.2 kB / 393.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.75e-07/0.4475, allocations: 0 / 393.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00043/0.4479, allocations: 81.38 kB / 393.6 MB, free: 15.44 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.001275/0.4492, allocations: 402.4 kB / 394 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005651/0.4498, allocations: 253.1 kB / 394.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.924e-06/0.4498, allocations: 0 / 394.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.45, allocations: 80.88 kB / 394.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004176/0.4505, allocations: 34.55 kB / 394.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.4517, allocations: 0.7005 MB / 395.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.4519, allocations: 0.7547 MB / 395.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.497e-05/0.452, allocations: 29.42 kB / 395.9 MB, free: 13.95 MB / 314.7 MB Notification: Performance of SimCode: time 1.82e-06/0.452, allocations: 0 / 395.9 MB, free: 13.95 MB / 314.7 MB Notification: Performance of Templates: time 0.006195/0.4583, allocations: 3.148 MB / 399 MB, free: 13.64 MB / 314.7 MB