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.0009914/0.0009914, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001066/0.001066, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 18.57 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 1.034/1.034, allocations: 177.1 MB / 205.3 MB, free: 4.488 MB / 186.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.353e-06/1.353e-06, allocations: 0 / 273.5 MB, free: 4.355 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.421e-05/1.556e-05, allocations: 2.312 kB / 273.5 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007445/0.007461, allocations: 9.421 MB / 282.9 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003719/0.01118, allocations: 3.188 MB / 286.1 MB, free: 7.711 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003957/0.01158, allocations: 31.88 kB / 286.2 MB, free: 7.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009709/0.01255, allocations: 0.5819 MB / 286.7 MB, free: 7.094 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007904/0.01334, allocations: 0.6085 MB / 287.4 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003871/0.01372, allocations: 323.4 kB / 287.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.01488, allocations: 1.832 MB / 289.5 MB, free: 4.324 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004783/0.01535, allocations: 441.2 kB / 289.9 MB, free: 3.855 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008735/0.01623, allocations: 1.044 MB / 291 MB, free: 2.809 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00053/0.01676, allocations: 0.5609 MB / 291.5 MB, free: 2.246 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.01689, allocations: 159.9 kB / 291.7 MB, free: 2.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000241/0.01713, allocations: 204 kB / 291.9 MB, free: 1.891 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.0173, allocations: 342.7 kB / 292.2 MB, free: 1.555 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003605/0.01766, allocations: 0.5534 MB / 292.8 MB, free: 1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009156/0.01858, allocations: 1.164 MB / 293.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.01858, allocations: 0 / 293.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.01858, allocations: 0 / 293.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.01859, allocations: 0 / 293.9 MB, free: 15.83 MB / 282.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.001562/0.02015, allocations: 1.71 MB / 295.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.02018, allocations: 8.031 kB / 295.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003405/0.02052, allocations: 244.7 kB / 295.9 MB, free: 13.83 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006658/0.02119, allocations: 0.5788 MB / 296.5 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.02129, allocations: 167.8 kB / 296.6 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.684e-05/0.02139, allocations: 116.3 kB / 296.8 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008496/0.02224, allocations: 1.273 MB / 298 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.731e-05/0.02227, allocations: 11.83 kB / 298 MB, free: 11.44 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.776e-05/0.02231, allocations: 48 kB / 298.1 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.02233, allocations: 28 kB / 298.1 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003692/0.0227, allocations: 293.8 kB / 298.4 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.02542, allocations: 2.674 MB / 301.1 MB, free: 8.262 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005971/0.02602, allocations: 342.7 kB / 301.4 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.02614, allocations: 110.8 kB / 301.5 MB, free: 7.809 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.02618, allocations: 24.38 kB / 301.5 MB, free: 7.785 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.02639, allocations: 215.9 kB / 301.8 MB, free: 7.555 MB / 282.7 MB Notification: Performance of pre-optimization done (n=62): time 2.054e-06/0.02639, allocations: 0 / 301.8 MB, free: 7.555 MB / 282.7 MB Notification: Performance of matching and sorting (n=65): time 0.001671/0.02807, allocations: 1.094 MB / 302.9 MB, free: 6.426 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.02821, allocations: 479.3 kB / 303.3 MB, free: 5.848 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005898/0.0288, allocations: 0.8384 MB / 304.2 MB, free: 4.988 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.02883, allocations: 41.7 kB / 304.2 MB, free: 4.941 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.02908, allocations: 0.548 MB / 304.7 MB, free: 4.387 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.02921, allocations: 249.9 kB / 305 MB, free: 4.141 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.02938, allocations: 190.8 kB / 305.2 MB, free: 3.949 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.02948, allocations: 345.9 kB / 305.5 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.02961, allocations: 149.9 kB / 305.7 MB, free: 3.445 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005096/0.03012, allocations: 1.009 MB / 306.7 MB, free: 2.117 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004911/0.03061, allocations: 0.691 MB / 307.4 MB, free: 1.254 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.03062, allocations: 4 kB / 307.4 MB, free: 1.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0007086/0.03133, allocations: 0.7515 MB / 308.1 MB, free: 472 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.567e-05/0.03137, allocations: 67.39 kB / 308.2 MB, free: 392 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.03138, allocations: 12 kB / 308.2 MB, free: 380 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002916/0.03167, allocations: 136.5 kB / 308.3 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003881/0.03206, allocations: 219.6 kB / 308.5 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/0.03409, allocations: 3.015 MB / 311.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.03443, allocations: 59.92 kB / 311.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.03447, allocations: 39.94 kB / 311.7 MB, free: 12.74 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 (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.0001805/0.03465, allocations: 189.7 kB / 311.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.03473, allocations: 91.89 kB / 311.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004498/0.03518, allocations: 401.7 kB / 312.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.03519, allocations: 7.938 kB / 312.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.03519, allocations: 4 kB / 312.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004508/0.03564, allocations: 0.67 MB / 313 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.03668, allocations: 0.9258 MB / 313.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.03669, allocations: 4 kB / 313.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002764/0.03696, allocations: 120.1 kB / 314 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002295/0.03719, allocations: 93.62 kB / 314.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.03722, allocations: 27.92 kB / 314.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00163/0.03885, allocations: 2.846 MB / 317 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.03885, allocations: 7.938 kB / 317 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005179/0.03937, allocations: 0.5885 MB / 317.6 MB, free: 6.375 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.03954, allocations: 99.28 kB / 317.7 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.346e-05/0.0396, allocations: 16 kB / 317.7 MB, free: 6.262 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.03985, allocations: 35.97 kB / 317.8 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.69e-05/0.03992, allocations: 60.33 kB / 317.8 MB, free: 6.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.03994, allocations: 15.94 kB / 317.8 MB, free: 6.152 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003032/0.04025, allocations: 406.9 kB / 318.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04025, allocations: 0 / 318.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005597/0.04081, allocations: 319.9 kB / 318.5 MB, free: 5.43 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.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.0001561/0.04096, allocations: 112.2 kB / 318.7 MB, free: 5.309 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.04201, allocations: 0.8866 MB / 319.5 MB, free: 4.367 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.109e-05/0.04204, allocations: 20.5 kB / 319.6 MB, free: 4.348 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004619/0.0425, allocations: 445.7 kB / 320 MB, free: 3.887 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008367/0.04334, allocations: 291.3 kB / 320.3 MB, free: 3.609 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.04604, allocations: 1.964 MB / 322.2 MB, free: 1.578 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.0462, allocations: 205.7 kB / 322.4 MB, free: 1.355 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003495/0.04655, allocations: 132.7 kB / 322.6 MB, free: 1.223 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005078/0.04706, allocations: 365 kB / 322.9 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of SimCode: time 1.703e-06/0.04706, allocations: 0 / 322.9 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of Templates: time 0.02314/0.0702, allocations: 18.52 MB / 341.5 MB, free: 14.71 MB / 330.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 5.363706158008426]