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.818/1.818, allocations: 171.2 MB / 184.3 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.518e-05/2.539e-05, allocations: 0 / 228.8 MB, free: 15.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2168, allocations: 38.77 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.3816, allocations: 69.57 MB / 337.2 MB, free: 3.773 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.3819, allocations: 67.97 kB / 337.2 MB, free: 3.707 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02119/0.4031, allocations: 5.115 MB / 342.3 MB, free: 14.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.992e-06/0.4032, allocations: 0 / 342.3 MB, free: 14.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.146e-05/0.4032, allocations: 7.938 kB / 342.3 MB, free: 14.57 MB / 298.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.0008637/0.4041, allocations: 0.5164 MB / 342.9 MB, free: 14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.4041, allocations: 8.031 kB / 342.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.4043, allocations: 31.72 kB / 342.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.4047, allocations: 230.7 kB / 343.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/0.4048, allocations: 20.27 kB / 343.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.4049, allocations: 23.94 kB / 343.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003801/0.4053, allocations: 148.2 kB / 343.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.4053, allocations: 3.906 kB / 343.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.513e-05/0.4053, allocations: 4 kB / 343.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.183e-06/0.4053, allocations: 8 kB / 343.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003315/0.4057, allocations: 116.6 kB / 343.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.4069, allocations: 0.5782 MB / 344 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.4073, allocations: 146.6 kB / 344.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.4075, allocations: 80.84 kB / 344.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.4076, allocations: 0 / 344.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.4078, allocations: 104.6 kB / 344.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 3.062e-06/0.4078, allocations: 4 kB / 344.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004672/0.4083, allocations: 167.8 kB / 344.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.4084, allocations: 55.31 kB / 344.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.4087, allocations: 231 kB / 344.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.4088, allocations: 33.7 kB / 344.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.409, allocations: 194.8 kB / 345 MB, free: 11.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.931e-05/0.4091, allocations: 67.08 kB / 345.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.687e-05/0.4091, allocations: 8 kB / 345.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4093, allocations: 318.8 kB / 345.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/0.4095, allocations: 60 kB / 345.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.4097, allocations: 74.75 kB / 345.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.4099, allocations: 97.81 kB / 345.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.939e-06/0.4099, allocations: 3.938 kB / 345.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005366/0.4104, allocations: 239.2 kB / 345.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/0.4105, allocations: 29.77 kB / 345.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.247e-06/0.4105, allocations: 4 kB / 345.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.4105, allocations: 4 kB / 345.9 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.4108, allocations: 39.97 kB / 345.9 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.692e-06/0.4108, allocations: 7.875 kB / 345.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.4111, allocations: 31.77 kB / 346 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.4111, allocations: 4 kB / 346 MB, free: 10.68 MB / 298.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 () * 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.0001178/0.4112, allocations: 120.9 kB / 346.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.888e-05/0.4113, allocations: 27.72 kB / 346.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005072/0.4118, allocations: 195.2 kB / 346.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.131e-06/0.4118, allocations: 4 kB / 346.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.722e-06/0.4119, allocations: 0 / 346.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.908e-06/0.4119, allocations: 0 / 346.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004126/0.4123, allocations: 289.5 kB / 346.6 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.543e-06/0.4123, allocations: 0 / 346.6 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/0.4126, allocations: 35.98 kB / 346.6 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.4126, allocations: 7.953 kB / 346.6 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.4126, allocations: 4 kB / 346.6 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.897e-06/0.4127, allocations: 4 kB / 346.7 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.375e-06/0.4127, allocations: 4 kB / 346.7 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006416/0.4133, allocations: 273.4 kB / 346.9 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.4134, allocations: 104.8 kB / 347 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.209e-05/0.4135, allocations: 7.953 kB / 347 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.4137, allocations: 4 kB / 347 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/0.4137, allocations: 24.03 kB / 347.1 MB, free: 9.504 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.4138, allocations: 4 kB / 347.1 MB, free: 9.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002666/0.414, allocations: 189.6 kB / 347.3 MB, free: 9.316 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.79e-07/0.4141, allocations: 0 / 347.3 MB, free: 9.316 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004236/0.4145, allocations: 75.78 kB / 347.3 MB, free: 9.242 MB / 298.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) * 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.001008/0.4155, allocations: 313.5 kB / 347.6 MB, free: 8.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004929/0.416, allocations: 199.7 kB / 347.8 MB, free: 8.773 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.244e-06/0.416, allocations: 4.125 kB / 347.8 MB, free: 8.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.4162, allocations: 67.89 kB / 347.9 MB, free: 8.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.4166, allocations: 36.64 kB / 347.9 MB, free: 8.664 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.4177, allocations: 452.4 kB / 348.4 MB, free: 8.195 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004499/0.4182, allocations: 0.748 MB / 349.1 MB, free: 7.418 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.4183, allocations: 23.42 kB / 349.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of SimCode: time 1.792e-06/0.4183, allocations: 8 kB / 349.2 MB, free: 7.387 MB / 298.7 MB Notification: Performance of Templates: time 0.006882/0.4252, allocations: 3.016 MB / 352.2 MB, free: 4.367 MB / 298.7 MB