Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001448/0.001448, allocations: 84.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00179/0.00179, allocations: 158.8 kB / 24.91 MB, free: 9.195 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9584/0.9584, allocations: 177 MB / 205.2 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.131e-05/2.268e-05, allocations: 2.312 kB / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007578/0.007601, allocations: 9.417 MB / 282.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004955/0.01256, allocations: 3.196 MB / 286.1 MB, free: 4.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.01356, allocations: 31.81 kB / 286.1 MB, free: 4.469 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.01484, allocations: 0.5742 MB / 286.7 MB, free: 3.891 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00121/0.01605, allocations: 0.6123 MB / 287.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005365/0.01659, allocations: 331.3 kB / 287.6 MB, free: 2.949 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001728/0.01831, allocations: 1.832 MB / 289.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006281/0.01894, allocations: 437.3 kB / 289.9 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1202/0.1391, allocations: 1.043 MB / 290.9 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.1405, allocations: 0.5641 MB / 291.5 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004252/0.1409, allocations: 156.5 kB / 291.6 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005366/0.1415, allocations: 202.5 kB / 291.8 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.1417, allocations: 338.3 kB / 292.1 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009364/0.1426, allocations: 0.5574 MB / 292.7 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001839/0.1445, allocations: 1.151 MB / 293.9 MB, free: 16.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1445, allocations: 2.375 kB / 293.9 MB, free: 16.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1445, allocations: 2.406 kB / 293.9 MB, free: 16.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.778e-05/0.1445, allocations: 0.5625 kB / 293.9 MB, free: 16.05 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002946/0.1475, allocations: 1.716 MB / 295.6 MB, free: 15.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.1475, allocations: 13.05 kB / 295.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006612/0.1482, allocations: 243.3 kB / 295.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.1492, allocations: 0.5838 MB / 296.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.1494, allocations: 171.2 kB / 296.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.1495, allocations: 116.9 kB / 296.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.1508, allocations: 1.267 MB / 298 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.983e-05/0.1508, allocations: 7.375 kB / 298 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.781e-05/0.1509, allocations: 50.33 kB / 298 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/0.1509, allocations: 25.62 kB / 298 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005887/0.1515, allocations: 292.1 kB / 298.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004054/0.1556, allocations: 2.677 MB / 301 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007647/0.1563, allocations: 347.6 kB / 301.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.1565, allocations: 108.8 kB / 301.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.1565, allocations: 18.81 kB / 301.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002873/0.1568, allocations: 221.6 kB / 301.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 3.216e-06/0.1568, allocations: 0 / 301.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002342/0.1592, allocations: 1.085 MB / 302.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/0.1593, allocations: 476.4 kB / 303.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008421/0.1601, allocations: 0.8447 MB / 304.1 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.1601, allocations: 40.64 kB / 304.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/0.1604, allocations: 0.5591 MB / 304.7 MB, free: 11.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.1606, allocations: 241.5 kB / 304.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.1608, allocations: 200.4 kB / 305.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.805e-05/0.1608, allocations: 353.1 kB / 305.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.161, allocations: 142.9 kB / 305.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003825/0.1614, allocations: 1.001 MB / 306.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000539/0.1619, allocations: 0.6912 MB / 307.3 MB, free: 9.121 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.1619, allocations: 3.5 kB / 307.3 MB, free: 9.121 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0008572/0.1628, allocations: 0.7485 MB / 308 MB, free: 8.926 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.1628, allocations: 67.73 kB / 308.1 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.1629, allocations: 15.75 kB / 308.1 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003489/0.1632, allocations: 125.6 kB / 308.2 MB, free: 8.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000522/0.1637, allocations: 237.8 kB / 308.5 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002018/0.1657, allocations: 3.005 MB / 311.5 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006527/0.1664, allocations: 59.88 kB / 311.5 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/0.1664, allocations: 37.97 kB / 311.6 MB, free: 6.395 MB / 266.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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002456/0.1667, allocations: 189.4 kB / 311.8 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.945e-05/0.1668, allocations: 94.09 kB / 311.9 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005313/0.1673, allocations: 393.3 kB / 312.2 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1673, allocations: 6.938 kB / 312.2 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1673, allocations: 14.06 kB / 312.3 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004353/0.1678, allocations: 0.6614 MB / 312.9 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.1691, allocations: 0.9339 MB / 313.9 MB, free: 5.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1691, allocations: 0 / 313.9 MB, free: 5.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003418/0.1694, allocations: 118.6 kB / 314 MB, free: 5.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002618/0.1697, allocations: 108 kB / 314.1 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/0.1697, allocations: 10.91 kB / 314.1 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001523/0.1713, allocations: 2.846 MB / 316.9 MB, free: 2.812 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.1713, allocations: 19.75 kB / 317 MB, free: 2.805 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005925/0.1718, allocations: 0.5805 MB / 317.5 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002356/0.1721, allocations: 107.2 kB / 317.6 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.176e-05/0.1722, allocations: 15 kB / 317.7 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.1725, allocations: 34.72 kB / 317.7 MB, free: 2.199 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.1726, allocations: 63.42 kB / 317.7 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.1727, allocations: 11.75 kB / 317.8 MB, free: 2.141 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003656/0.173, allocations: 414.4 kB / 318.2 MB, free: 1.777 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.173, allocations: 0 / 318.2 MB, free: 1.777 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009828/0.174, allocations: 307.9 kB / 318.5 MB, free: 1.477 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,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 (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001978/0.1742, allocations: 125.2 kB / 318.6 MB, free: 1.359 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009057/0.1751, allocations: 0.8743 MB / 319.5 MB, free: 496 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.569e-05/0.1751, allocations: 13 kB / 319.5 MB, free: 484 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.1755, allocations: 460.6 kB / 319.9 MB, free: 12 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009221/0.1764, allocations: 291.5 kB / 320.2 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.1797, allocations: 1.97 MB / 322.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.1799, allocations: 201.7 kB / 322.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004383/0.1804, allocations: 136.7 kB / 322.5 MB, free: 13.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000641/0.181, allocations: 360.2 kB / 322.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of SimCode: time 1.814e-06/0.181, allocations: 0 / 322.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of Templates: time 0.0247/0.2057, allocations: 18.51 MB / 341.4 MB, free: 11 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 4.823376293759793]