Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 2.162/2.162, allocations: 194.8 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.0003521, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09767/0.09805, allocations: 44.5 MB / 309.1 MB, free: 388 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5386/0.6367, allocations: 94.48 MB / 403.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003949/0.6371, allocations: 94.58 kB / 403.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1199/0.7571, allocations: 30.29 MB / 433.9 MB, free: 2.078 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.7571, allocations: 0 / 433.9 MB, free: 2.078 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.743e-05/0.7572, allocations: 24 kB / 433.9 MB, free: 2.055 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.004115/0.7614, allocations: 1.535 MB / 435.5 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.7614, allocations: 8.031 kB / 435.5 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009288/0.7624, allocations: 206.4 kB / 435.7 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/0.7648, allocations: 0.8407 MB / 436.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/0.7651, allocations: 120.5 kB / 436.6 MB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000264/0.7653, allocations: 108.1 kB / 436.7 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003168/0.7685, allocations: 1.137 MB / 437.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.684e-05/0.7686, allocations: 3.906 kB / 437.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.7688, allocations: 54.05 kB / 437.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-05/0.7688, allocations: 27.95 kB / 438 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002688/0.7715, allocations: 0.7774 MB / 438.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01011/0.7817, allocations: 3.913 MB / 442.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002842/0.7846, allocations: 0.6109 MB / 443.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.7847, allocations: 15.88 kB / 443.3 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.7859, allocations: 305.6 kB / 443.6 MB, free: 10.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.988e-06/0.7859, allocations: 0 / 443.6 MB, free: 10.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.008391/0.7943, allocations: 2.105 MB / 445.7 MB, free: 8.422 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002763/0.7946, allocations: 483.1 kB / 446.2 MB, free: 7.836 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002386/0.797, allocations: 1.047 MB / 447.2 MB, free: 7.055 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/0.7973, allocations: 40.39 kB / 447.2 MB, free: 7.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007603/0.798, allocations: 0.6431 MB / 447.9 MB, free: 6.598 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000407/0.7985, allocations: 233.6 kB / 448.1 MB, free: 6.402 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/0.7986, allocations: 19.69 kB / 448.1 MB, free: 6.398 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.7988, allocations: 347.7 kB / 448.5 MB, free: 6.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.7998, allocations: 255.9 kB / 448.7 MB, free: 5.898 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.8013, allocations: 0.7059 MB / 449.4 MB, free: 5.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.8027, allocations: 419.2 kB / 449.8 MB, free: 4.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.507e-05/0.8028, allocations: 4 kB / 449.8 MB, free: 4.805 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003795/0.8066, allocations: 1.162 MB / 451 MB, free: 3.801 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.148e-05/0.8067, allocations: 68.02 kB / 451.1 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.65e-05/0.8067, allocations: 12 kB / 451.1 MB, free: 3.711 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008922/0.8076, allocations: 175.2 kB / 451.3 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.8091, allocations: 215.6 kB / 451.5 MB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006542/0.8157, allocations: 3.612 MB / 455.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.8174, allocations: 80.2 kB / 455.2 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.8176, allocations: 47.98 kB / 455.2 MB, free: 15.33 MB / 346.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.000837/0.8185, allocations: 297.4 kB / 455.5 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003088/0.8188, allocations: 126.4 kB / 455.6 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002604/0.8214, allocations: 0.7309 MB / 456.3 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.8214, allocations: 4 kB / 456.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.8215, allocations: 0 / 456.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002166/0.8236, allocations: 0.9569 MB / 457.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005161/0.8288, allocations: 1.804 MB / 459.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.8289, allocations: 4.219 kB / 459.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009684/0.8299, allocations: 111.9 kB / 459.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007341/0.8306, allocations: 133.6 kB / 459.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-05/0.8307, allocations: 12 kB / 459.4 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005185/0.8359, allocations: 3.314 MB / 462.7 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/0.836, allocations: 7.969 kB / 462.7 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00362/0.8396, allocations: 1.093 MB / 463.8 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007938/0.8404, allocations: 255.6 kB / 464 MB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.8408, allocations: 16 kB / 464 MB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.8418, allocations: 47.86 kB / 464.1 MB, free: 5.883 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.842, allocations: 56.48 kB / 464.1 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.578e-05/0.8421, allocations: 27.98 kB / 464.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001751/0.8439, allocations: 0.7008 MB / 464.9 MB, free: 5.094 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.8439, allocations: 0 / 464.9 MB, free: 5.094 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002234/0.8462, allocations: 352.1 kB / 465.2 MB, free: 4.75 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.0008119/0.847, allocations: 355.5 kB / 465.6 MB, free: 4.434 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003512/0.8505, allocations: 1.119 MB / 466.7 MB, free: 3.266 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/0.8506, allocations: 4 kB / 466.7 MB, free: 3.262 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.8523, allocations: 0.5605 MB / 467.3 MB, free: 2.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002591/0.855, allocations: 300.3 kB / 467.5 MB, free: 2.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007512/0.8625, allocations: 2.702 MB / 470.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.8636, allocations: 1.109 MB / 471.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001359/0.865, allocations: 149.8 kB / 471.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003377/0.8654, allocations: 75.44 kB / 471.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.583e-06/0.8654, allocations: 4 kB / 471.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of Templates: time 0.05822/0.9236, allocations: 18.55 MB / 490.1 MB, free: 11.76 MB / 378.7 MB