Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.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.0009844/0.0009844, allocations: 85.95 kB / 23 MB, free: 1.5 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.001151/0.001151, allocations: 175.5 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9801/0.9801, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 252.3 MB, free: 7.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.779e-05/2.963e-05, allocations: 2.312 kB / 252.3 MB, free: 7.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.005847/0.005876, allocations: 5.451 MB / 257.8 MB, free: 1.699 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.006969, allocations: 0.6348 MB / 258.4 MB, free: 1.062 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.007154, allocations: 4 kB / 258.4 MB, free: 1.059 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003887/0.007543, allocations: 103.3 kB / 258.5 MB, free: 0.957 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005152/0.008058, allocations: 333.9 kB / 258.8 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005504/0.008609, allocations: 307.4 kB / 259.1 MB, free: 336 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001228/0.009837, allocations: 0.8755 MB / 260 MB, free: 15.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.01001, allocations: 76.75 kB / 260.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.01103, allocations: 0.6154 MB / 260.7 MB, free: 14.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003588/0.01139, allocations: 259.2 kB / 260.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.351e-05/0.01144, allocations: 28 kB / 261 MB, free: 14.47 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.01155, allocations: 36 kB / 261 MB, free: 14.44 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.065e-05/0.01164, allocations: 99.64 kB / 261.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.01176, allocations: 135.7 kB / 261.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003344/0.0121, allocations: 279.1 kB / 261.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.0121, allocations: 0 / 261.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.0121, allocations: 0 / 261.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.0121, allocations: 0 / 261.5 MB, free: 13.93 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006376/0.01274, allocations: 0.6168 MB / 262.1 MB, free: 13.28 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.01278, allocations: 15.98 kB / 262.1 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002424/0.01302, allocations: 88.44 kB / 262.2 MB, free: 13.18 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.01331, allocations: 236.1 kB / 262.5 MB, free: 12.92 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.01333, allocations: 16.88 kB / 262.5 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.01336, allocations: 28.38 kB / 262.5 MB, free: 12.88 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.01367, allocations: 401.5 kB / 262.9 MB, free: 12.41 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.01368, allocations: 4.125 kB / 262.9 MB, free: 12.41 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.0137, allocations: 16.12 kB / 262.9 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.01371, allocations: 4 kB / 262.9 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.01384, allocations: 103.3 kB / 263 MB, free: 12.29 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.01488, allocations: 1.387 MB / 264.4 MB, free: 10.85 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.01505, allocations: 118.7 kB / 264.5 MB, free: 10.72 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.98e-05/0.0151, allocations: 51.66 kB / 264.6 MB, free: 10.67 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.01512, allocations: 4.375 kB / 264.6 MB, free: 10.66 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.01514, allocations: 49.33 kB / 264.6 MB, free: 10.61 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.01514, allocations: 0 / 264.6 MB, free: 10.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.001263/0.01641, allocations: 0.6533 MB / 265.3 MB, free: 9.906 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.01643, allocations: 59.39 kB / 265.3 MB, free: 9.836 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.01659, allocations: 274.5 kB / 265.6 MB, free: 9.551 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.01661, allocations: 33.7 kB / 265.6 MB, free: 9.512 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.01671, allocations: 231.1 kB / 265.9 MB, free: 9.281 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.244e-05/0.01676, allocations: 99.16 kB / 266 MB, free: 9.184 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.187e-05/0.01683, allocations: 75.31 kB / 266 MB, free: 9.102 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.01698, allocations: 0.504 MB / 266.5 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.026e-05/0.01703, allocations: 39.91 kB / 266.6 MB, free: 8.547 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.01715, allocations: 167.6 kB / 266.7 MB, free: 8.328 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.01739, allocations: 235.7 kB / 267 MB, free: 8.043 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01739, allocations: 0 / 267 MB, free: 8.043 MB / 250.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003681/0.01776, allocations: 300.7 kB / 267.3 MB, free: 7.734 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.01778, allocations: 7.984 kB / 267.3 MB, free: 7.727 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.01778, allocations: 4 kB / 267.3 MB, free: 7.723 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/0.01793, allocations: 59.31 kB / 267.3 MB, free: 7.656 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.0181, allocations: 67.91 kB / 267.4 MB, free: 7.59 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.01984, allocations: 3.493 MB / 270.9 MB, free: 3.867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.01995, allocations: 8 kB / 270.9 MB, free: 3.859 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.01997, allocations: 12 kB / 270.9 MB, free: 3.848 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.02007, allocations: 180.4 kB / 271.1 MB, free: 3.66 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.02011, allocations: 31.86 kB / 271.1 MB, free: 3.629 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.759e-05/0.02015, allocations: 33.95 kB / 271.2 MB, free: 3.594 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.02015, allocations: 7.938 kB / 271.2 MB, free: 3.586 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.02016, allocations: 0 / 271.2 MB, free: 3.586 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003173/0.02047, allocations: 0.4954 MB / 271.7 MB, free: 3 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005516/0.02103, allocations: 0.5325 MB / 272.2 MB, free: 2.426 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.02103, allocations: 3.984 kB / 272.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.02114, allocations: 47.92 kB / 272.2 MB, free: 2.375 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001635/0.02131, allocations: 47.66 kB / 272.3 MB, free: 2.324 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.02132, allocations: 7.984 kB / 272.3 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.02268, allocations: 1.764 MB / 274.1 MB, free: 444 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.02268, allocations: 0 / 274.1 MB, free: 444 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.02312, allocations: 408.7 kB / 274.5 MB, free: 8 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.81e-05/0.02318, allocations: 20.03 kB / 274.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.02321, allocations: 8 kB / 274.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.02331, allocations: 4 kB / 274.5 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.02336, allocations: 19.97 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.02338, allocations: 11.98 kB / 274.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001101/0.02349, allocations: 180.7 kB / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02349, allocations: 4 kB / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003599/0.02385, allocations: 84 kB / 274.8 MB, free: 15.68 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000159/0.02401, allocations: 107.2 kB / 274.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005222/0.02453, allocations: 0.4987 MB / 275.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.02453, allocations: 192 / 275.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.02475, allocations: 265.3 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.02523, allocations: 136.2 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.02627, allocations: 0.5921 MB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.528e-05/0.02634, allocations: 100.5 kB / 276.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.02649, allocations: 42.95 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.02671, allocations: 178 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.02672, allocations: 0 / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of Templates: time 0.007747/0.03446, allocations: 5.763 MB / 282.5 MB, free: 7.941 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9856928368099034]