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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.731/1.731, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.49e-05/1.491e-05, allocations: 0 / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07059/0.07062, allocations: 38.76 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2795/0.3502, allocations: 68.91 MB / 330.2 MB, free: 3.387 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.3504, allocations: 74.2 kB / 330.2 MB, free: 3.348 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02039/0.3708, allocations: 5.064 MB / 335.3 MB, free: 15.1 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.151e-06/0.3709, allocations: 0 / 335.3 MB, free: 15.1 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.183e-05/0.3709, allocations: 15.83 kB / 335.3 MB, free: 15.09 MB / 282.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.0008348/0.3718, allocations: 0.5174 MB / 335.8 MB, free: 14.53 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3718, allocations: 8.031 kB / 335.9 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001861/0.372, allocations: 27.72 kB / 335.9 MB, free: 14.49 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.3724, allocations: 236.9 kB / 336.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.3725, allocations: 7.953 kB / 336.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.892e-05/0.3725, allocations: 12 kB / 336.1 MB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003127/0.3729, allocations: 110.4 kB / 336.2 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.3732, allocations: 126.8 kB / 336.4 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.3732, allocations: 3.906 kB / 336.4 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.3732, allocations: 0 / 336.4 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.3733, allocations: 4 kB / 336.4 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.3744, allocations: 0.5427 MB / 336.9 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003349/0.3748, allocations: 132.2 kB / 337 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.375, allocations: 82.59 kB / 337.1 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.375, allocations: 4.312 kB / 337.1 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.3753, allocations: 101.3 kB / 337.2 MB, free: 13.28 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 3.342e-06/0.3753, allocations: 0 / 337.2 MB, free: 13.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004376/0.3757, allocations: 154.1 kB / 337.4 MB, free: 13.15 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.3758, allocations: 55.41 kB / 337.4 MB, free: 13.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.3761, allocations: 212.1 kB / 337.6 MB, free: 12.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.3762, allocations: 29.7 kB / 337.7 MB, free: 12.87 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.3763, allocations: 203.7 kB / 337.9 MB, free: 12.69 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.353e-05/0.3764, allocations: 62.88 kB / 337.9 MB, free: 12.63 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.253e-05/0.3764, allocations: 7.938 kB / 337.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3766, allocations: 318.6 kB / 338.2 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.3768, allocations: 51.98 kB / 338.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.3769, allocations: 82.25 kB / 338.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.3771, allocations: 56.92 kB / 338.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.733e-06/0.3771, allocations: 4 kB / 338.4 MB, free: 12.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004615/0.3776, allocations: 195.6 kB / 338.6 MB, free: 12.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.059e-05/0.3777, allocations: 37.2 kB / 338.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.744e-06/0.3777, allocations: 0 / 338.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.3777, allocations: 0 / 338.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.378, allocations: 43.91 kB / 338.7 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.872e-06/0.378, allocations: 4 kB / 338.7 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.3782, allocations: 15.84 kB / 338.7 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.395e-05/0.3783, allocations: 11.38 kB / 338.7 MB, free: 11.91 MB / 282.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.0001269/0.3784, allocations: 112.9 kB / 338.8 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.256e-05/0.3785, allocations: 19.77 kB / 338.9 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004537/0.3789, allocations: 174.4 kB / 339 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.89e-06/0.3789, allocations: 4 kB / 339 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.422e-06/0.379, allocations: 0 / 339 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.493e-06/0.379, allocations: 0 / 339 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.3794, allocations: 258.5 kB / 339.3 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.381e-06/0.3794, allocations: 4 kB / 339.3 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.3797, allocations: 39.05 kB / 339.3 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.3797, allocations: 4 kB / 339.3 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.3797, allocations: 3.938 kB / 339.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.194e-06/0.3797, allocations: 0 / 339.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.402e-06/0.3797, allocations: 3.953 kB / 339.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005557/0.3803, allocations: 258.4 kB / 339.6 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.3804, allocations: 96.95 kB / 339.7 MB, free: 11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/0.3805, allocations: 3.75 kB / 339.7 MB, free: 11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.3806, allocations: 11.98 kB / 339.7 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.818e-05/0.3807, allocations: 11.94 kB / 339.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.3807, allocations: 8 kB / 339.7 MB, free: 10.97 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002186/0.381, allocations: 174.1 kB / 339.9 MB, free: 10.83 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.36e-07/0.381, allocations: 3.938 kB / 339.9 MB, free: 10.83 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000431/0.3814, allocations: 71.59 kB / 340 MB, free: 10.76 MB / 282.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.0008772/0.3823, allocations: 283.8 kB / 340.2 MB, free: 10.51 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004116/0.3827, allocations: 189.2 kB / 340.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3828, allocations: 0 / 340.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.3829, allocations: 65.5 kB / 340.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.3833, allocations: 29.67 kB / 340.5 MB, free: 10.28 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.3843, allocations: 439.1 kB / 341 MB, free: 9.859 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.3848, allocations: 0.7514 MB / 341.7 MB, free: 9.082 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.492e-05/0.385, allocations: 22.44 kB / 341.7 MB, free: 9.062 MB / 282.7 MB Notification: Performance of SimCode: time 1.56e-06/0.385, allocations: 4 kB / 341.7 MB, free: 9.059 MB / 282.7 MB Notification: Performance of Templates: time 0.006827/0.3918, allocations: 2.917 MB / 344.7 MB, free: 6.168 MB / 282.7 MB