Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002148/0.002148, allocations: 188.1 kB / 23.72 MB, free: 4.711 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
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(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97")
translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 51.92 kB / 370.9 MB, free: 9.363 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2315, allocations: 52.18 MB / 423.1 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01788/0.2494, allocations: 13.03 MB / 436.1 MB, free: 1.625 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01513/0.2645, allocations: 11.61 MB / 447.7 MB, free: 5.973 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.2646, allocations: 0 / 447.7 MB, free: 5.973 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003371/0.265, allocations: 75.55 kB / 447.8 MB, free: 5.898 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003085/0.2653, allocations: 87.42 kB / 447.9 MB, free: 5.812 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.01322/0.2785, allocations: 5.084 MB / 453 MB, free: 0.7305 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000369/0.2788, allocations: 235 kB / 453.2 MB, free: 0.5 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.409e-05/0.2789, allocations: 9.625 kB / 453.2 MB, free: 496 kB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004371/0.2793, allocations: 207.3 kB / 453.4 MB, free: 288 kB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.2795, allocations: 71.75 kB / 453.5 MB, free: 216 kB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.2795, allocations: 8 kB / 453.5 MB, free: 208 kB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.01322/0.2927, allocations: 7.005 MB / 460.5 MB, free: 9.188 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.846e-05/0.2928, allocations: 31.8 kB / 460.5 MB, free: 9.16 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.2929, allocations: 75.66 kB / 460.6 MB, free: 9.086 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.008574/0.3015, allocations: 3.874 MB / 464.5 MB, free: 5.203 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3015, allocations: 7.938 kB / 464.5 MB, free: 5.195 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.233e-06/0.3015, allocations: 0 / 464.5 MB, free: 5.195 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 6.753e-06/0.3015, allocations: 0 / 464.5 MB, free: 5.195 MB / 366.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 34
 * Number of variables: 34
Notification: Performance of Generate backend data structure: time 0.005105/0.3066, allocations: 1.091 MB / 465.6 MB, free: 4.07 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.3067, allocations: 8.031 kB / 465.6 MB, free: 4.062 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004857/0.3072, allocations: 52.8 kB / 465.6 MB, free: 4.012 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.3075, allocations: 158.3 kB / 465.8 MB, free: 3.832 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.3075, allocations: 12.66 kB / 465.8 MB, free: 3.82 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.033e-05/0.3075, allocations: 24.33 kB / 465.8 MB, free: 3.797 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.3089, allocations: 388.8 kB / 466.2 MB, free: 3.387 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.309, allocations: 0 / 466.2 MB, free: 3.387 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.743e-05/0.309, allocations: 8 kB / 466.2 MB, free: 3.379 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.872e-06/0.309, allocations: 4 kB / 466.2 MB, free: 3.375 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.3105, allocations: 351.5 kB / 466.6 MB, free: 3.031 MB / 366.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.001608/0.3121, allocations: 1.167 MB / 467.7 MB, free: 1.77 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0009033/0.3131, allocations: 271.7 kB / 468 MB, free: 1.477 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.3134, allocations: 106.9 kB / 468.1 MB, free: 1.363 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.09599/0.4094, allocations: 25.05 MB / 493.2 MB, free: 8.277 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.4094, allocations: 34.56 kB / 493.2 MB, free: 8.234 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=23): time 2.294e-06/0.4094, allocations: 0 / 493.2 MB, free: 8.234 MB / 398.1 MB
Notification: Performance of matching and sorting (n=33): time 0.007393/0.4168, allocations: 1.499 MB / 494.7 MB, free: 6.703 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.97e-05/0.4169, allocations: 106.8 kB / 494.8 MB, free: 6.574 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.417, allocations: 121.8 kB / 494.9 MB, free: 6.445 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.26e-05/0.417, allocations: 37.77 kB / 495 MB, free: 6.402 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.157e-05/0.4171, allocations: 104.6 kB / 495.1 MB, free: 6.297 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.4172, allocations: 122.9 kB / 495.2 MB, free: 6.176 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.4174, allocations: 73.47 kB / 495.2 MB, free: 6.098 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.000162/0.4175, allocations: 326.8 kB / 495.6 MB, free: 5.77 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004231/0.418, allocations: 132.3 kB / 495.7 MB, free: 5.641 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.4184, allocations: 194.8 kB / 495.9 MB, free: 5.426 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009091/0.4193, allocations: 354.5 kB / 496.2 MB, free: 5.055 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.4193, allocations: 0 / 496.2 MB, free: 5.055 MB / 398.1 MB
Notification: Performance of matching and sorting (n=41) (initialization): time 0.001176/0.4205, allocations: 434 kB / 496.7 MB, free: 4.621 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.4205, allocations: 4 kB / 496.7 MB, free: 4.617 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4205, allocations: 4 kB / 496.7 MB, free: 4.613 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002494/0.4208, allocations: 28.84 kB / 496.7 MB, free: 4.582 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.4213, allocations: 96.03 kB / 496.8 MB, free: 4.488 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004283/0.4217, allocations: 0.5562 MB / 497.3 MB, free: 3.906 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002904/0.422, allocations: 19.98 kB / 497.4 MB, free: 3.887 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.205e-05/0.4221, allocations: 19.98 kB / 497.4 MB, free: 3.867 MB / 398.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 8
 * Number of states: 0 ()
 * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (40):
 * Single equations (assignments): 39
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
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.0001563/0.4222, allocations: 133.9 kB / 497.5 MB, free: 3.727 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.4223, allocations: 15.91 kB / 497.5 MB, free: 3.711 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002478/0.4248, allocations: 1.506 MB / 499 MB, free: 2.199 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.808e-05/0.4248, allocations: 23.97 kB / 499.1 MB, free: 2.176 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.4248, allocations: 8.016 kB / 499.1 MB, free: 2.168 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4248, allocations: 0 / 499.1 MB, free: 2.168 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003282/0.4281, allocations: 2.014 MB / 0.4893 GB, free: 88 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4281, allocations: 4 kB / 0.4893 GB, free: 84 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004903/0.4286, allocations: 88.03 kB / 0.4894 GB, free: 15.99 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003231/0.4289, allocations: 72.7 kB / 0.4895 GB, free: 15.92 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.895e-05/0.429, allocations: 11.98 kB / 0.4895 GB, free: 15.91 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004331/0.4294, allocations: 0.5914 MB / 0.4901 GB, free: 15.29 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.4294, allocations: 8 kB / 0.4901 GB, free: 15.29 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.4319, allocations: 1.733 MB / 0.4918 GB, free: 13.52 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.432, allocations: 55.52 kB / 0.4918 GB, free: 13.46 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.086e-05/0.432, allocations: 8 kB / 0.4918 GB, free: 13.46 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003923/0.4324, allocations: 27.92 kB / 0.4919 GB, free: 13.43 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.4325, allocations: 35.88 kB / 0.4919 GB, free: 13.39 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-05/0.4325, allocations: 15.98 kB / 0.4919 GB, free: 13.38 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 6.289e-05/0.4326, allocations: 91.27 kB / 0.492 GB, free: 13.29 MB / 414.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4326, allocations: 0 / 0.492 GB, free: 13.29 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.002665/0.4353, allocations: 0.9672 MB / 0.4929 GB, free: 12.32 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 7
 * Number of states: 3 (medium.p,medium.h,V)
 * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (38):
 * Single equations (assignments): 31
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 6
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
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.00376/0.439, allocations: 1.148 MB / 0.4941 GB, free: 11.16 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.001481/0.4405, allocations: 0.6093 MB / 0.4947 GB, free: 10.55 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4405, allocations: 3.938 kB / 0.4947 GB, free: 10.55 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008343/0.4414, allocations: 468.6 kB / 0.4951 GB, free: 10.09 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008043/0.4422, allocations: 87.64 kB / 0.4952 GB, free: 10.01 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.4447, allocations: 1.324 MB / 0.4965 GB, free: 8.641 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.4452, allocations: 0.8177 MB / 0.4973 GB, free: 7.793 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0003494/0.4455, allocations: 137.8 kB / 0.4974 GB, free: 7.66 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.4457, allocations: 39.42 kB / 0.4975 GB, free: 7.621 MB / 414.1 MB
Notification: Performance of SimCode: time 4.91e-07/0.4457, allocations: 3.938 kB / 0.4975 GB, free: 7.617 MB / 414.1 MB
Notification: Performance of Templates: time 0.05289/0.4985, allocations: 36.84 MB / 0.5334 GB, free: 2.77 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 7.138506446965039]