Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005358/0.0005361, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1253, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4283/0.5537, allocations: 74.51 MB / 383.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.554, allocations: 76.94 kB / 383.6 MB, free: 14.86 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.02185/0.5759, allocations: 5.222 MB / 388.8 MB, free: 14.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5759, allocations: 0 / 388.8 MB, free: 14.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.045e-05/0.576, allocations: 3.969 kB / 388.8 MB, free: 14.27 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.0009021/0.5769, allocations: 0.5744 MB / 389.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.5769, allocations: 7.781 kB / 389.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.5771, allocations: 28.36 kB / 389.4 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004076/0.5775, allocations: 258.1 kB / 389.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.5776, allocations: 11.25 kB / 389.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.564e-05/0.5777, allocations: 23.19 kB / 389.7 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/0.5781, allocations: 163.7 kB / 389.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.5781, allocations: 0 / 389.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.5782, allocations: 14.25 kB / 389.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.5782, allocations: 3.906 kB / 389.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003678/0.5786, allocations: 124.6 kB / 390 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.5798, allocations: 0.5979 MB / 390.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004391/0.5802, allocations: 168.5 kB / 390.7 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.5803, allocations: 7.219 kB / 390.7 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002859/0.5806, allocations: 118.6 kB / 390.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 2.735e-06/0.5806, allocations: 0 / 390.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007166/0.5813, allocations: 245.5 kB / 391.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.5814, allocations: 58.62 kB / 391.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/0.5817, allocations: 246 kB / 391.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.5818, allocations: 34.42 kB / 391.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.5819, allocations: 201.8 kB / 391.6 MB, free: 12.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.566e-05/0.5819, allocations: 70.09 kB / 391.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/0.582, allocations: 7.344 kB / 391.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.259e-05/0.582, allocations: 319.8 kB / 392 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000217/0.5823, allocations: 72.89 kB / 392.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.5825, allocations: 104.4 kB / 392.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.5828, allocations: 114.7 kB / 392.3 MB, free: 12.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5828, allocations: 0 / 392.3 MB, free: 12.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006427/0.5835, allocations: 278.1 kB / 392.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.207e-05/0.5835, allocations: 36.22 kB / 392.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.5835, allocations: 3.875 kB / 392.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.5836, allocations: 0 / 392.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003642/0.5839, allocations: 51.16 kB / 392.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.584, allocations: 0 / 392.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.5842, allocations: 32.91 kB / 392.7 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.5843, allocations: 10.16 kB / 392.7 MB, free: 12.09 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.000199/0.5845, allocations: 141.4 kB / 392.8 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.821e-05/0.5845, allocations: 31.33 kB / 392.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006087/0.5852, allocations: 217.7 kB / 393.1 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.5852, allocations: 3.938 kB / 393.1 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.5852, allocations: 7.938 kB / 393.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5852, allocations: 2.672 kB / 393.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003618/0.5856, allocations: 295.8 kB / 393.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.5856, allocations: 0 / 393.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.586, allocations: 39.5 kB / 393.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-06/0.586, allocations: 7.891 kB / 393.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.586, allocations: 6.297 kB / 393.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.586, allocations: 3.906 kB / 393.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.586, allocations: 0 / 393.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007192/0.5868, allocations: 303.4 kB / 393.7 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.5869, allocations: 123 kB / 393.9 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.73e-05/0.587, allocations: 7.797 kB / 393.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.5871, allocations: 11.66 kB / 393.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.149e-05/0.5873, allocations: 10.11 kB / 393.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.5873, allocations: 11.62 kB / 393.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002617/0.5876, allocations: 183.1 kB / 394.1 MB, free: 11.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5876, allocations: 4.062 kB / 394.1 MB, free: 11.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004294/0.588, allocations: 76.81 kB / 394.2 MB, free: 11.41 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.001084/0.5891, allocations: 421.9 kB / 394.6 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006278/0.5898, allocations: 251.7 kB / 394.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5898, allocations: 0 / 394.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.59, allocations: 84.59 kB / 394.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.5904, allocations: 32.94 kB / 394.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.5918, allocations: 0.6867 MB / 395.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.5921, allocations: 0.7547 MB / 396.4 MB, free: 9.934 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.5922, allocations: 26.12 kB / 396.4 MB, free: 9.926 MB / 314.7 MB Notification: Performance of SimCode: time 1.823e-06/0.5922, allocations: 0 / 396.4 MB, free: 9.926 MB / 314.7 MB Notification: Performance of Templates: time 0.007387/0.5996, allocations: 3.169 MB / 399.6 MB, free: 9.598 MB / 314.7 MB