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.001622/0.001622, allocations: 103.3 kB / 18.4 MB, free: 4.57 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.001612/0.001612, allocations: 188 kB / 19.34 MB, free: 3.641 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.342/1.342, allocations: 222.9 MB / 243 MB, free: 15.14 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.2042/0.2042, allocations: 44.18 MB / 337.4 MB, free: 2.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.44 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1104, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04256/0.153, allocations: 39.03 MB / 0.4978 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2183/0.3714, allocations: 20.15 MB / 0.5175 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009214/0.3724, allocations: 22.12 kB / 0.5175 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.3736, allocations: 442.7 kB / 0.5179 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01593/0.3896, allocations: 5.116 MB / 0.5229 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007335/0.3969, allocations: 2.574 MB / 0.5254 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002695/0.3996, allocations: 1.981 MB / 0.5274 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006711/0.4003, allocations: 496.7 kB / 0.5278 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008952/0.4093, allocations: 4.159 MB / 0.5319 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01052/0.4198, allocations: 5.436 MB / 0.5372 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000218/0.4201, allocations: 72.84 kB / 0.5373 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0136/0.4337, allocations: 7.384 MB / 0.5445 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003943/0.4341, allocations: 275.6 kB / 0.5447 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007044/0.4348, allocations: 462.8 kB / 0.5452 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.4466, allocations: 5.101 MB / 0.5502 GB, free: 13.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4466, allocations: 0 / 0.5502 GB, free: 13.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4467, allocations: 0 / 0.5502 GB, free: 13.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.4467, allocations: 0 / 0.5502 GB, free: 13.18 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.004307/0.451, allocations: 1.688 MB / 0.5518 GB, free: 11.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.451, allocations: 8.031 kB / 0.5518 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002274/0.4533, allocations: 306.3 kB / 0.5521 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.4544, allocations: 0.5798 MB / 0.5527 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.4545, allocations: 120.6 kB / 0.5528 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.4546, allocations: 56.38 kB / 0.5528 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00262/0.4572, allocations: 1.194 MB / 0.554 GB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.4573, allocations: 0 / 0.554 GB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.949e-05/0.4574, allocations: 35.44 kB / 0.554 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-05/0.4574, allocations: 45.23 kB / 0.5541 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002527/0.46, allocations: 1.023 MB / 0.5551 GB, free: 7.984 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.006821/0.4668, allocations: 5.597 MB / 0.5606 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.4691, allocations: 0.7697 MB / 0.5613 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005724/0.4697, allocations: 285.6 kB / 0.5616 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03286/0.5025, allocations: 15.93 MB / 0.5771 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.5026, allocations: 39.28 kB / 0.5772 GB, free: 15.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 2.294e-06/0.5026, allocations: 0 / 0.5772 GB, free: 15.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.007115/0.5097, allocations: 2.288 MB / 0.5794 GB, free: 12.81 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.685e-05/0.5099, allocations: 158.7 kB / 0.5796 GB, free: 12.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007812/0.5106, allocations: 0.6093 MB / 0.5802 GB, free: 12.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/0.5107, allocations: 37.7 kB / 0.5802 GB, free: 11.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/0.511, allocations: 386.2 kB / 0.5806 GB, free: 11.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.5112, allocations: 181.5 kB / 0.5807 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.5114, allocations: 162.4 kB / 0.5809 GB, free: 11.25 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.5116, allocations: 378.8 kB / 0.5812 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006182/0.5122, allocations: 281.8 kB / 0.5815 GB, free: 10.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009517/0.5132, allocations: 0.6122 MB / 0.5821 GB, free: 9.832 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.5146, allocations: 0.8948 MB / 0.583 GB, free: 8.789 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.505e-06/0.5147, allocations: 4 kB / 0.583 GB, free: 8.785 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001912/0.5166, allocations: 0.9648 MB / 0.5839 GB, free: 7.812 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.5166, allocations: 12 kB / 0.5839 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.5166, allocations: 8 kB / 0.584 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.5169, allocations: 60.83 kB / 0.584 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.5182, allocations: 303.8 kB / 0.5843 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.5198, allocations: 2.084 MB / 0.5863 GB, free: 5.191 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006247/0.5205, allocations: 43.97 kB / 0.5864 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.711e-05/0.5206, allocations: 40.19 kB / 0.5864 GB, free: 5.109 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.000394/0.521, allocations: 277.4 kB / 0.5867 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.5211, allocations: 75.09 kB / 0.5868 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003278/0.5244, allocations: 2.535 MB / 0.5892 GB, free: 2.223 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.752e-05/0.5245, allocations: 43.92 kB / 0.5893 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.5245, allocations: 0 / 0.5893 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.5245, allocations: 8.016 kB / 0.5893 GB, free: 2.172 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004622/0.5291, allocations: 3.75 MB / 0.5929 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.5292, allocations: 0 / 0.5929 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.5302, allocations: 223.7 kB / 0.5932 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003591/0.5306, allocations: 88.62 kB / 0.5932 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/0.5307, allocations: 19.94 kB / 0.5933 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.5324, allocations: 2.094 MB / 0.5953 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5324, allocations: 0 / 0.5953 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003313/0.5357, allocations: 2.343 MB / 0.5976 GB, free: 9.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004511/0.5362, allocations: 255.3 kB / 0.5978 GB, free: 9.141 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/0.5364, allocations: 35.69 kB / 0.5979 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005311/0.5369, allocations: 31.97 kB / 0.5979 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.5371, allocations: 60.42 kB / 0.598 GB, free: 9.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.782e-05/0.5371, allocations: 20 kB / 0.598 GB, free: 8.996 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008529/0.538, allocations: 0.5576 MB / 0.5985 GB, free: 8.438 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.538, allocations: 0 / 0.5985 GB, free: 8.438 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003331/0.5413, allocations: 1.093 MB / 0.5996 GB, free: 7.344 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.004957/0.5463, allocations: 1.205 MB / 0.6008 GB, free: 6.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.549, allocations: 1.116 MB / 0.6019 GB, free: 5.117 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.549, allocations: 0 / 0.6019 GB, free: 5.117 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001648/0.5506, allocations: 0.8245 MB / 0.6027 GB, free: 4.289 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/0.5528, allocations: 395.2 kB / 0.603 GB, free: 3.918 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003976/0.5568, allocations: 2.463 MB / 0.6054 GB, free: 1.434 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007914/0.5576, allocations: 1.161 MB / 0.6066 GB, free: 252 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009004/0.5585, allocations: 446.4 kB / 0.607 GB, free: 15.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.5587, allocations: 67.44 kB / 0.6071 GB, free: 15.75 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5587, allocations: 3.938 kB / 0.6071 GB, free: 15.74 MB / 462.1 MB Notification: Performance of Templates: time 0.06986/0.6286, allocations: 46.8 MB / 0.6528 GB, free: 1.109 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 -s gbode -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