Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 106.2 kB / 17.63 MB, free: 5.344 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.001457/0.001457, allocations: 192 kB / 18.56 MB, free: 4.434 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.286/1.286, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.2031/0.2031, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 55.62 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09545/0.09668, allocations: 60.83 MB / 469.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03738/0.1341, allocations: 39.02 MB / 0.4964 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2368/0.3709, allocations: 20.15 MB / 0.516 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007677/0.3717, allocations: 20.88 kB / 0.5161 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.373, allocations: 445.5 kB / 0.5165 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01338/0.3864, allocations: 5.111 MB / 0.5215 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007297/0.3937, allocations: 2.57 MB / 0.524 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002862/0.3966, allocations: 2.001 MB / 0.5259 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007045/0.3973, allocations: 0.4917 MB / 0.5264 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009137/0.4065, allocations: 4.157 MB / 0.5305 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01091/0.4174, allocations: 5.43 MB / 0.5358 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000293/0.4178, allocations: 77.72 kB / 0.5359 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01419/0.432, allocations: 7.224 MB / 0.5429 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004417/0.4324, allocations: 282.4 kB / 0.5432 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006991/0.4331, allocations: 463.6 kB / 0.5436 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009421/0.4426, allocations: 5.119 MB / 0.5486 GB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4426, allocations: 0 / 0.5486 GB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4426, allocations: 0 / 0.5486 GB, free: 13.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.4426, allocations: 0 / 0.5486 GB, free: 13.16 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.003906/0.4465, allocations: 1.661 MB / 0.5502 GB, free: 11.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.4466, allocations: 8.031 kB / 0.5503 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001957/0.4485, allocations: 304.3 kB / 0.5505 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007315/0.4493, allocations: 0.5582 MB / 0.5511 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.67e-05/0.4494, allocations: 110.9 kB / 0.5512 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/0.4495, allocations: 61.95 kB / 0.5513 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002225/0.4517, allocations: 1.164 MB / 0.5524 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.4518, allocations: 3.938 kB / 0.5524 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.106e-05/0.4518, allocations: 28 kB / 0.5524 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.726e-05/0.4519, allocations: 45.28 kB / 0.5525 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.4535, allocations: 0.844 MB / 0.5533 GB, free: 8.234 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.005499/0.459, allocations: 5.507 MB / 0.5587 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.4603, allocations: 0.5911 MB / 0.5592 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/0.4606, allocations: 217.6 kB / 0.5595 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09291/0.5536, allocations: 46.21 MB / 0.6046 GB, free: 14.07 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.528e-05/0.5537, allocations: 46.56 kB / 0.6046 GB, free: 14.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.825e-06/0.5537, allocations: 0 / 0.6046 GB, free: 14.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.005282/0.559, allocations: 1.919 MB / 0.6065 GB, free: 12.04 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.5591, allocations: 162.2 kB / 0.6066 GB, free: 11.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007469/0.5598, allocations: 0.6248 MB / 0.6073 GB, free: 11.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.462e-05/0.5599, allocations: 41.64 kB / 0.6073 GB, free: 11.17 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.5602, allocations: 397.7 kB / 0.6077 GB, free: 10.79 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.5603, allocations: 169 kB / 0.6078 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/0.5605, allocations: 158.5 kB / 0.608 GB, free: 10.46 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5607, allocations: 374.8 kB / 0.6083 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/0.5611, allocations: 221.9 kB / 0.6086 GB, free: 9.871 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/0.5617, allocations: 0.5718 MB / 0.6091 GB, free: 9.141 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.5627, allocations: 0.8368 MB / 0.6099 GB, free: 8.148 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.497e-06/0.5627, allocations: 8 kB / 0.6099 GB, free: 8.141 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00136/0.5641, allocations: 0.8675 MB / 0.6108 GB, free: 7.262 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.5642, allocations: 19.19 kB / 0.6108 GB, free: 7.246 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.5642, allocations: 12 kB / 0.6108 GB, free: 7.234 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.5644, allocations: 60.81 kB / 0.6109 GB, free: 7.172 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.5656, allocations: 283.6 kB / 0.6111 GB, free: 6.895 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/0.5673, allocations: 2.07 MB / 0.6132 GB, free: 4.664 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.5678, allocations: 27.94 kB / 0.6132 GB, free: 4.637 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.907e-05/0.5679, allocations: 47.98 kB / 0.6132 GB, free: 4.59 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.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.0003847/0.5683, allocations: 273.6 kB / 0.6135 GB, free: 4.312 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.5684, allocations: 75.19 kB / 0.6136 GB, free: 4.238 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002525/0.571, allocations: 2.224 MB / 0.6157 GB, free: 2.02 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/0.571, allocations: 31.89 kB / 0.6158 GB, free: 1.988 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.571, allocations: 3.938 kB / 0.6158 GB, free: 1.984 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.571, allocations: 3.984 kB / 0.6158 GB, free: 1.98 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003503/0.5745, allocations: 3.284 MB / 0.619 GB, free: 14.64 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.5746, allocations: 4.031 kB / 0.619 GB, free: 14.63 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008947/0.5755, allocations: 191.7 kB / 0.6192 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003239/0.5758, allocations: 84.69 kB / 0.6193 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/0.5759, allocations: 16 kB / 0.6193 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/0.5773, allocations: 2.09 MB / 0.6213 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.5773, allocations: 0 / 0.6213 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.5797, allocations: 1.989 MB / 0.6233 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003957/0.5801, allocations: 235.6 kB / 0.6235 GB, free: 9.828 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.5802, allocations: 31.69 kB / 0.6235 GB, free: 9.797 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/0.5808, allocations: 31.97 kB / 0.6235 GB, free: 9.766 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.397e-05/0.5809, allocations: 32.39 kB / 0.6236 GB, free: 9.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-05/0.581, allocations: 28.05 kB / 0.6236 GB, free: 9.703 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006546/0.5816, allocations: 0.5107 MB / 0.6241 GB, free: 9.191 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5816, allocations: 0 / 0.6241 GB, free: 9.191 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00336/0.585, allocations: 1.085 MB / 0.6252 GB, free: 8.105 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: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.005034/0.59, allocations: 1.217 MB / 0.6263 GB, free: 6.984 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002512/0.5926, allocations: 1.025 MB / 0.6273 GB, free: 5.965 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5926, allocations: 0 / 0.6273 GB, free: 5.965 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/0.5939, allocations: 0.6716 MB / 0.628 GB, free: 5.293 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.596, allocations: 392.4 kB / 0.6284 GB, free: 4.93 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003812/0.5999, allocations: 2.245 MB / 0.6306 GB, free: 2.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006935/0.6006, allocations: 1.122 MB / 0.6317 GB, free: 1.512 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009657/0.6016, allocations: 441.8 kB / 0.6321 GB, free: 1.074 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.6017, allocations: 67.42 kB / 0.6322 GB, free: 1.008 MB / 478.1 MB Notification: Performance of SimCode: time 2.023e-06/0.6017, allocations: 0 / 0.6322 GB, free: 1.008 MB / 478.1 MB Notification: Performance of Templates: time 0.06606/0.6678, allocations: 45.92 MB / 0.677 GB, free: 3.266 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches