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.001025/0.001025, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001238/0.002263, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0007387/0.0007387, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009964/0.001735, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 1.003/1.003, allocations: 177.5 MB / 190.1 MB, free: 4.781 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08096/1.084, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.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.032e-06/1.032e-06, allocations: 0 / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.604e-05/1.707e-05, allocations: 2.312 kB / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007094/0.007112, allocations: 9.479 MB / 254.7 MB, free: 4.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005112/0.01222, allocations: 3.22 MB / 257.9 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008749/0.0131, allocations: 31.88 kB / 258 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.01444, allocations: 0.5742 MB / 258.5 MB, free: 184 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.01557, allocations: 0.6123 MB / 259.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004982/0.01607, allocations: 327.3 kB / 259.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.01758, allocations: 1.84 MB / 261.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005051/0.01808, allocations: 437.3 kB / 261.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001298/0.01938, allocations: 1.212 MB / 262.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006561/0.02004, allocations: 0.5764 MB / 263.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.02023, allocations: 156 kB / 263.7 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003322/0.02057, allocations: 199.9 kB / 263.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.02071, allocations: 255.1 kB / 264.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003749/0.02108, allocations: 483.1 kB / 264.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.02222, allocations: 1.082 MB / 265.7 MB, free: 8.965 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.231e-05/0.02223, allocations: 0 / 265.7 MB, free: 8.965 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.02223, allocations: 0 / 265.7 MB, free: 8.965 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.569e-05/0.02227, allocations: 0 / 265.7 MB, free: 8.965 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.001885/0.02415, allocations: 2.015 MB / 267.7 MB, free: 6.902 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.02418, allocations: 12.62 kB / 267.7 MB, free: 6.891 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003951/0.02458, allocations: 325.8 kB / 268 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007177/0.0253, allocations: 0.5903 MB / 268.6 MB, free: 5.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.0254, allocations: 163.8 kB / 268.8 MB, free: 5.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.722e-05/0.0255, allocations: 120.4 kB / 268.9 MB, free: 5.633 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008532/0.02635, allocations: 1.265 MB / 270.1 MB, free: 4.172 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.02638, allocations: 11.89 kB / 270.2 MB, free: 4.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.709e-05/0.02642, allocations: 40 kB / 270.2 MB, free: 4.121 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.02644, allocations: 28 kB / 270.2 MB, free: 4.094 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003582/0.0268, allocations: 301.8 kB / 270.5 MB, free: 3.801 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002889/0.02969, allocations: 2.678 MB / 273.2 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005605/0.03025, allocations: 343.6 kB / 273.5 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.03036, allocations: 118.8 kB / 273.7 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.0304, allocations: 20.41 kB / 273.7 MB, free: 0.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.03063, allocations: 211.9 kB / 273.9 MB, free: 280 kB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.325e-06/0.03063, allocations: 0 / 273.9 MB, free: 280 kB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.001813/0.03244, allocations: 1.118 MB / 275 MB, free: 15.12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.03248, allocations: 64.06 kB / 275.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005739/0.03305, allocations: 0.8422 MB / 275.9 MB, free: 14.18 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.03308, allocations: 37.7 kB / 275.9 MB, free: 14.14 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.03332, allocations: 0.5481 MB / 276.5 MB, free: 13.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.03344, allocations: 249.9 kB / 276.7 MB, free: 13.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.0336, allocations: 194.8 kB / 276.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.03368, allocations: 349.9 kB / 277.3 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.03381, allocations: 142 kB / 277.4 MB, free: 12.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004203/0.03423, allocations: 1.009 MB / 278.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004997/0.03473, allocations: 0.7306 MB / 279.1 MB, free: 10.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.03473, allocations: 4 kB / 279.1 MB, free: 10.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0008371/0.03557, allocations: 0.7512 MB / 279.9 MB, free: 9.617 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.5e-05/0.03561, allocations: 67.39 kB / 280 MB, free: 9.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.03563, allocations: 16.56 kB / 280 MB, free: 9.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000303/0.03593, allocations: 136.9 kB / 280.1 MB, free: 9.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004125/0.03634, allocations: 239.6 kB / 280.3 MB, free: 9.152 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.03834, allocations: 3.013 MB / 283.4 MB, free: 5.977 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004292/0.03877, allocations: 59.94 kB / 283.4 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.6e-05/0.0388, allocations: 39.98 kB / 283.5 MB, free: 5.879 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.0002113/0.03901, allocations: 189.7 kB / 283.6 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-05/0.03909, allocations: 87.91 kB / 283.7 MB, free: 5.598 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004606/0.03956, allocations: 405.6 kB / 284.1 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.03956, allocations: 7.938 kB / 284.1 MB, free: 5.176 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.03956, allocations: 0 / 284.1 MB, free: 5.176 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004124/0.03998, allocations: 0.6662 MB / 284.8 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.04102, allocations: 0.9337 MB / 285.7 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.04102, allocations: 4 kB / 285.7 MB, free: 3.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002743/0.04129, allocations: 125.4 kB / 285.9 MB, free: 3.289 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.04148, allocations: 103.3 kB / 286 MB, free: 3.188 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002212/0.0417, allocations: 109.5 kB / 286.1 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.04172, allocations: 16 kB / 286.1 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.04357, allocations: 2.85 MB / 288.9 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.04357, allocations: 12.09 kB / 288.9 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1422/0.1858, allocations: 0.572 MB / 289.5 MB, free: 32.57 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.1859, allocations: 17.62 kB / 289.5 MB, free: 32.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003418/0.1863, allocations: 34.31 kB / 289.6 MB, free: 32.57 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.1864, allocations: 60.33 kB / 289.6 MB, free: 32.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.1864, allocations: 15.38 kB / 289.6 MB, free: 32.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004845/0.1869, allocations: 409.3 kB / 290 MB, free: 32.53 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1869, allocations: 2.062 kB / 290 MB, free: 32.53 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008971/0.1878, allocations: 312 kB / 290.3 MB, free: 32.53 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.0001986/0.188, allocations: 114.5 kB / 290.5 MB, free: 32.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.189, allocations: 0.897 MB / 291.4 MB, free: 32.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.427e-05/0.1891, allocations: 22.02 kB / 291.4 MB, free: 32.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004501/0.1895, allocations: 484.8 kB / 291.8 MB, free: 31.78 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.1909, allocations: 2.812 MB / 294.7 MB, free: 28.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/0.2032, allocations: 2.082 MB / 296.7 MB, free: 27.96 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.2034, allocations: 212.9 kB / 296.9 MB, free: 27.88 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005017/0.2039, allocations: 136.4 kB / 297.1 MB, free: 27.85 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000625/0.2046, allocations: 367.8 kB / 297.4 MB, free: 27.8 MB / 282.7 MB Notification: Performance of SimCode: time 2.054e-06/0.2046, allocations: 0 / 297.4 MB, free: 27.8 MB / 282.7 MB Notification: Performance of Templates: time 0.02273/0.2273, allocations: 19.75 MB / 317.2 MB, free: 16.95 MB / 282.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 4.346194541081786]