Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00168/0.002732, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001577/0.002716, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9747/0.9747, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08695/1.062, allocations: 53.65 MB / 243.4 MB, free: 15.53 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.737e-05/2.877e-05, allocations: 6.312 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008573/0.008602, allocations: 9.475 MB / 254.2 MB, free: 4.691 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005085/0.01369, allocations: 3.212 MB / 257.4 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007473/0.01443, allocations: 31.81 kB / 257.4 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.01554, allocations: 0.5821 MB / 258 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009013/0.01644, allocations: 0.6122 MB / 258.6 MB, free: 240 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.01694, allocations: 323.4 kB / 259 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.01833, allocations: 1.848 MB / 260.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005102/0.01884, allocations: 437.3 kB / 261.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.02012, allocations: 1.224 MB / 262.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005985/0.02072, allocations: 0.5648 MB / 263 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000144/0.02086, allocations: 160 kB / 263.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002708/0.02113, allocations: 196 kB / 263.4 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.02128, allocations: 247.1 kB / 263.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003541/0.02164, allocations: 479.1 kB / 264.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008926/0.02253, allocations: 1.086 MB / 265.2 MB, free: 9.648 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.341e-05/0.02254, allocations: 4 kB / 265.2 MB, free: 9.645 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.02254, allocations: 0 / 265.2 MB, free: 9.645 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.02256, allocations: 0 / 265.2 MB, free: 9.645 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.001757/0.02432, allocations: 2.027 MB / 267.2 MB, free: 7.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.02435, allocations: 8.031 kB / 267.2 MB, free: 7.562 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000356/0.0247, allocations: 329.8 kB / 267.5 MB, free: 7.223 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006531/0.02536, allocations: 0.5749 MB / 268.1 MB, free: 6.613 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.45e-05/0.02545, allocations: 163.8 kB / 268.3 MB, free: 6.434 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.02555, allocations: 116.4 kB / 268.4 MB, free: 6.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008256/0.02638, allocations: 1.275 MB / 269.6 MB, free: 4.852 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.738e-05/0.02641, allocations: 11.88 kB / 269.7 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.171e-05/0.02646, allocations: 52 kB / 269.7 MB, free: 4.789 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.02647, allocations: 24 kB / 269.7 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.02682, allocations: 293.8 kB / 270 MB, free: 4.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.02935, allocations: 2.686 MB / 272.7 MB, free: 1.652 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005307/0.02988, allocations: 347.3 kB / 273 MB, free: 1.301 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.03, allocations: 110.8 kB / 273.2 MB, free: 1.191 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.03003, allocations: 16.44 kB / 273.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.03026, allocations: 219.8 kB / 273.4 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 1.733e-06/0.03026, allocations: 0 / 273.4 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.1124/0.1427, allocations: 1.096 MB / 274.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.1427, allocations: 62.5 kB / 274.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009736/0.1437, allocations: 0.8431 MB / 275.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.1438, allocations: 40.3 kB / 275.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004122/0.1442, allocations: 0.5529 MB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.1444, allocations: 243.7 kB / 276.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002236/0.1446, allocations: 202.1 kB / 276.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.513e-05/0.1447, allocations: 350.9 kB / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.1448, allocations: 145.6 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004829/0.1453, allocations: 1.003 MB / 277.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006158/0.1459, allocations: 0.7298 MB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-05/0.146, allocations: 3.844 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001035/0.147, allocations: 0.7578 MB / 279.4 MB, free: 11.67 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.091e-05/0.1471, allocations: 66.78 kB / 279.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/0.1471, allocations: 14.56 kB / 279.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004203/0.1475, allocations: 132.8 kB / 279.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004873/0.148, allocations: 240.6 kB / 279.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/0.1501, allocations: 3.006 MB / 282.8 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.1506, allocations: 62.38 kB / 282.9 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.1506, allocations: 38.83 kB / 282.9 MB, free: 9.156 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.0002204/0.1509, allocations: 184 kB / 283.1 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.151, allocations: 88.33 kB / 283.2 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000543/0.1515, allocations: 405 kB / 283.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.1515, allocations: 11.25 kB / 283.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.1515, allocations: 0.7969 kB / 283.6 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004103/0.1519, allocations: 0.6687 MB / 284.3 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.1532, allocations: 0.9338 MB / 285.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.1532, allocations: 1.406 kB / 285.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/0.1535, allocations: 127.6 kB / 285.3 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002145/0.1538, allocations: 106.5 kB / 285.4 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002673/0.154, allocations: 101.6 kB / 285.5 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.154, allocations: 13.41 kB / 285.6 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/0.1556, allocations: 2.852 MB / 288.4 MB, free: 5.621 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.1556, allocations: 11.05 kB / 288.4 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006744/0.1563, allocations: 0.5895 MB / 289 MB, free: 5.387 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.868e-05/0.1564, allocations: 22.27 kB / 289 MB, free: 5.387 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.1567, allocations: 33.83 kB / 289.1 MB, free: 5.387 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.1568, allocations: 54.72 kB / 289.1 MB, free: 5.387 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.1568, allocations: 14.05 kB / 289.1 MB, free: 5.387 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004798/0.1573, allocations: 411.1 kB / 289.5 MB, free: 5.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1573, allocations: 4 kB / 289.5 MB, free: 5.336 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008866/0.1582, allocations: 305.7 kB / 289.8 MB, free: 5.336 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.0001989/0.1584, allocations: 123.3 kB / 290 MB, free: 5.266 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.1594, allocations: 0.9029 MB / 290.9 MB, free: 4.801 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.613e-05/0.1594, allocations: 18.92 kB / 290.9 MB, free: 4.801 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005337/0.1599, allocations: 483.2 kB / 291.3 MB, free: 4.551 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.1612, allocations: 2.818 MB / 294.2 MB, free: 1.691 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/0.1734, allocations: 2.077 MB / 296.2 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.1735, allocations: 211.3 kB / 296.4 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004563/0.174, allocations: 133.2 kB / 296.6 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004786/0.1745, allocations: 368.9 kB / 296.9 MB, free: 484 kB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1745, allocations: 0 / 296.9 MB, free: 484 kB / 266.7 MB Notification: Performance of Templates: time 0.02387/0.1983, allocations: 19.78 MB / 316.7 MB, free: 1.266 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 4.769345668144524]