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.0007471/0.0007471, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001015/0.001762, allocations: 449.7 kB / 10.37 MB, free: 328 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.0006891/0.0006891, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009658/0.001655, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9785/0.9785, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08342/1.062, allocations: 53.65 MB / 243.3 MB, free: 15.59 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.052e-06/1.052e-06, allocations: 0 / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.957e-05/2.062e-05, allocations: 6.25 kB / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008661/0.008682, allocations: 9.476 MB / 254 MB, free: 4.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005614/0.0143, allocations: 3.212 MB / 257.2 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001087/0.01538, allocations: 31.88 kB / 257.3 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.01677, allocations: 0.582 MB / 257.8 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001331/0.0181, allocations: 0.6161 MB / 258.5 MB, free: 332 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006097/0.01871, allocations: 323.4 kB / 258.8 MB, free: 8 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.02053, allocations: 1.844 MB / 260.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006258/0.02116, allocations: 437.3 kB / 261 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.0228, allocations: 1.22 MB / 262.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007972/0.0236, allocations: 0.5647 MB / 262.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002118/0.02381, allocations: 156 kB / 263 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003873/0.0242, allocations: 196 kB / 263.2 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001957/0.02439, allocations: 251.1 kB / 263.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005242/0.02492, allocations: 487.1 kB / 263.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.02617, allocations: 1.086 MB / 265 MB, free: 9.734 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.877e-05/0.02619, allocations: 0 / 265 MB, free: 9.734 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.02619, allocations: 0 / 265 MB, free: 9.734 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.239e-05/0.02623, allocations: 0 / 265 MB, free: 9.734 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.002516/0.02875, allocations: 2.019 MB / 267 MB, free: 7.668 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.02878, allocations: 12.03 kB / 267 MB, free: 7.656 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004991/0.02928, allocations: 313.8 kB / 267.3 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009368/0.03022, allocations: 0.5943 MB / 267.9 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.03035, allocations: 167.8 kB / 268.1 MB, free: 6.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.03048, allocations: 112.4 kB / 268.2 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.03161, allocations: 1.265 MB / 269.4 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.413e-05/0.03165, allocations: 7.891 kB / 269.5 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.03171, allocations: 48 kB / 269.5 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.03173, allocations: 28 kB / 269.5 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004923/0.03222, allocations: 301.7 kB / 269.8 MB, free: 4.574 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/0.03589, allocations: 2.686 MB / 272.5 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007126/0.03661, allocations: 354 kB / 272.9 MB, free: 1.395 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.03676, allocations: 106.8 kB / 273 MB, free: 1.289 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/0.0368, allocations: 24.42 kB / 273 MB, free: 1.266 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.03708, allocations: 211.9 kB / 273.2 MB, free: 1.035 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.765e-06/0.03708, allocations: 0 / 273.2 MB, free: 1.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002168/0.03925, allocations: 1.102 MB / 274.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.03929, allocations: 64.06 kB / 274.4 MB, free: 15.82 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007859/0.04008, allocations: 0.8422 MB / 275.2 MB, free: 14.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.04012, allocations: 37.7 kB / 275.2 MB, free: 14.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.04043, allocations: 0.5481 MB / 275.8 MB, free: 14.36 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.04058, allocations: 245.9 kB / 276 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.04079, allocations: 202.8 kB / 276.2 MB, free: 13.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.04089, allocations: 345.9 kB / 276.6 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.04107, allocations: 142 kB / 276.7 MB, free: 13.42 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000545/0.04161, allocations: 1.009 MB / 277.7 MB, free: 12.09 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.04223, allocations: 0.6871 MB / 278.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.04224, allocations: 4 kB / 278.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0009295/0.04317, allocations: 0.7554 MB / 279.2 MB, free: 10.44 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/0.04322, allocations: 67.34 kB / 279.2 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.04324, allocations: 15.98 kB / 279.2 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003592/0.0436, allocations: 130 kB / 279.4 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005561/0.04415, allocations: 243.6 kB / 279.6 MB, free: 9.973 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002467/0.04662, allocations: 3.018 MB / 282.6 MB, free: 6.797 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005407/0.04716, allocations: 55.94 kB / 282.7 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.345e-05/0.04722, allocations: 43.98 kB / 282.7 MB, free: 6.699 MB / 282.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.0002407/0.04746, allocations: 185.7 kB / 282.9 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.04757, allocations: 87.91 kB / 283 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005893/0.04816, allocations: 397.6 kB / 283.4 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.04816, allocations: 11.94 kB / 283.4 MB, free: 6 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.04817, allocations: 0 / 283.4 MB, free: 6 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005236/0.04869, allocations: 0.6701 MB / 284 MB, free: 5.219 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.05001, allocations: 0.9258 MB / 285 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.05001, allocations: 0 / 285 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003719/0.05039, allocations: 141.8 kB / 285.1 MB, free: 4.109 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002358/0.05062, allocations: 103.3 kB / 285.2 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002659/0.05089, allocations: 105.6 kB / 285.3 MB, free: 3.898 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.672e-05/0.05091, allocations: 12 kB / 285.3 MB, free: 3.887 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001953/0.05287, allocations: 2.85 MB / 288.2 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.05287, allocations: 3.938 kB / 288.2 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006745/0.05355, allocations: 0.5885 MB / 288.8 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.05365, allocations: 16 kB / 288.8 MB, free: 220 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.05401, allocations: 35.97 kB / 288.8 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.765e-05/0.0541, allocations: 48.41 kB / 288.9 MB, free: 136 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.05413, allocations: 23.92 kB / 288.9 MB, free: 112 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.1026/0.1567, allocations: 408.7 kB / 289.3 MB, free: 33.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1567, allocations: 2.312 kB / 289.3 MB, free: 33.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001093/0.1578, allocations: 312 kB / 289.6 MB, free: 33.24 MB / 282.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.0002114/0.158, allocations: 109.4 kB / 289.7 MB, free: 33.17 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.159, allocations: 0.881 MB / 290.6 MB, free: 32.74 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-05/0.1591, allocations: 20.39 kB / 290.6 MB, free: 32.74 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003972/0.1595, allocations: 448.1 kB / 291 MB, free: 32.5 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008788/0.1604, allocations: 392.2 kB / 291.4 MB, free: 32.49 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.173, allocations: 2.087 MB / 293.5 MB, free: 31.49 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.1732, allocations: 215.7 kB / 293.7 MB, free: 31.41 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005146/0.1737, allocations: 133.5 kB / 293.9 MB, free: 31.4 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000564/0.1743, allocations: 360.1 kB / 294.2 MB, free: 31.35 MB / 282.7 MB Notification: Performance of SimCode: time 1.844e-06/0.1743, allocations: 0 / 294.2 MB, free: 31.35 MB / 282.7 MB Notification: Performance of Templates: time 0.02489/0.1991, allocations: 19.81 MB / 314 MB, free: 21.16 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 4.710288662463427]