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.001174/0.001174, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001208/0.001209, allocations: 194 kB / 18.77 MB, free: 4.742 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.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.48 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.201/0.201, allocations: 44.17 MB / 336.8 MB, free: 3.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 61.28 kB / 408.4 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.112, allocations: 60.83 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.0444/0.1565, allocations: 40.26 MB / 0.4975 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2366/0.3931, allocations: 21.21 MB / 0.5182 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.3943, allocations: 28 kB / 0.5182 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00132/0.3957, allocations: 399.8 kB / 0.5186 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01435/0.41, allocations: 4.188 MB / 0.5227 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007848/0.4179, allocations: 2.242 MB / 0.5249 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003663/0.4216, allocations: 2.836 MB / 0.5277 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000802/0.4224, allocations: 431.3 kB / 0.5281 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01014/0.4326, allocations: 4.053 MB / 0.532 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01123/0.4438, allocations: 5.458 MB / 0.5374 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002325/0.4441, allocations: 40.88 kB / 0.5374 GB, free: 5.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01425/0.4584, allocations: 7.269 MB / 0.5445 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004898/0.4589, allocations: 240.3 kB / 0.5447 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007649/0.4597, allocations: 428.1 kB / 0.5451 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006685/0.4664, allocations: 3.539 MB / 0.5486 GB, free: 14.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4664, allocations: 0 / 0.5486 GB, free: 14.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4664, allocations: 0 / 0.5486 GB, free: 14.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.963e-05/0.4664, allocations: 0 / 0.5486 GB, free: 14.44 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.004632/0.4711, allocations: 1.693 MB / 0.5503 GB, free: 12.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.4711, allocations: 11.97 kB / 0.5503 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002277/0.4734, allocations: 302.5 kB / 0.5506 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008835/0.4743, allocations: 0.5494 MB / 0.5511 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.4744, allocations: 120.3 kB / 0.5512 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.65e-05/0.4746, allocations: 68.31 kB / 0.5513 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002574/0.4771, allocations: 1.191 MB / 0.5524 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/0.4772, allocations: 11.75 kB / 0.5524 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.289e-05/0.4773, allocations: 32 kB / 0.5525 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.034e-05/0.4773, allocations: 41.3 kB / 0.5525 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002853/0.4802, allocations: 1.023 MB / 0.5535 GB, free: 9.258 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.006764/0.487, allocations: 5.609 MB / 0.559 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/0.4894, allocations: 0.759 MB / 0.5597 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006032/0.4901, allocations: 289.5 kB / 0.56 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03198/0.522, allocations: 15.86 MB / 0.5755 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/0.5221, allocations: 47.27 kB / 0.5755 GB, free: 492 kB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 3.196e-06/0.5222, allocations: 0 / 0.5755 GB, free: 492 kB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00745/0.5296, allocations: 2.279 MB / 0.5778 GB, free: 14.15 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.117e-05/0.5297, allocations: 162.6 kB / 0.5779 GB, free: 13.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008833/0.5306, allocations: 0.6093 MB / 0.5785 GB, free: 13.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.85e-05/0.5307, allocations: 37.7 kB / 0.5786 GB, free: 13.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003155/0.531, allocations: 382.8 kB / 0.5789 GB, free: 12.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000181/0.5312, allocations: 184.3 kB / 0.5791 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002429/0.5315, allocations: 158.5 kB / 0.5792 GB, free: 12.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.5317, allocations: 378.8 kB / 0.5796 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/0.5323, allocations: 277.8 kB / 0.5799 GB, free: 11.94 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000932/0.5333, allocations: 0.6122 MB / 0.5805 GB, free: 11.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.5349, allocations: 0.8987 MB / 0.5814 GB, free: 10.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.827e-06/0.5349, allocations: 8 kB / 0.5814 GB, free: 10.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002121/0.537, allocations: 0.9552 MB / 0.5823 GB, free: 9.152 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.5371, allocations: 12 kB / 0.5823 GB, free: 9.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.5371, allocations: 8 kB / 0.5823 GB, free: 9.133 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.5374, allocations: 69.62 kB / 0.5824 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.5388, allocations: 299.5 kB / 0.5827 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/0.5404, allocations: 1.986 MB / 0.5846 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008429/0.5413, allocations: 76.05 kB / 0.5847 GB, free: 6.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.804e-05/0.5414, allocations: 43.98 kB / 0.5847 GB, free: 6.516 MB / 430.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.0004726/0.5419, allocations: 270.1 kB / 0.585 GB, free: 6.242 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.5421, allocations: 71.16 kB / 0.585 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00334/0.5454, allocations: 2.555 MB / 0.5875 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-05/0.5455, allocations: 31.89 kB / 0.5876 GB, free: 3.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.5455, allocations: 4.688 kB / 0.5876 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.5455, allocations: 3.984 kB / 0.5876 GB, free: 3.582 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004861/0.5504, allocations: 3.763 MB / 0.5913 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.5504, allocations: 1.5 kB / 0.5913 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.5516, allocations: 239.6 kB / 0.5915 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003727/0.552, allocations: 76.78 kB / 0.5916 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.433e-05/0.5521, allocations: 20 kB / 0.5916 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00153/0.5536, allocations: 1.999 MB / 0.5935 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5536, allocations: 0 / 0.5935 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003213/0.5569, allocations: 2.346 MB / 0.5958 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004838/0.5574, allocations: 251.4 kB / 0.5961 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.5576, allocations: 39.67 kB / 0.5961 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006619/0.5582, allocations: 59.75 kB / 0.5961 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.5584, allocations: 48.48 kB / 0.5962 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.95e-05/0.5585, allocations: 19.98 kB / 0.5962 GB, free: 10.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008172/0.5593, allocations: 0.5654 MB / 0.5968 GB, free: 9.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5593, allocations: 0 / 0.5968 GB, free: 9.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003583/0.5629, allocations: 1.089 MB / 0.5978 GB, free: 8.82 MB / 446.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.005621/0.5685, allocations: 1.215 MB / 0.599 GB, free: 7.695 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002774/0.5713, allocations: 1.089 MB / 0.6001 GB, free: 6.609 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.5714, allocations: 4 kB / 0.6001 GB, free: 6.605 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.5731, allocations: 0.801 MB / 0.6009 GB, free: 5.801 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/0.5757, allocations: 377.6 kB / 0.6012 GB, free: 5.445 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/0.5802, allocations: 3.03 MB / 0.6042 GB, free: 2.387 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007605/0.581, allocations: 1.161 MB / 0.6053 GB, free: 1.199 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002537/0.5813, allocations: 79.36 kB / 0.6054 GB, free: 1.121 MB / 446.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5813, allocations: 0 / 0.6054 GB, free: 1.121 MB / 446.1 MB Notification: Performance of Templates: time 0.05564/0.6369, allocations: 39.51 MB / 0.644 GB, free: 9.652 MB / 494.1 MB 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/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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches