Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001117/0.001117, allocations: 108.3 kB / 16.41 MB, free: 6.473 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.001141/0.001141, allocations: 188.1 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.239/0.239, allocations: 43.53 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 63.91 kB / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1644, allocations: 57.79 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04314/0.2076, allocations: 39.04 MB / 0.526 GB, free: 4.602 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3988/0.6064, allocations: 20.15 MB / 0.5457 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.6076, allocations: 20.91 kB / 0.5457 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001533/0.6092, allocations: 442.2 kB / 0.5461 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02153/0.6308, allocations: 5.128 MB / 0.5511 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01038/0.6412, allocations: 2.565 MB / 0.5537 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003509/0.6447, allocations: 1.984 MB / 0.5556 GB, free: 2.188 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007637/0.6455, allocations: 499.9 kB / 0.5561 GB, free: 2.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01121/0.6567, allocations: 4.168 MB / 0.5601 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01341/0.6701, allocations: 5.439 MB / 0.5654 GB, free: 15.01 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003554/0.6706, allocations: 71.22 kB / 0.5655 GB, free: 15.01 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02368/0.6942, allocations: 7.379 MB / 0.5727 GB, free: 11.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007886/0.6951, allocations: 282.5 kB / 0.573 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.6961, allocations: 449.2 kB / 0.5734 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01966/0.7158, allocations: 5.104 MB / 0.5784 GB, free: 8.254 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.7159, allocations: 0 / 0.5784 GB, free: 8.254 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.7159, allocations: 3.938 kB / 0.5784 GB, free: 8.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.7159, allocations: 0 / 0.5784 GB, free: 8.25 MB / 430.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.005488/0.7214, allocations: 1.682 MB / 0.58 GB, free: 7.086 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.7214, allocations: 9.469 kB / 0.5801 GB, free: 7.086 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002323/0.7238, allocations: 301.2 kB / 0.5803 GB, free: 6.914 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.7249, allocations: 0.5836 MB / 0.5809 GB, free: 6.301 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.7251, allocations: 120.3 kB / 0.581 GB, free: 6.176 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.7253, allocations: 60.38 kB / 0.5811 GB, free: 6.117 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002642/0.7279, allocations: 1.19 MB / 0.5822 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.728, allocations: 4 kB / 0.5823 GB, free: 4.84 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.452e-05/0.728, allocations: 29.95 kB / 0.5823 GB, free: 4.812 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.721e-05/0.7281, allocations: 50.8 kB / 0.5823 GB, free: 4.766 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.7309, allocations: 1.027 MB / 0.5833 GB, free: 3.738 MB / 430.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.006816/0.7377, allocations: 5.595 MB / 0.5888 GB, free: 13.81 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002436/0.7402, allocations: 0.7655 MB / 0.5895 GB, free: 13.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006165/0.7408, allocations: 290.2 kB / 0.5898 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03762/0.7784, allocations: 15.93 MB / 0.6054 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.437e-05/0.7786, allocations: 42.56 kB / 0.6054 GB, free: 10.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=45): time 4.127e-06/0.7786, allocations: 0 / 0.6054 GB, free: 10.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=49): time 0.008569/0.7872, allocations: 2.282 MB / 0.6076 GB, free: 8.566 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.7874, allocations: 166.6 kB / 0.6078 GB, free: 8.367 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.7886, allocations: 0.6055 MB / 0.6084 GB, free: 7.762 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.231e-05/0.7887, allocations: 37.7 kB / 0.6084 GB, free: 7.719 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/0.7891, allocations: 385 kB / 0.6088 GB, free: 7.344 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.7893, allocations: 173 kB / 0.609 GB, free: 7.176 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003036/0.7896, allocations: 166.5 kB / 0.6091 GB, free: 7.008 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002899/0.7899, allocations: 374.8 kB / 0.6095 GB, free: 6.633 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007102/0.7906, allocations: 281.8 kB / 0.6098 GB, free: 6.359 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.7917, allocations: 0.6082 MB / 0.6103 GB, free: 5.605 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001837/0.7935, allocations: 0.8948 MB / 0.6112 GB, free: 4.566 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.757e-05/0.7936, allocations: 4 kB / 0.6112 GB, free: 4.562 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002426/0.796, allocations: 0.9683 MB / 0.6122 GB, free: 3.586 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.7961, allocations: 12 kB / 0.6122 GB, free: 3.574 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.7961, allocations: 8 kB / 0.6122 GB, free: 3.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003376/0.7964, allocations: 65.45 kB / 0.6122 GB, free: 3.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.7978, allocations: 307.5 kB / 0.6125 GB, free: 3.199 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.7998, allocations: 2.075 MB / 0.6146 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007421/0.8005, allocations: 44.17 kB / 0.6146 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.873e-05/0.8006, allocations: 43.98 kB / 0.6147 GB, free: 0.8789 MB / 462.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.0006056/0.8012, allocations: 281.2 kB / 0.6149 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000214/0.8014, allocations: 75.09 kB / 0.615 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/0.8049, allocations: 2.545 MB / 0.6175 GB, free: 13.97 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.582e-05/0.8049, allocations: 35.94 kB / 0.6175 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.8049, allocations: 0 / 0.6175 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.8049, allocations: 0 / 0.6175 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005262/0.8102, allocations: 3.762 MB / 0.6212 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.8102, allocations: 0 / 0.6212 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.8114, allocations: 227.7 kB / 0.6214 GB, free: 9.891 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004361/0.8119, allocations: 84.78 kB / 0.6215 GB, free: 9.805 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.123e-05/0.8119, allocations: 12 kB / 0.6215 GB, free: 9.793 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002422/0.8143, allocations: 2.101 MB / 0.6235 GB, free: 7.523 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.8144, allocations: 0 / 0.6235 GB, free: 7.523 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003363/0.8177, allocations: 2.347 MB / 0.6258 GB, free: 5.164 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004592/0.8182, allocations: 251.2 kB / 0.6261 GB, free: 4.898 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001977/0.8184, allocations: 35.69 kB / 0.6261 GB, free: 4.863 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005683/0.819, allocations: 36.03 kB / 0.6261 GB, free: 4.828 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.8192, allocations: 48.44 kB / 0.6262 GB, free: 4.781 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-05/0.8192, allocations: 23.98 kB / 0.6262 GB, free: 4.758 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00087/0.8201, allocations: 0.5615 MB / 0.6268 GB, free: 4.191 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8201, allocations: 0 / 0.6268 GB, free: 4.191 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004484/0.8246, allocations: 1.089 MB / 0.6278 GB, free: 3.102 MB / 478.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.007272/0.8319, allocations: 1.214 MB / 0.629 GB, free: 1.984 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003031/0.8349, allocations: 1.104 MB / 0.6301 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.8349, allocations: 4 kB / 0.6301 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001749/0.8367, allocations: 0.8168 MB / 0.6309 GB, free: 64 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002451/0.8392, allocations: 403.2 kB / 0.6313 GB, free: 15.67 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004532/0.8437, allocations: 2.474 MB / 0.6337 GB, free: 13.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009744/0.8447, allocations: 1.157 MB / 0.6348 GB, free: 11.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009605/0.8457, allocations: 436.9 kB / 0.6352 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002265/0.8459, allocations: 67.42 kB / 0.6353 GB, free: 11.49 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8459, allocations: 0 / 0.6353 GB, free: 11.49 MB / 494.1 MB Notification: Performance of Templates: time 0.07274/0.9187, allocations: 47.04 MB / 0.6812 GB, free: 12.46 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches