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.001119/0.001119, allocations: 110 kB / 17.78 MB, free: 5.289 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.001006/0.001006, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.443/1.443, allocations: 222.9 MB / 242.4 MB, free: 15.13 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.2158/0.2158, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 59.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4387/0.44, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04358/0.4836, allocations: 39.04 MB / 0.557 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0252/0.5088, allocations: 20.14 MB / 0.5767 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009507/0.5098, allocations: 19.88 kB / 0.5767 GB, free: 0.668 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.5112, allocations: 449.3 kB / 0.5772 GB, free: 232 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01532/0.5266, allocations: 5.113 MB / 0.5821 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007959/0.5345, allocations: 2.551 MB / 0.5846 GB, free: 8.562 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003221/0.5378, allocations: 2.001 MB / 0.5866 GB, free: 6.551 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008044/0.5386, allocations: 0.4975 MB / 0.5871 GB, free: 6.039 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009654/0.5483, allocations: 4.172 MB / 0.5912 GB, free: 1.812 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01188/0.5602, allocations: 5.424 MB / 0.5964 GB, free: 12.3 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002871/0.5605, allocations: 76 kB / 0.5965 GB, free: 12.23 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01543/0.576, allocations: 7.387 MB / 0.6037 GB, free: 4.832 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005311/0.5765, allocations: 295.1 kB / 0.604 GB, free: 4.543 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007454/0.5773, allocations: 462 kB / 0.6045 GB, free: 4.09 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01473/0.592, allocations: 5.114 MB / 0.6095 GB, free: 14.96 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.5921, allocations: 0 / 0.6095 GB, free: 14.96 MB / 478.1 MB Notification: Performance of FrontEnd: time 5.22e-06/0.5921, allocations: 0 / 0.6095 GB, free: 14.96 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.5921, allocations: 3.938 kB / 0.6095 GB, free: 14.96 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.005352/0.5975, allocations: 1.668 MB / 0.6111 GB, free: 13.24 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/0.5975, allocations: 8.031 kB / 0.6111 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002168/0.5997, allocations: 299.7 kB / 0.6114 GB, free: 12.94 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.6008, allocations: 0.5833 MB / 0.6119 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.6009, allocations: 113.2 kB / 0.6121 GB, free: 12.19 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.601, allocations: 60.12 kB / 0.6121 GB, free: 12.13 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.6035, allocations: 1.162 MB / 0.6132 GB, free: 10.87 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.837e-05/0.6035, allocations: 7.938 kB / 0.6133 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.971e-05/0.6036, allocations: 24 kB / 0.6133 GB, free: 10.84 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.962e-05/0.6037, allocations: 41.3 kB / 0.6133 GB, free: 10.8 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.6055, allocations: 0.8479 MB / 0.6141 GB, free: 9.949 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.007107/0.6126, allocations: 5.489 MB / 0.6195 GB, free: 4.082 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.6139, allocations: 0.5725 MB / 0.6201 GB, free: 3.492 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003719/0.6143, allocations: 233.4 kB / 0.6203 GB, free: 3.262 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1021/0.7164, allocations: 46.41 MB / 0.6656 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.203e-05/0.7165, allocations: 50.5 kB / 0.6657 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=42): time 2.535e-06/0.7165, allocations: 0 / 0.6657 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of matching and sorting (n=46): time 0.0059/0.7224, allocations: 1.93 MB / 0.6675 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.7226, allocations: 162.2 kB / 0.6677 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.7236, allocations: 0.621 MB / 0.6683 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.568e-05/0.7237, allocations: 33.7 kB / 0.6683 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003236/0.724, allocations: 399.2 kB / 0.6687 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.7242, allocations: 169.7 kB / 0.6689 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002642/0.7245, allocations: 154.5 kB / 0.669 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001992/0.7247, allocations: 378.8 kB / 0.6694 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000407/0.7251, allocations: 221.9 kB / 0.6696 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006556/0.7258, allocations: 0.5717 MB / 0.6702 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.7269, allocations: 0.8407 MB / 0.671 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.727, allocations: 8 kB / 0.671 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001545/0.7285, allocations: 0.8668 MB / 0.6718 GB, free: 8.695 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.7285, allocations: 12 kB / 0.6718 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.7286, allocations: 12 kB / 0.6718 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003381/0.7289, allocations: 61.64 kB / 0.6719 GB, free: 8.609 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.7301, allocations: 283.6 kB / 0.6722 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.7318, allocations: 2.07 MB / 0.6742 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005391/0.7324, allocations: 36.06 kB / 0.6742 GB, free: 6.066 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-05/0.7325, allocations: 44 kB / 0.6743 GB, free: 6.023 MB / 0.5294 GB 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.0004365/0.7329, allocations: 267.8 kB / 0.6745 GB, free: 5.754 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.7331, allocations: 71.16 kB / 0.6746 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/0.7357, allocations: 2.208 MB / 0.6768 GB, free: 3.461 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-05/0.7357, allocations: 27.95 kB / 0.6768 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.7358, allocations: 3.938 kB / 0.6768 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.7358, allocations: 11.92 kB / 0.6768 GB, free: 3.418 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003777/0.7395, allocations: 3.272 MB / 0.68 GB, free: 72 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.7396, allocations: 7.875 kB / 0.68 GB, free: 64 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009276/0.7405, allocations: 195.8 kB / 0.6802 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003555/0.7409, allocations: 80.78 kB / 0.6803 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.774e-05/0.7409, allocations: 12 kB / 0.6803 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.7426, allocations: 2.098 MB / 0.6823 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.7427, allocations: 32 / 0.6823 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.7451, allocations: 1.986 MB / 0.6843 GB, free: 11.51 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/0.7456, allocations: 243.4 kB / 0.6845 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.7457, allocations: 27.83 kB / 0.6845 GB, free: 11.22 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005497/0.7463, allocations: 36.12 kB / 0.6846 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.216e-05/0.7464, allocations: 32.39 kB / 0.6846 GB, free: 11.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.088e-05/0.7464, allocations: 23.98 kB / 0.6846 GB, free: 11.13 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000732/0.7472, allocations: 0.5068 MB / 0.6851 GB, free: 10.62 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7472, allocations: 0 / 0.6851 GB, free: 10.62 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003649/0.7508, allocations: 1.089 MB / 0.6862 GB, free: 9.535 MB / 0.545 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: 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.005327/0.7562, allocations: 1.219 MB / 0.6874 GB, free: 8.312 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002205/0.7584, allocations: 0.9395 MB / 0.6883 GB, free: 7.379 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.7585, allocations: 0 / 0.6883 GB, free: 7.379 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.7598, allocations: 0.6757 MB / 0.6889 GB, free: 6.699 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002187/0.762, allocations: 373.9 kB / 0.6893 GB, free: 6.344 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004102/0.7661, allocations: 2.239 MB / 0.6915 GB, free: 4.078 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008921/0.767, allocations: 1.121 MB / 0.6926 GB, free: 2.93 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009881/0.768, allocations: 449.3 kB / 0.693 GB, free: 2.488 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.7682, allocations: 67.44 kB / 0.6931 GB, free: 2.422 MB / 0.545 GB Notification: Performance of SimCode: time 5.11e-07/0.7682, allocations: 0 / 0.6931 GB, free: 2.422 MB / 0.545 GB Notification: Performance of Templates: time 0.3641/1.132, allocations: 46.23 MB / 0.7382 GB, free: 194.1 MB / 0.5762 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