Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.604/1.604, allocations: 171.2 MB / 184.2 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.577e-05, allocations: 4 kB / 228.8 MB, free: 15.43 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2054, allocations: 38.76 MB / 267.6 MB, free: 9.457 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.3355, allocations: 89.23 MB / 356.8 MB, free: 80 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.174/0.5095, allocations: 82.78 kB / 356.9 MB, free: 83.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1108/0.6204, allocations: 30.35 MB / 387.3 MB, free: 60.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.937e-06/0.6204, allocations: 0 / 387.3 MB, free: 60.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.845e-05/0.6205, allocations: 28 kB / 387.3 MB, free: 60.48 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.00247/0.623, allocations: 1.351 MB / 388.6 MB, free: 59.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.623, allocations: 8.469 kB / 388.7 MB, free: 59.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007029/0.6237, allocations: 198.1 kB / 388.8 MB, free: 58.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001823/0.6256, allocations: 0.8399 MB / 389.7 MB, free: 57.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.6258, allocations: 119.8 kB / 389.8 MB, free: 57.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.626, allocations: 108 kB / 389.9 MB, free: 57.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002054/0.628, allocations: 1.091 MB / 391 MB, free: 56.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.454e-05/0.6281, allocations: 3.906 kB / 391 MB, free: 56.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.6282, allocations: 48 kB / 391 MB, free: 56.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.6283, allocations: 24 kB / 391.1 MB, free: 56.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001598/0.6299, allocations: 0.6913 MB / 391.8 MB, free: 55.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006691/0.6366, allocations: 3.914 MB / 395.7 MB, free: 51.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.6383, allocations: 0.5466 MB / 396.2 MB, free: 51.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004949/0.6388, allocations: 243 kB / 396.5 MB, free: 50.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.542e-05/0.6389, allocations: 12.56 kB / 396.5 MB, free: 50.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000547/0.6394, allocations: 263.2 kB / 396.7 MB, free: 50.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=63): time 4.257e-06/0.6394, allocations: 0 / 396.7 MB, free: 50.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=66): time 0.00345/0.6429, allocations: 1.528 MB / 398.3 MB, free: 49.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.936e-05/0.643, allocations: 483.2 kB / 398.7 MB, free: 48.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/0.6446, allocations: 0.9039 MB / 399.6 MB, free: 47.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.952e-05/0.6447, allocations: 41.7 kB / 399.7 MB, free: 47.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003991/0.6451, allocations: 0.6331 MB / 400.3 MB, free: 46.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.6453, allocations: 224.8 kB / 400.5 MB, free: 46.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.275e-05/0.6453, allocations: 23.94 kB / 400.6 MB, free: 46.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.682e-05/0.6454, allocations: 358.8 kB / 400.9 MB, free: 46.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005051/0.646, allocations: 218.6 kB / 401.1 MB, free: 46.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007504/0.6467, allocations: 0.6781 MB / 401.8 MB, free: 45.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006775/0.6474, allocations: 378.8 kB / 402.2 MB, free: 44.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.914e-06/0.6474, allocations: 4 kB / 402.2 MB, free: 44.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002267/0.6497, allocations: 1.04 MB / 403.2 MB, free: 43.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.86e-05/0.6498, allocations: 75.39 kB / 403.3 MB, free: 43.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/0.6498, allocations: 12 kB / 403.3 MB, free: 43.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008583/0.6507, allocations: 194.9 kB / 403.5 MB, free: 43.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008478/0.6516, allocations: 207.7 kB / 403.7 MB, free: 43.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004233/0.6558, allocations: 3.546 MB / 407.2 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.6571, allocations: 83.94 kB / 407.3 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.091e-05/0.6572, allocations: 48 kB / 407.4 MB, free: 39.25 MB / 298.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 () * 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: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002102/0.6574, allocations: 176.6 kB / 407.5 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.6576, allocations: 118.6 kB / 407.6 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/0.6593, allocations: 0.6879 MB / 408.3 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.927e-06/0.6594, allocations: 8 kB / 408.3 MB, free: 38.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.779e-06/0.6594, allocations: 4 kB / 408.3 MB, free: 38.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00138/0.6608, allocations: 0.9294 MB / 409.3 MB, free: 37.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003426/0.6642, allocations: 1.754 MB / 411 MB, free: 35.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.07e-06/0.6643, allocations: 4 kB / 411 MB, free: 35.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006559/0.6649, allocations: 116.1 kB / 411.1 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005743/0.6655, allocations: 125.6 kB / 411.3 MB, free: 35.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-05/0.6656, allocations: 15.98 kB / 411.3 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003275/0.6689, allocations: 3.275 MB / 414.6 MB, free: 31.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.006e-06/0.6689, allocations: 4.031 kB / 414.6 MB, free: 31.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002108/0.6711, allocations: 1.117 MB / 415.7 MB, free: 30.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006056/0.6717, allocations: 247.6 kB / 415.9 MB, free: 30.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.6719, allocations: 15.98 kB / 415.9 MB, free: 30.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007753/0.6727, allocations: 47.97 kB / 416 MB, free: 30.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.6729, allocations: 60.42 kB / 416 MB, free: 29.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.157e-05/0.673, allocations: 20 kB / 416.1 MB, free: 29.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001157/0.6741, allocations: 0.6904 MB / 416.8 MB, free: 29.24 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.6e-07/0.6741, allocations: 0 / 416.8 MB, free: 29.24 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001509/0.6757, allocations: 360 kB / 417.1 MB, free: 28.89 MB / 298.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) * 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.0005148/0.6762, allocations: 351.6 kB / 417.5 MB, free: 28.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.6784, allocations: 1.023 MB / 418.5 MB, free: 27.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.755e-06/0.6784, allocations: 0 / 418.5 MB, free: 27.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009122/0.6793, allocations: 0.5236 MB / 419 MB, free: 26.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/0.681, allocations: 302.2 kB / 419.3 MB, free: 26.63 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.6846, allocations: 1.66 MB / 421 MB, free: 24.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006016/0.6852, allocations: 1.105 MB / 422.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.6856, allocations: 87.42 kB / 422.1 MB, free: 23.69 MB / 298.7 MB Notification: Performance of SimCode: time 1.806e-06/0.6856, allocations: 0 / 422.1 MB, free: 23.69 MB / 298.7 MB Notification: Performance of Templates: time 0.03291/0.7185, allocations: 25.64 MB / 447.8 MB, free: 14.05 MB / 314.7 MB