Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 113.2 kB / 17.78 MB, free: 5.258 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.001733/0.001733, allocations: 185 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 222.9 MB / 242.4 MB, free: 15.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1974/0.1974, allocations: 44.18 MB / 336.7 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.91 kB / 470.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.386, allocations: 60.81 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04248/0.4285, allocations: 39.03 MB / 0.557 GB, free: 4.926 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02363/0.4522, allocations: 20.14 MB / 0.5767 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.4533, allocations: 23.88 kB / 0.5767 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001428/0.4548, allocations: 453.3 kB / 0.5772 GB, free: 260 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01392/0.4687, allocations: 5.105 MB / 0.5821 GB, free: 11.15 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006601/0.4753, allocations: 2.56 MB / 0.5846 GB, free: 8.59 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002485/0.4778, allocations: 1.981 MB / 0.5866 GB, free: 6.598 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008259/0.4787, allocations: 493.5 kB / 0.5871 GB, free: 6.102 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0108/0.4895, allocations: 4.16 MB / 0.5911 GB, free: 1.887 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01197/0.5015, allocations: 5.44 MB / 0.5964 GB, free: 12.36 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003469/0.5019, allocations: 72 kB / 0.5965 GB, free: 12.29 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01542/0.5173, allocations: 7.387 MB / 0.6037 GB, free: 4.895 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004684/0.5178, allocations: 287.2 kB / 0.604 GB, free: 4.613 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006854/0.5185, allocations: 458 kB / 0.6044 GB, free: 4.164 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01278/0.5313, allocations: 5.109 MB / 0.6094 GB, free: 15.04 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.5313, allocations: 0 / 0.6094 GB, free: 15.04 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5313, allocations: 4 kB / 0.6094 GB, free: 15.04 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.433e-05/0.5314, allocations: 0 / 0.6094 GB, free: 15.04 MB / 478.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.005619/0.537, allocations: 1.742 MB / 0.6111 GB, free: 13.24 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.5371, allocations: 8.031 kB / 0.6111 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002353/0.5394, allocations: 296.1 kB / 0.6114 GB, free: 12.95 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.5405, allocations: 0.5916 MB / 0.612 GB, free: 12.31 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.5407, allocations: 117.3 kB / 0.6121 GB, free: 12.18 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.5408, allocations: 64.11 kB / 0.6122 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002711/0.5435, allocations: 1.189 MB / 0.6133 GB, free: 10.83 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.5436, allocations: 7.875 kB / 0.6133 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-05/0.5437, allocations: 28 kB / 0.6133 GB, free: 10.8 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.6e-05/0.5437, allocations: 45.3 kB / 0.6134 GB, free: 10.75 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002405/0.5461, allocations: 1.023 MB / 0.6144 GB, free: 9.727 MB / 478.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.006083/0.5522, allocations: 5.619 MB / 0.6199 GB, free: 3.734 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/0.5545, allocations: 0.7587 MB / 0.6206 GB, free: 2.957 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005616/0.5551, allocations: 285.3 kB / 0.6209 GB, free: 2.676 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03109/0.5862, allocations: 15.93 MB / 0.6365 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.5863, allocations: 39.28 kB / 0.6365 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 2.155e-06/0.5863, allocations: 0 / 0.6365 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.006408/0.5927, allocations: 2.3 MB / 0.6387 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/0.5928, allocations: 166.6 kB / 0.6389 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000684/0.5935, allocations: 0.6094 MB / 0.6395 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.5935, allocations: 33.7 kB / 0.6395 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000255/0.5938, allocations: 404.2 kB / 0.6399 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.5939, allocations: 178.5 kB / 0.6401 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/0.5942, allocations: 158.6 kB / 0.6402 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.5943, allocations: 378.8 kB / 0.6406 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005904/0.5949, allocations: 281.8 kB / 0.6409 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007756/0.5957, allocations: 0.6044 MB / 0.6415 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.5971, allocations: 0.9026 MB / 0.6423 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.5971, allocations: 4 kB / 0.6423 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001735/0.5988, allocations: 0.9614 MB / 0.6433 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.5989, allocations: 16.03 kB / 0.6433 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.5989, allocations: 8 kB / 0.6433 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002638/0.5991, allocations: 64.81 kB / 0.6434 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.6004, allocations: 299.5 kB / 0.6436 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.6018, allocations: 2.073 MB / 0.6457 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004979/0.6023, allocations: 43.97 kB / 0.6457 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/0.6024, allocations: 44 kB / 0.6458 GB, free: 6.734 MB / 0.4981 GB 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.0003534/0.6028, allocations: 277.6 kB / 0.646 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.6029, allocations: 79.47 kB / 0.6461 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/0.6058, allocations: 2.555 MB / 0.6486 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.061e-05/0.6058, allocations: 35.94 kB / 0.6486 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.6059, allocations: 4 kB / 0.6486 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.6059, allocations: 3.984 kB / 0.6486 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004051/0.6099, allocations: 3.765 MB / 0.6523 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.6099, allocations: 4 kB / 0.6523 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.611, allocations: 223.7 kB / 0.6525 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003182/0.6113, allocations: 84.73 kB / 0.6526 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.848e-05/0.6114, allocations: 15.98 kB / 0.6526 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/0.6128, allocations: 2.086 MB / 0.6547 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6128, allocations: 4.031 kB / 0.6547 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002802/0.6156, allocations: 2.351 MB / 0.657 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/0.616, allocations: 264 kB / 0.6572 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.6161, allocations: 31.78 kB / 0.6572 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/0.6165, allocations: 31.97 kB / 0.6573 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.6166, allocations: 52.48 kB / 0.6573 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.834e-05/0.6166, allocations: 19.98 kB / 0.6573 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006193/0.6173, allocations: 0.5616 MB / 0.6579 GB, free: 10 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6173, allocations: 0 / 0.6579 GB, free: 10 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002782/0.6201, allocations: 1.1 MB / 0.659 GB, free: 8.898 MB / 0.5137 GB 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.003814/0.6239, allocations: 1.218 MB / 0.6602 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002381/0.6263, allocations: 1.12 MB / 0.6612 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6263, allocations: 0 / 0.6612 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001565/0.6279, allocations: 0.8089 MB / 0.662 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.6297, allocations: 413.7 kB / 0.6624 GB, free: 5.359 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.633, allocations: 2.51 MB / 0.6649 GB, free: 2.812 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00069/0.6337, allocations: 1.165 MB / 0.666 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0007366/0.6345, allocations: 439.4 kB / 0.6664 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.6346, allocations: 63.44 kB / 0.6665 GB, free: 1.129 MB / 0.5137 GB Notification: Performance of SimCode: time 4.91e-07/0.6346, allocations: 0 / 0.6665 GB, free: 1.129 MB / 0.5137 GB Notification: Performance of Templates: time 0.05918/0.6938, allocations: 47.07 MB / 0.7125 GB, free: 2.188 MB / 0.5606 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches