Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001453/0.001453, allocations: 109.6 kB / 18.3 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 212.1 kB / 19.25 MB, free: 3.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.4 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2139/0.2139, allocations: 46.1 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 77.91 kB / 418.3 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1168, allocations: 62.45 MB / 480.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.2619/0.3788, allocations: 39.16 MB / 0.5077 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02278/0.4016, allocations: 20.17 MB / 0.5274 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.4028, allocations: 21.22 kB / 0.5274 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.4042, allocations: 442 kB / 0.5278 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01655/0.4208, allocations: 5.121 MB / 0.5328 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007718/0.4286, allocations: 2.562 MB / 0.5353 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00309/0.4317, allocations: 1.981 MB / 0.5373 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000842/0.4325, allocations: 0.4913 MB / 0.5377 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008944/0.4415, allocations: 4.158 MB / 0.5418 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01053/0.4521, allocations: 5.45 MB / 0.5471 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002596/0.4524, allocations: 75.81 kB / 0.5472 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01519/0.4676, allocations: 7.225 MB / 0.5543 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005784/0.4682, allocations: 279.2 kB / 0.5545 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008174/0.469, allocations: 458 kB / 0.555 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.4822, allocations: 5.11 MB / 0.5599 GB, free: 6.723 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4822, allocations: 0 / 0.5599 GB, free: 6.723 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4822, allocations: 0 / 0.5599 GB, free: 6.723 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.4823, allocations: 0 / 0.5599 GB, free: 6.723 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.00506/0.4873, allocations: 1.695 MB / 0.5616 GB, free: 4.977 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.4874, allocations: 12.03 kB / 0.5616 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002207/0.4896, allocations: 295.6 kB / 0.5619 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009862/0.4906, allocations: 0.5599 MB / 0.5624 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.4908, allocations: 113.3 kB / 0.5626 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.912e-05/0.4909, allocations: 60.36 kB / 0.5626 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002694/0.4936, allocations: 1.197 MB / 0.5638 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.4936, allocations: 11.88 kB / 0.5638 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.76e-05/0.4937, allocations: 24 kB / 0.5638 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-05/0.4938, allocations: 45.3 kB / 0.5639 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002574/0.4964, allocations: 1.027 MB / 0.5649 GB, free: 1.5 MB / 398.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.006956/0.5034, allocations: 5.624 MB / 0.5704 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002421/0.5058, allocations: 0.7557 MB / 0.5711 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005917/0.5064, allocations: 285.6 kB / 0.5714 GB, free: 10.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03532/0.5418, allocations: 17.31 MB / 0.5883 GB, free: 6.984 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.6e-05/0.5419, allocations: 46.52 kB / 0.5883 GB, free: 6.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 4.549e-06/0.5419, allocations: 0 / 0.5883 GB, free: 6.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.007508/0.5494, allocations: 2.281 MB / 0.5905 GB, free: 4.586 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.947e-05/0.5495, allocations: 166.6 kB / 0.5907 GB, free: 4.387 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008609/0.5504, allocations: 0.6055 MB / 0.5913 GB, free: 3.777 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.763e-05/0.5505, allocations: 33.7 kB / 0.5913 GB, free: 3.738 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003037/0.5508, allocations: 391.3 kB / 0.5917 GB, free: 3.348 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.551, allocations: 185.4 kB / 0.5919 GB, free: 3.164 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002541/0.5512, allocations: 158.6 kB / 0.592 GB, free: 3.004 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.5514, allocations: 374.8 kB / 0.5924 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006392/0.5521, allocations: 277.8 kB / 0.5926 GB, free: 2.359 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008587/0.553, allocations: 0.6082 MB / 0.5932 GB, free: 1.602 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.5545, allocations: 0.8987 MB / 0.5941 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.5545, allocations: 5.375 kB / 0.5941 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002057/0.5566, allocations: 0.9649 MB / 0.5951 GB, free: 15.58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.5566, allocations: 8 kB / 0.5951 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.5566, allocations: 12 kB / 0.5951 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003094/0.557, allocations: 60.83 kB / 0.5951 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.5583, allocations: 311.6 kB / 0.5954 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.5601, allocations: 2.075 MB / 0.5975 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006765/0.5608, allocations: 43.97 kB / 0.5975 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.574e-05/0.5609, allocations: 44.16 kB / 0.5975 GB, free: 12.87 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.heatTransfer.states[1].phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005095/0.5614, allocations: 269.4 kB / 0.5978 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.5616, allocations: 75.09 kB / 0.5979 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003478/0.5651, allocations: 2.562 MB / 0.6004 GB, free: 9.945 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.552e-05/0.5652, allocations: 39.94 kB / 0.6004 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5652, allocations: 3.938 kB / 0.6004 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.5652, allocations: 7.984 kB / 0.6004 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005097/0.5703, allocations: 3.742 MB / 0.6041 GB, free: 6.078 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.5704, allocations: 4 kB / 0.6041 GB, free: 6.074 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.5715, allocations: 231.7 kB / 0.6043 GB, free: 5.848 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003645/0.5718, allocations: 88.69 kB / 0.6044 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.957e-05/0.5719, allocations: 12 kB / 0.6044 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.5735, allocations: 2.09 MB / 0.6064 GB, free: 3.496 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.5736, allocations: 4.031 kB / 0.6064 GB, free: 3.492 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.5769, allocations: 2.342 MB / 0.6087 GB, free: 1.129 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004363/0.5773, allocations: 259.2 kB / 0.609 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/0.5775, allocations: 39.58 kB / 0.609 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005108/0.578, allocations: 31.97 kB / 0.609 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.5782, allocations: 52.48 kB / 0.6091 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/0.5782, allocations: 16.06 kB / 0.6091 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008648/0.5791, allocations: 0.5654 MB / 0.6097 GB, free: 156 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5791, allocations: 0 / 0.6097 GB, free: 156 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.003193/0.5823, allocations: 1.093 MB / 0.6107 GB, free: 15.06 MB / 462.1 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.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005232/0.5875, allocations: 1.217 MB / 0.6119 GB, free: 13.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003542/0.5911, allocations: 1.194 MB / 0.6131 GB, free: 12.65 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5912, allocations: 0 / 0.6131 GB, free: 12.65 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.5928, allocations: 0.8049 MB / 0.6139 GB, free: 11.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.5951, allocations: 403.1 kB / 0.6143 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.5994, allocations: 2.553 MB / 0.6167 GB, free: 8.879 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008127/0.6002, allocations: 1.157 MB / 0.6179 GB, free: 7.691 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.6005, allocations: 71.44 kB / 0.6179 GB, free: 7.621 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6005, allocations: 0 / 0.6179 GB, free: 7.621 MB / 462.1 MB Notification: Performance of Templates: time 0.05698/0.6575, allocations: 39.62 MB / 0.6566 GB, free: 28 kB / 494.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,volume.medium.p Variables in the result:time,volume.medium.h,volume.medium.p