Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 113.2 kB / 17.73 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 184.2 kB / 18.66 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 55.92 kB / 328.6 MB, free: 3.254 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.09141, allocations: 46.62 MB / 375.2 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.2388/0.3302, allocations: 32.56 MB / 407.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02189/0.3522, allocations: 15.73 MB / 423.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007087/0.353, allocations: 3.969 kB / 423.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009943/0.354, allocations: 272.5 kB / 423.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008369/0.3549, allocations: 360.3 kB / 424.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01918/0.3741, allocations: 5.788 MB / 429.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.3754, allocations: 0.9745 MB / 430.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.3757, allocations: 111.8 kB / 431 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004642/0.3803, allocations: 2.196 MB / 433.2 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003999/0.3807, allocations: 298.8 kB / 433.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.381e-05/0.3808, allocations: 32 kB / 433.5 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006789/0.3876, allocations: 3.617 MB / 437.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.3877, allocations: 99.73 kB / 437.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.388, allocations: 219.2 kB / 437.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003239/0.3912, allocations: 2.358 MB / 439.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3913, allocations: 0 / 439.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3913, allocations: 0 / 439.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.3913, allocations: 4 kB / 439.8 MB, free: 14.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001369/0.3927, allocations: 0.8155 MB / 440.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3927, allocations: 15.89 kB / 440.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007388/0.3935, allocations: 84.42 kB / 440.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004485/0.3939, allocations: 307.6 kB / 441 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.3939, allocations: 25.03 kB / 441 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.798e-05/0.394, allocations: 28.56 kB / 441.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008014/0.3948, allocations: 450.1 kB / 441.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.3948, allocations: 11.94 kB / 441.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.134e-05/0.3949, allocations: 16 kB / 441.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.3949, allocations: 8 kB / 441.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006166/0.3955, allocations: 313.8 kB / 441.8 MB, free: 12.73 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002861/0.3984, allocations: 2.614 MB / 444.5 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005453/0.399, allocations: 251.1 kB / 444.7 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.3991, allocations: 113.6 kB / 444.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03478/0.4339, allocations: 15.54 MB / 460.4 MB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.532e-05/0.434, allocations: 34.56 kB / 460.4 MB, free: 8.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.827e-06/0.434, allocations: 0 / 460.4 MB, free: 8.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.00462/0.4387, allocations: 1.302 MB / 461.7 MB, free: 6.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.4387, allocations: 55.41 kB / 461.7 MB, free: 6.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002805/0.439, allocations: 274.5 kB / 462 MB, free: 6.398 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.439, allocations: 33.7 kB / 462 MB, free: 6.359 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.4392, allocations: 192 kB / 462.2 MB, free: 6.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.323e-05/0.4393, allocations: 110.4 kB / 462.3 MB, free: 6.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.4394, allocations: 78.12 kB / 462.4 MB, free: 5.973 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.4395, allocations: 334.8 kB / 462.7 MB, free: 5.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.4397, allocations: 100.8 kB / 462.8 MB, free: 5.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.4399, allocations: 230.8 kB / 463.1 MB, free: 5.258 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004543/0.4404, allocations: 354.3 kB / 463.4 MB, free: 4.859 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4404, allocations: 4 kB / 463.4 MB, free: 4.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007869/0.4412, allocations: 439 kB / 463.8 MB, free: 4.414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.4413, allocations: 11.91 kB / 463.9 MB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4413, allocations: 8 kB / 463.9 MB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003249/0.4445, allocations: 261.4 kB / 464.1 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002978/0.4448, allocations: 83.78 kB / 464.2 MB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.4464, allocations: 1.982 MB / 466.2 MB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.4466, allocations: 12 kB / 466.2 MB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/0.4466, allocations: 20 kB / 466.2 MB, free: 1.875 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.00019/0.4468, allocations: 153.8 kB / 466.4 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.145e-05/0.4469, allocations: 27.66 kB / 466.4 MB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.4481, allocations: 0.9513 MB / 467.3 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-05/0.4482, allocations: 12.02 kB / 467.4 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.4482, allocations: 0 / 467.4 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001003/0.4492, allocations: 1.126 MB / 468.5 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001716/0.4509, allocations: 1.58 MB / 470.1 MB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.4509, allocations: 0 / 470.1 MB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.4511, allocations: 47.98 kB / 470.1 MB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001665/0.4528, allocations: 283.9 kB / 470.4 MB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.4529, allocations: 11.94 kB / 470.4 MB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005291/0.4534, allocations: 0.67 MB / 471.1 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.4534, allocations: 0 / 471.1 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.4546, allocations: 0.9576 MB / 472 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.946e-05/0.4547, allocations: 116.6 kB / 472.1 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/0.4547, allocations: 15.84 kB / 472.2 MB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/0.4549, allocations: 7.062 kB / 472.2 MB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.455, allocations: 19.97 kB / 472.2 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.455, allocations: 8 kB / 472.2 MB, free: 11.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.4552, allocations: 243 kB / 472.4 MB, free: 11.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4553, allocations: 0 / 472.4 MB, free: 11.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001393/0.4566, allocations: 0.492 MB / 472.9 MB, free: 10.92 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001653/0.4583, allocations: 0.5105 MB / 473.4 MB, free: 10.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008947/0.4592, allocations: 0.5227 MB / 473.9 MB, free: 9.867 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4592, allocations: 0 / 473.9 MB, free: 9.867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004604/0.4597, allocations: 302.2 kB / 474.2 MB, free: 9.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.4608, allocations: 203.2 kB / 474.4 MB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.4622, allocations: 0.9994 MB / 475.4 MB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.4626, allocations: 0.8165 MB / 476.3 MB, free: 7.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002716/0.4629, allocations: 111.2 kB / 476.4 MB, free: 7.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.389e-05/0.463, allocations: 35.38 kB / 476.4 MB, free: 7.367 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.463, allocations: 0 / 476.4 MB, free: 7.367 MB / 398.1 MB Notification: Performance of Templates: time 0.02759/0.4906, allocations: 18.9 MB / 495.3 MB, free: 4.43 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches