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.001235/0.001235, allocations: 108.2 kB / 18.39 MB, free: 4.762 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.00117/0.00117, allocations: 182.9 kB / 19.32 MB, free: 3.832 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.361/1.361, allocations: 222.9 MB / 243 MB, free: 15.17 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.2044/0.2044, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 62.5 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1021, allocations: 60.83 MB / 470.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.03956/0.1417, allocations: 39.01 MB / 0.4978 GB, free: 6.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2389/0.3807, allocations: 20.14 MB / 0.5175 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008197/0.3815, allocations: 22.22 kB / 0.5175 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.3827, allocations: 447.6 kB / 0.5179 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01535/0.3981, allocations: 5.122 MB / 0.5229 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007299/0.4054, allocations: 2.574 MB / 0.5254 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002644/0.4081, allocations: 1.982 MB / 0.5274 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007033/0.4088, allocations: 494.1 kB / 0.5278 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009317/0.4181, allocations: 4.154 MB / 0.5319 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0107/0.4289, allocations: 5.439 MB / 0.5372 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003697/0.4293, allocations: 71.16 kB / 0.5373 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.015/0.4443, allocations: 7.389 MB / 0.5445 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005507/0.4449, allocations: 277.6 kB / 0.5447 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000838/0.4457, allocations: 454.6 kB / 0.5452 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01331/0.459, allocations: 5.106 MB / 0.5502 GB, free: 13.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4591, allocations: 0 / 0.5502 GB, free: 13.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4591, allocations: 0 / 0.5502 GB, free: 13.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.4591, allocations: 0 / 0.5502 GB, free: 13.12 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.004685/0.4638, allocations: 1.688 MB / 0.5518 GB, free: 11.4 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.4639, allocations: 8.031 kB / 0.5518 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002276/0.4661, allocations: 303.6 kB / 0.5521 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.4672, allocations: 0.5716 MB / 0.5527 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.4674, allocations: 121.3 kB / 0.5528 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.4675, allocations: 59.34 kB / 0.5528 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002628/0.4701, allocations: 1.198 MB / 0.554 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.4702, allocations: 4 kB / 0.554 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.081e-05/0.4702, allocations: 24 kB / 0.554 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.794e-05/0.4703, allocations: 45.3 kB / 0.5541 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002553/0.4729, allocations: 1.027 MB / 0.5551 GB, free: 7.934 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.006405/0.4793, allocations: 5.604 MB / 0.5606 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.4816, allocations: 0.7644 MB / 0.5613 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005665/0.4822, allocations: 289.6 kB / 0.5616 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03529/0.5175, allocations: 15.92 MB / 0.5771 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.042e-05/0.5176, allocations: 47.27 kB / 0.5772 GB, free: 15.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 3.286e-06/0.5176, allocations: 0 / 0.5772 GB, free: 15.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.01078/0.5284, allocations: 2.281 MB / 0.5794 GB, free: 12.75 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.5286, allocations: 158.7 kB / 0.5796 GB, free: 12.56 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.5297, allocations: 0.6171 MB / 0.5802 GB, free: 11.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.699e-05/0.5298, allocations: 29.7 kB / 0.5802 GB, free: 11.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004128/0.5302, allocations: 391 kB / 0.5806 GB, free: 11.53 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.5304, allocations: 175.6 kB / 0.5807 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003581/0.5308, allocations: 154.5 kB / 0.5809 GB, free: 11.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002355/0.531, allocations: 386.8 kB / 0.5812 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009454/0.532, allocations: 273.8 kB / 0.5815 GB, free: 10.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.5333, allocations: 0.6121 MB / 0.5821 GB, free: 9.785 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00221/0.5355, allocations: 0.9026 MB / 0.583 GB, free: 8.734 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.5356, allocations: 7.938 kB / 0.583 GB, free: 8.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003067/0.5386, allocations: 0.9563 MB / 0.5839 GB, free: 7.762 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.606e-05/0.5387, allocations: 12.94 kB / 0.5839 GB, free: 7.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/0.5387, allocations: 8 kB / 0.5839 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004585/0.5392, allocations: 72.75 kB / 0.584 GB, free: 7.668 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/0.5412, allocations: 295.6 kB / 0.5843 GB, free: 7.379 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/0.5437, allocations: 2.081 MB / 0.5863 GB, free: 5.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.5448, allocations: 43.97 kB / 0.5864 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.5449, allocations: 40.88 kB / 0.5864 GB, free: 5.059 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.0006484/0.5456, allocations: 273.3 kB / 0.5867 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.5458, allocations: 83.17 kB / 0.5867 GB, free: 4.699 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004777/0.5506, allocations: 2.539 MB / 0.5892 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.293e-05/0.5507, allocations: 33.33 kB / 0.5893 GB, free: 2.133 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5507, allocations: 4 kB / 0.5893 GB, free: 2.129 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.5507, allocations: 3.984 kB / 0.5893 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007047/0.5578, allocations: 3.754 MB / 0.5929 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.5578, allocations: 4 kB / 0.5929 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/0.5596, allocations: 223.7 kB / 0.5931 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005275/0.5601, allocations: 84.69 kB / 0.5932 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.863e-05/0.5602, allocations: 19.98 kB / 0.5932 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002169/0.5624, allocations: 2.086 MB / 0.5953 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.5624, allocations: 4.031 kB / 0.5953 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004641/0.567, allocations: 2.346 MB / 0.5976 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006506/0.5677, allocations: 255.4 kB / 0.5978 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.5679, allocations: 31.69 kB / 0.5979 GB, free: 9.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006679/0.5686, allocations: 31.97 kB / 0.5979 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.5687, allocations: 52.48 kB / 0.5979 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.5688, allocations: 19.98 kB / 0.598 GB, free: 8.957 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.5699, allocations: 0.5576 MB / 0.5985 GB, free: 8.398 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.164e-06/0.5699, allocations: 0 / 0.5985 GB, free: 8.398 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00458/0.5745, allocations: 1.097 MB / 0.5996 GB, free: 7.301 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.005914/0.5805, allocations: 1.212 MB / 0.6008 GB, free: 6.184 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003607/0.5841, allocations: 1.108 MB / 0.6018 GB, free: 5.078 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.5841, allocations: 0.5625 kB / 0.6018 GB, free: 5.078 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002334/0.5865, allocations: 0.8244 MB / 0.6026 GB, free: 4.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/0.5893, allocations: 398.9 kB / 0.603 GB, free: 3.875 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004999/0.5944, allocations: 2.468 MB / 0.6054 GB, free: 1.387 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.5954, allocations: 1.161 MB / 0.6066 GB, free: 204 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001267/0.5967, allocations: 443.5 kB / 0.607 GB, free: 15.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.5969, allocations: 71.38 kB / 0.6071 GB, free: 15.7 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5969, allocations: 0 / 0.6071 GB, free: 15.7 MB / 462.1 MB Notification: Performance of Templates: time 0.08589/0.6828, allocations: 46.81 MB / 0.6528 GB, free: 1.055 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 cvode -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