Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.736/1.736, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003588, allocations: 8 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08028/0.08067, allocations: 44.51 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3505/0.4312, allocations: 94.48 MB / 402.9 MB, free: 18.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.4316, allocations: 87.67 kB / 403 MB, free: 18.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1113/0.5429, allocations: 30.29 MB / 433.3 MB, free: 4.945 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.412e-06/0.543, allocations: 0 / 433.3 MB, free: 4.945 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.864e-05/0.5431, allocations: 24 kB / 433.3 MB, free: 4.922 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.003221/0.5463, allocations: 1.537 MB / 434.9 MB, free: 3.418 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.5464, allocations: 8.031 kB / 434.9 MB, free: 3.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007639/0.5471, allocations: 206.4 kB / 435.1 MB, free: 3.207 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.549, allocations: 0.8388 MB / 435.9 MB, free: 2.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.5492, allocations: 116.1 kB / 436 MB, free: 2.414 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001818/0.5493, allocations: 111.6 kB / 436.1 MB, free: 2.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.5517, allocations: 1.132 MB / 437.3 MB, free: 1.465 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.653e-05/0.5518, allocations: 7.406 kB / 437.3 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/0.5519, allocations: 48.06 kB / 437.3 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3e-05/0.5519, allocations: 31.95 kB / 437.4 MB, free: 1.414 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.5539, allocations: 0.7753 MB / 438.1 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00791/0.5619, allocations: 3.918 MB / 442.1 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.564, allocations: 0.5993 MB / 442.7 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.189e-05/0.5641, allocations: 24.17 kB / 442.7 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008321/0.5649, allocations: 306.6 kB / 443 MB, free: 13.01 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 4.54e-06/0.5649, allocations: 0 / 443 MB, free: 13.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.006384/0.5713, allocations: 2.106 MB / 445.1 MB, free: 11.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003045/0.5717, allocations: 475.2 kB / 445.5 MB, free: 10.65 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00197/0.5737, allocations: 0.9195 MB / 446.5 MB, free: 9.961 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001627/0.5739, allocations: 44.52 kB / 446.5 MB, free: 9.922 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006056/0.5745, allocations: 0.6308 MB / 447.1 MB, free: 9.473 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002833/0.5748, allocations: 232.7 kB / 447.4 MB, free: 9.277 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.045e-05/0.5749, allocations: 26 kB / 447.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.5751, allocations: 348.6 kB / 447.7 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007929/0.5759, allocations: 255 kB / 448 MB, free: 8.766 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.5771, allocations: 0.7167 MB / 448.7 MB, free: 7.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009847/0.5781, allocations: 409.2 kB / 449.1 MB, free: 7.672 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.718e-06/0.5781, allocations: 4 kB / 449.1 MB, free: 7.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003182/0.5813, allocations: 1.091 MB / 450.2 MB, free: 6.812 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.5815, allocations: 63.41 kB / 450.3 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.372e-05/0.5815, allocations: 12 kB / 450.3 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009141/0.5825, allocations: 175.4 kB / 450.4 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000983/0.5835, allocations: 214.7 kB / 450.6 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00583/0.5893, allocations: 3.6 MB / 454.2 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.5907, allocations: 79.98 kB / 454.3 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.5908, allocations: 48 kB / 454.4 MB, free: 2.68 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 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008013/0.5916, allocations: 297.4 kB / 454.7 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002389/0.5919, allocations: 130.4 kB / 454.8 MB, free: 2.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.594, allocations: 0.727 MB / 455.5 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.5941, allocations: 8.047 kB / 455.5 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.447e-06/0.5941, allocations: 3.984 kB / 455.5 MB, free: 1.488 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001895/0.596, allocations: 0.9608 MB / 456.5 MB, free: 424 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00457/0.6006, allocations: 1.797 MB / 458.3 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.6007, allocations: 4 kB / 458.3 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006925/0.6014, allocations: 112.1 kB / 458.4 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006657/0.6021, allocations: 130.1 kB / 458.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.051e-05/0.6022, allocations: 19.92 kB / 458.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004918/0.6071, allocations: 3.314 MB / 461.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.367e-06/0.6071, allocations: 4 kB / 461.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003057/0.6102, allocations: 1.187 MB / 463.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007546/0.611, allocations: 251.6 kB / 463.3 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002496/0.6113, allocations: 23.95 kB / 463.3 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007702/0.6121, allocations: 43.97 kB / 463.4 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.6123, allocations: 56.47 kB / 463.4 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-05/0.6123, allocations: 20 kB / 463.4 MB, free: 9.008 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001505/0.6138, allocations: 0.7008 MB / 464.1 MB, free: 8.301 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.6139, allocations: 0 / 464.1 MB, free: 8.301 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00178/0.6156, allocations: 360.1 kB / 464.5 MB, free: 7.949 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.0006462/0.6163, allocations: 355.2 kB / 464.8 MB, free: 7.602 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002821/0.6192, allocations: 1.116 MB / 466 MB, free: 6.438 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.753e-06/0.6192, allocations: 8.875 kB / 466 MB, free: 6.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.6205, allocations: 0.5512 MB / 466.5 MB, free: 5.855 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/0.6224, allocations: 304.6 kB / 466.8 MB, free: 5.555 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005675/0.6281, allocations: 2.741 MB / 469.6 MB, free: 2.754 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.6292, allocations: 1.109 MB / 470.7 MB, free: 1.613 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.6296, allocations: 83.38 kB / 470.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of SimCode: time 2.193e-06/0.6296, allocations: 0 / 470.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of Templates: time 0.04275/0.6724, allocations: 25.66 MB / 496.4 MB, free: 7.875 MB / 378.7 MB