Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.83/1.83, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003505, allocations: 8 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1074, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3957/0.5031, allocations: 89.32 MB / 361.9 MB, free: 328 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003517/0.5036, allocations: 90.19 kB / 362 MB, free: 276 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1758/0.6794, allocations: 30.34 MB / 392.4 MB, free: 6.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.968e-06/0.6795, allocations: 0 / 392.4 MB, free: 6.723 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000211/0.6798, allocations: 27.98 kB / 392.4 MB, free: 6.695 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007818/0.6876, allocations: 1.546 MB / 393.9 MB, free: 5.184 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.6877, allocations: 11.97 kB / 394 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001783/0.6895, allocations: 198.2 kB / 394.1 MB, free: 4.977 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004258/0.6938, allocations: 0.8315 MB / 395 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000356/0.6942, allocations: 122.8 kB / 395.1 MB, free: 4.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005044/0.6948, allocations: 113.1 kB / 395.2 MB, free: 4.105 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005714/0.7005, allocations: 1.133 MB / 396.3 MB, free: 3.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.356e-05/0.7007, allocations: 0 / 396.3 MB, free: 3.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002626/0.701, allocations: 48.5 kB / 396.4 MB, free: 3.219 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.984e-05/0.701, allocations: 24 kB / 396.4 MB, free: 3.195 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004975/0.706, allocations: 0.7793 MB / 397.2 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01681/0.7229, allocations: 3.93 MB / 401.1 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004376/0.7273, allocations: 0.597 MB / 401.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.7276, allocations: 12.55 kB / 401.7 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001536/0.7291, allocations: 303.1 kB / 402 MB, free: 13.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 6.543e-06/0.7292, allocations: 0 / 402 MB, free: 13.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.01149/0.7407, allocations: 2.11 MB / 404.1 MB, free: 11.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003507/0.7411, allocations: 487.2 kB / 404.6 MB, free: 10.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003307/0.7444, allocations: 1.045 MB / 405.7 MB, free: 9.695 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002032/0.7446, allocations: 41.7 kB / 405.7 MB, free: 9.648 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.7457, allocations: 0.6388 MB / 406.3 MB, free: 9 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004251/0.7461, allocations: 240.6 kB / 406.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.796e-05/0.7463, allocations: 20 kB / 406.6 MB, free: 8.742 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.7465, allocations: 341.9 kB / 406.9 MB, free: 8.402 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/0.748, allocations: 262.5 kB / 407.2 MB, free: 8.148 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002067/0.7501, allocations: 0.713 MB / 407.9 MB, free: 7.227 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.7519, allocations: 414.3 kB / 408.3 MB, free: 6.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.524e-05/0.752, allocations: 4 kB / 408.3 MB, free: 6.805 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.005383/0.7574, allocations: 1.161 MB / 409.5 MB, free: 5.617 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.7575, allocations: 68.03 kB / 409.5 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-05/0.7576, allocations: 12 kB / 409.5 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.7589, allocations: 169.7 kB / 409.7 MB, free: 5.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002025/0.7609, allocations: 211.7 kB / 409.9 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009169/0.7701, allocations: 3.599 MB / 413.5 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.7726, allocations: 80.06 kB / 413.6 MB, free: 1.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.7728, allocations: 52.11 kB / 413.6 MB, free: 1.156 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {5 10} Notification: Performance of prepare postOptimizeDAE: time 0.001119/0.7739, allocations: 296 kB / 413.9 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000395/0.7743, allocations: 130.5 kB / 414.1 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003812/0.7782, allocations: 0.7309 MB / 414.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.301e-05/0.7782, allocations: 11.95 kB / 414.8 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.7782, allocations: 0 / 414.8 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003227/0.7815, allocations: 0.9569 MB / 415.8 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007521/0.7891, allocations: 1.789 MB / 417.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.7891, allocations: 0 / 417.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/0.7906, allocations: 115.8 kB / 417.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.7917, allocations: 129.7 kB / 417.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.7919, allocations: 23.98 kB / 417.8 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007376/0.7993, allocations: 3.31 MB / 421.1 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.139e-05/0.7993, allocations: 3.938 kB / 421.1 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005749/0.8051, allocations: 1.097 MB / 422.2 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.8063, allocations: 243.6 kB / 422.5 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004803/0.8068, allocations: 23.98 kB / 422.5 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001651/0.8084, allocations: 43.91 kB / 422.5 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003191/0.8088, allocations: 68.38 kB / 422.6 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.466e-05/0.8089, allocations: 16 kB / 422.6 MB, free: 7.629 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002529/0.8115, allocations: 0.7047 MB / 423.3 MB, free: 6.918 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.8115, allocations: 0 / 423.3 MB, free: 6.918 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002844/0.8144, allocations: 352.1 kB / 423.7 MB, free: 6.574 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001136/0.8155, allocations: 356.7 kB / 424 MB, free: 6.223 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003498/0.8191, allocations: 1.107 MB / 425.1 MB, free: 5.066 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/0.8191, allocations: 6 kB / 425.1 MB, free: 5.062 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.8207, allocations: 0.5671 MB / 425.7 MB, free: 4.469 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002218/0.8229, allocations: 292.8 kB / 426 MB, free: 4.184 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006665/0.8296, allocations: 2.717 MB / 428.7 MB, free: 1.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009806/0.8306, allocations: 1.105 MB / 429.8 MB, free: 284 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001069/0.8317, allocations: 145.8 kB / 429.9 MB, free: 136 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.832, allocations: 75.44 kB / 430 MB, free: 60 kB / 346.7 MB Notification: Performance of SimCode: time 1.233e-06/0.832, allocations: 0 / 430 MB, free: 60 kB / 346.7 MB Notification: Performance of Templates: time 0.3119/1.144, allocations: 18.42 MB / 448.4 MB, free: 91.63 MB / 346.7 MB