Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001693/0.001693, allocations: 109 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001804/0.001804, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2135/0.2135, allocations: 46.1 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 79.88 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3739/0.3753, allocations: 62.43 MB / 0.5317 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04012/0.4155, allocations: 39.19 MB / 0.5699 GB, free: 10.46 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0232/0.4387, allocations: 20.17 MB / 0.5896 GB, free: 6.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.44, allocations: 19.88 kB / 0.5897 GB, free: 6.211 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001541/0.4417, allocations: 449.3 kB / 0.5901 GB, free: 5.77 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01907/0.4607, allocations: 5.145 MB / 0.5951 GB, free: 0.625 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008154/0.4689, allocations: 2.57 MB / 0.5976 GB, free: 14.05 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002821/0.4718, allocations: 1.981 MB / 0.5996 GB, free: 12.06 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007263/0.4725, allocations: 497.5 kB / 0.6 GB, free: 11.56 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009764/0.4823, allocations: 4.18 MB / 0.6041 GB, free: 7.324 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01141/0.4937, allocations: 5.44 MB / 0.6094 GB, free: 1.801 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002874/0.494, allocations: 75.94 kB / 0.6095 GB, free: 1.727 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01557/0.5096, allocations: 7.391 MB / 0.6167 GB, free: 10.33 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005419/0.5102, allocations: 283.2 kB / 0.617 GB, free: 10.05 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007385/0.5109, allocations: 442.1 kB / 0.6174 GB, free: 9.617 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01499/0.5259, allocations: 5.118 MB / 0.6224 GB, free: 4.488 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.526, allocations: 0 / 0.6224 GB, free: 4.488 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.526, allocations: 0 / 0.6224 GB, free: 4.488 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.795e-05/0.526, allocations: 0 / 0.6224 GB, free: 4.488 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.005276/0.5313, allocations: 1.691 MB / 0.6241 GB, free: 2.746 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.5314, allocations: 8.031 kB / 0.6241 GB, free: 2.738 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002268/0.5337, allocations: 295.7 kB / 0.6243 GB, free: 2.449 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.5348, allocations: 0.5872 MB / 0.6249 GB, free: 1.82 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/0.5349, allocations: 113.3 kB / 0.625 GB, free: 1.695 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.535, allocations: 68.09 kB / 0.6251 GB, free: 1.629 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002546/0.5376, allocations: 1.193 MB / 0.6263 GB, free: 344 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.5376, allocations: 0 / 0.6263 GB, free: 344 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.601e-05/0.5377, allocations: 24 kB / 0.6263 GB, free: 320 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.205e-05/0.5378, allocations: 53.2 kB / 0.6263 GB, free: 268 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00247/0.5403, allocations: 1.027 MB / 0.6273 GB, free: 15.23 MB / 494.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.006542/0.5468, allocations: 5.615 MB / 0.6328 GB, free: 9.246 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002198/0.549, allocations: 0.7632 MB / 0.6336 GB, free: 8.469 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005661/0.5496, allocations: 285.5 kB / 0.6338 GB, free: 8.184 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0338/0.5834, allocations: 17.36 MB / 0.6508 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.329e-05/0.5835, allocations: 46.56 kB / 0.6508 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.455e-06/0.5835, allocations: 0 / 0.6508 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.006904/0.5905, allocations: 2.277 MB / 0.6531 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.346e-05/0.5906, allocations: 158.7 kB / 0.6532 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007377/0.5913, allocations: 0.621 MB / 0.6538 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.65e-05/0.5914, allocations: 33.7 kB / 0.6538 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003182/0.5917, allocations: 387.2 kB / 0.6542 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.5919, allocations: 173.6 kB / 0.6544 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/0.5921, allocations: 162.4 kB / 0.6545 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001841/0.5923, allocations: 382.7 kB / 0.6549 GB, free: 312 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005902/0.5929, allocations: 285.8 kB / 0.6552 GB, free: 24 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009945/0.5939, allocations: 0.6044 MB / 0.6558 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.5954, allocations: 0.8987 MB / 0.6566 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.5954, allocations: 4 kB / 0.6566 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001718/0.5971, allocations: 0.957 MB / 0.6576 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.5971, allocations: 16.25 kB / 0.6576 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.5972, allocations: 11.98 kB / 0.6576 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003088/0.5975, allocations: 64.83 kB / 0.6577 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.5987, allocations: 295.6 kB / 0.6579 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.6003, allocations: 2.078 MB / 0.66 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005664/0.6009, allocations: 43.97 kB / 0.66 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.531e-05/0.601, allocations: 43.98 kB / 0.6601 GB, free: 10.54 MB / 0.5137 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.0004199/0.6014, allocations: 281 kB / 0.6603 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.6016, allocations: 75.09 kB / 0.6604 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003111/0.6047, allocations: 2.547 MB / 0.6629 GB, free: 7.629 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.917e-05/0.6047, allocations: 35.95 kB / 0.6629 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.6047, allocations: 0 / 0.6629 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.6047, allocations: 3.984 kB / 0.6629 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004472/0.6092, allocations: 3.761 MB / 0.6666 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.6092, allocations: 4 kB / 0.6666 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.6103, allocations: 223.7 kB / 0.6668 GB, free: 3.535 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000362/0.6107, allocations: 92.69 kB / 0.6669 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.867e-05/0.6107, allocations: 12 kB / 0.6669 GB, free: 3.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.6123, allocations: 2.09 MB / 0.669 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.6124, allocations: 0 / 0.669 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003122/0.6155, allocations: 2.347 MB / 0.6712 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003979/0.6159, allocations: 247.3 kB / 0.6715 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.6161, allocations: 35.69 kB / 0.6715 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.6166, allocations: 31.97 kB / 0.6715 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.6167, allocations: 52.38 kB / 0.6716 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.873e-05/0.6168, allocations: 23.98 kB / 0.6716 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008282/0.6176, allocations: 0.5693 MB / 0.6722 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6176, allocations: 0 / 0.6722 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00341/0.621, allocations: 1.089 MB / 0.6732 GB, free: 12.74 MB / 0.5294 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.005006/0.626, allocations: 1.22 MB / 0.6744 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002488/0.6285, allocations: 1.096 MB / 0.6755 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.6286, allocations: 4.062 kB / 0.6755 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.6301, allocations: 0.8049 MB / 0.6763 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002037/0.6322, allocations: 397.8 kB / 0.6767 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004032/0.6362, allocations: 2.518 MB / 0.6791 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008212/0.637, allocations: 1.157 MB / 0.6803 GB, free: 5.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.6373, allocations: 75.42 kB / 0.6803 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of SimCode: time 1.132e-06/0.6373, allocations: 0 / 0.6803 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of Templates: time 0.3411/0.9783, allocations: 39.63 MB / 0.719 GB, free: 172.8 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,volume.medium.p Variables in the result:time,volume.medium.h,volume.medium.p