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.001049/0.001049, allocations: 108.1 kB / 18.45 MB, free: 4.602 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.001076/0.001076, allocations: 180.2 kB / 19.38 MB, free: 3.684 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.251/1.251, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.1896/0.1896, allocations: 44.19 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 67.91 kB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3065, allocations: 60.82 MB / 0.5196 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04144/0.348, allocations: 39.02 MB / 0.5577 GB, free: 4.914 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0236/0.3716, allocations: 20.16 MB / 0.5774 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000994/0.3727, allocations: 19.88 kB / 0.5774 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001437/0.3742, allocations: 449.3 kB / 0.5778 GB, free: 240 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01399/0.3882, allocations: 5.109 MB / 0.5828 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006735/0.3949, allocations: 2.567 MB / 0.5853 GB, free: 8.559 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002696/0.3976, allocations: 1.977 MB / 0.5872 GB, free: 6.57 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009048/0.3986, allocations: 493.5 kB / 0.5877 GB, free: 6.074 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008715/0.4073, allocations: 4.172 MB / 0.5918 GB, free: 1.848 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01017/0.4175, allocations: 5.44 MB / 0.5971 GB, free: 12.32 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003393/0.4179, allocations: 72 kB / 0.5972 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01461/0.4325, allocations: 7.383 MB / 0.6044 GB, free: 4.859 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006248/0.4332, allocations: 291.2 kB / 0.6047 GB, free: 4.574 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.4343, allocations: 454 kB / 0.6051 GB, free: 4.129 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01471/0.449, allocations: 5.102 MB / 0.6101 GB, free: 15.02 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.449, allocations: 0 / 0.6101 GB, free: 15.02 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.4491, allocations: 0 / 0.6101 GB, free: 15.02 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.914e-05/0.4491, allocations: 4 kB / 0.6101 GB, free: 15.01 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.005824/0.4549, allocations: 1.684 MB / 0.6117 GB, free: 13.28 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.455, allocations: 16.02 kB / 0.6117 GB, free: 13.26 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002572/0.4576, allocations: 299.6 kB / 0.612 GB, free: 12.97 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.4588, allocations: 0.5833 MB / 0.6126 GB, free: 12.34 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.459, allocations: 117.3 kB / 0.6127 GB, free: 12.21 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.4592, allocations: 64.11 kB / 0.6128 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002961/0.4621, allocations: 1.185 MB / 0.6139 GB, free: 10.87 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.523e-05/0.4622, allocations: 7.922 kB / 0.6139 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.4623, allocations: 31.98 kB / 0.614 GB, free: 10.83 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.966e-05/0.4624, allocations: 41.3 kB / 0.614 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002766/0.4652, allocations: 1.027 MB / 0.615 GB, free: 9.758 MB / 478.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.006933/0.4721, allocations: 5.603 MB / 0.6205 GB, free: 3.781 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002429/0.4746, allocations: 0.7471 MB / 0.6212 GB, free: 3.016 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005918/0.4752, allocations: 293.5 kB / 0.6215 GB, free: 2.723 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03362/0.5088, allocations: 15.94 MB / 0.6371 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.5089, allocations: 39.28 kB / 0.6371 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 2.225e-06/0.5089, allocations: 0 / 0.6371 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.007125/0.5161, allocations: 2.275 MB / 0.6393 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/0.5162, allocations: 162.6 kB / 0.6395 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008029/0.517, allocations: 0.6055 MB / 0.6401 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.5171, allocations: 37.7 kB / 0.6401 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.5174, allocations: 399.1 kB / 0.6405 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.5175, allocations: 177.5 kB / 0.6406 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002412/0.5178, allocations: 158.5 kB / 0.6408 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.5179, allocations: 374.8 kB / 0.6412 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006313/0.5186, allocations: 281.8 kB / 0.6414 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000818/0.5194, allocations: 0.6082 MB / 0.642 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.5209, allocations: 0.9026 MB / 0.6429 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.5209, allocations: 4 kB / 0.6429 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001966/0.5229, allocations: 0.9571 MB / 0.6438 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.5229, allocations: 12.25 kB / 0.6438 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/0.5229, allocations: 12 kB / 0.6439 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/0.5232, allocations: 64.77 kB / 0.6439 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.5245, allocations: 299.6 kB / 0.6442 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/0.5262, allocations: 2.08 MB / 0.6462 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006429/0.5269, allocations: 39.98 kB / 0.6463 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.415e-05/0.527, allocations: 43.98 kB / 0.6463 GB, free: 6.797 MB / 0.4981 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.000466/0.5274, allocations: 281.2 kB / 0.6466 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.5276, allocations: 79.03 kB / 0.6467 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.5309, allocations: 2.539 MB / 0.6491 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.263e-05/0.5309, allocations: 39.94 kB / 0.6492 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.5309, allocations: 0 / 0.6492 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.531, allocations: 4 kB / 0.6492 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004588/0.5356, allocations: 3.753 MB / 0.6528 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.5356, allocations: 4 kB / 0.6529 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.5367, allocations: 227.7 kB / 0.6531 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003805/0.5371, allocations: 84.69 kB / 0.6531 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.618e-05/0.5372, allocations: 12 kB / 0.6532 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00204/0.5392, allocations: 2.094 MB / 0.6552 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.5393, allocations: 0 / 0.6552 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/0.5424, allocations: 2.347 MB / 0.6575 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003943/0.5428, allocations: 255.3 kB / 0.6577 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.543, allocations: 35.59 kB / 0.6578 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.5435, allocations: 31.97 kB / 0.6578 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.5437, allocations: 48.5 kB / 0.6579 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.13e-05/0.5437, allocations: 19.98 kB / 0.6579 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00076/0.5445, allocations: 0.5654 MB / 0.6584 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5445, allocations: 0 / 0.6584 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003194/0.5477, allocations: 1.085 MB / 0.6595 GB, free: 9.004 MB / 0.5137 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.005208/0.5529, allocations: 1.226 MB / 0.6607 GB, free: 7.781 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002675/0.5556, allocations: 1.1 MB / 0.6618 GB, free: 6.684 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5556, allocations: 4.062 kB / 0.6618 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.5572, allocations: 0.801 MB / 0.6625 GB, free: 5.875 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/0.5594, allocations: 402.2 kB / 0.6629 GB, free: 5.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.5635, allocations: 2.514 MB / 0.6654 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007541/0.5643, allocations: 1.161 MB / 0.6665 GB, free: 1.758 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.5645, allocations: 71.44 kB / 0.6666 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of SimCode: time 6.91e-07/0.5645, allocations: 0 / 0.6666 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of Templates: time 0.05918/0.6237, allocations: 39.54 MB / 0.7052 GB, free: 10.16 MB / 0.5606 GB 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 -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