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.0008612/0.0008612, allocations: 96.02 kB / 17.35 MB, free: 6.367 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.0008988/0.0008989, allocations: 176.1 kB / 18.25 MB, free: 5.523 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.379/1.379, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1986/0.1986, allocations: 44.25 MB / 337.7 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005366/0.0005368, allocations: 8 kB / 410.3 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1372, allocations: 61.92 MB / 472.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.03922/0.1764, allocations: 39.41 MB / 0.4997 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3258/0.5023, allocations: 20.9 MB / 0.5201 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.5034, allocations: 25.81 kB / 0.5201 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.5045, allocations: 398.1 kB / 0.5205 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01508/0.5196, allocations: 4.178 MB / 0.5246 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01001/0.5297, allocations: 2.241 MB / 0.5268 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004329/0.534, allocations: 2.838 MB / 0.5295 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009342/0.535, allocations: 424.5 kB / 0.5299 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009092/0.5441, allocations: 4.042 MB / 0.5339 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009457/0.5536, allocations: 5.458 MB / 0.5392 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001883/0.5538, allocations: 37.84 kB / 0.5393 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01284/0.5666, allocations: 7.27 MB / 0.5464 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003795/0.5671, allocations: 252.1 kB / 0.5466 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006239/0.5677, allocations: 445.7 kB / 0.547 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.5784, allocations: 5.05 MB / 0.552 GB, free: 13.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.5784, allocations: 0 / 0.552 GB, free: 13.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.5784, allocations: 3.938 kB / 0.552 GB, free: 13.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.5785, allocations: 0 / 0.552 GB, free: 13.85 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.004684/0.5832, allocations: 1.53 MB / 0.5535 GB, free: 12.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.5832, allocations: 11.97 kB / 0.5535 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002228/0.5855, allocations: 319.5 kB / 0.5538 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.5865, allocations: 0.5569 MB / 0.5543 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.5867, allocations: 118.1 kB / 0.5544 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.5868, allocations: 59.66 kB / 0.5545 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002713/0.5895, allocations: 1.22 MB / 0.5557 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.5896, allocations: 7.938 kB / 0.5557 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.942e-05/0.5897, allocations: 31.2 kB / 0.5557 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.817e-05/0.5897, allocations: 41.3 kB / 0.5558 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002663/0.5924, allocations: 1.066 MB / 0.5568 GB, free: 8.746 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.007172/0.5996, allocations: 5.631 MB / 0.5623 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.6021, allocations: 0.8053 MB / 0.5631 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000659/0.6028, allocations: 301.3 kB / 0.5634 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03484/0.6376, allocations: 15.98 MB / 0.579 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.935e-05/0.6377, allocations: 47.2 kB / 0.579 GB, free: 15.76 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 3.146e-06/0.6377, allocations: 0 / 0.579 GB, free: 15.76 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.007426/0.6452, allocations: 2.364 MB / 0.5813 GB, free: 13.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.6453, allocations: 166.7 kB / 0.5815 GB, free: 13.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008588/0.6461, allocations: 0.6054 MB / 0.5821 GB, free: 12.54 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.36e-05/0.6462, allocations: 41.7 kB / 0.5821 GB, free: 12.49 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/0.6465, allocations: 389.9 kB / 0.5825 GB, free: 12.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.6467, allocations: 172.3 kB / 0.5827 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.6468, allocations: 69.69 kB / 0.5827 GB, free: 11.87 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.647, allocations: 378.8 kB / 0.5831 GB, free: 11.49 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006981/0.6477, allocations: 293.8 kB / 0.5834 GB, free: 11.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009408/0.6487, allocations: 0.62 MB / 0.584 GB, free: 10.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.6503, allocations: 0.9221 MB / 0.5849 GB, free: 9.359 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.6503, allocations: 4 kB / 0.5849 GB, free: 9.355 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002044/0.6524, allocations: 0.9882 MB / 0.5858 GB, free: 8.359 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.6524, allocations: 20.19 kB / 0.5859 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.6524, allocations: 8 kB / 0.5859 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003179/0.6528, allocations: 64.81 kB / 0.5859 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.6541, allocations: 311.5 kB / 0.5862 GB, free: 7.961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.6558, allocations: 1.99 MB / 0.5882 GB, free: 5.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007938/0.6566, allocations: 87.97 kB / 0.5882 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.874e-05/0.6567, allocations: 42.03 kB / 0.5883 GB, free: 5.695 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.0004595/0.6572, allocations: 274.1 kB / 0.5885 GB, free: 5.418 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.6574, allocations: 75.09 kB / 0.5886 GB, free: 5.344 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003454/0.6608, allocations: 2.59 MB / 0.5912 GB, free: 2.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.562e-05/0.6609, allocations: 39.81 kB / 0.5912 GB, free: 2.711 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6609, allocations: 4 kB / 0.5912 GB, free: 2.707 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.6609, allocations: 3.984 kB / 0.5912 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005367/0.6663, allocations: 3.791 MB / 0.5949 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.6663, allocations: 0 / 0.5949 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.6674, allocations: 243.7 kB / 0.5951 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004255/0.6679, allocations: 88.78 kB / 0.5952 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.788e-05/0.668, allocations: 15.98 kB / 0.5952 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001914/0.6699, allocations: 1.991 MB / 0.5972 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.6699, allocations: 0 / 0.5972 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.6734, allocations: 2.385 MB / 0.5995 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005633/0.6739, allocations: 330.9 kB / 0.5998 GB, free: 9.605 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.6741, allocations: 8 kB / 0.5998 GB, free: 9.598 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007055/0.6749, allocations: 75.8 kB / 0.5999 GB, free: 9.523 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.675, allocations: 44.48 kB / 0.5999 GB, free: 9.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.485e-05/0.6751, allocations: 23.98 kB / 0.6 GB, free: 9.457 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009682/0.6761, allocations: 0.5615 MB / 0.6005 GB, free: 8.895 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6761, allocations: 0 / 0.6005 GB, free: 8.895 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004622/0.6807, allocations: 1.085 MB / 0.6016 GB, free: 7.809 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.005549/0.6863, allocations: 1.226 MB / 0.6028 GB, free: 6.676 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002849/0.6891, allocations: 1.108 MB / 0.6039 GB, free: 5.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.6891, allocations: 0 / 0.6039 GB, free: 5.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.6909, allocations: 0.8208 MB / 0.6047 GB, free: 4.746 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/0.6933, allocations: 378.2 kB / 0.605 GB, free: 4.391 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004637/0.698, allocations: 3.085 MB / 0.608 GB, free: 1.277 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008683/0.6989, allocations: 1.161 MB / 0.6092 GB, free: 92 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.7, allocations: 437.6 kB / 0.6096 GB, free: 15.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.7003, allocations: 67.44 kB / 0.6096 GB, free: 15.59 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.7003, allocations: 0 / 0.6096 GB, free: 15.59 MB / 462.1 MB Notification: Performance of Templates: time 0.08253/0.7828, allocations: 45.93 MB / 0.6545 GB, free: 1.82 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/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