Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.001842/0.001842, allocations: 109.8 kB / 19.69 MB, free: 2.199 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.002242/0.002242, allocations: 185.2 kB / 22.98 MB, free: 5.062 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 207.6 MB / 233.7 MB, free: 10 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2371/0.2371, allocations: 44.25 MB / 330.2 MB, free: 9.531 MB / 270.1 MB
"
[Timeout remaining time 179]
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.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete")
translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660]
"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.002248/0.002248, allocations: 72.45 kB / 467.9 MB, free: 4.039 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1337, allocations: 61.04 MB / 0.5166 GB, free: 6.863 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.315/0.4486, allocations: 28.5 MB / 0.5444 GB, free: 10.09 MB / 414.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01589/0.4645, allocations: 13.39 MB / 0.5575 GB, free: 7.023 MB / 414.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0005995/0.4651, allocations: 13.47 kB / 0.5575 GB, free: 7.016 MB / 414.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001046/0.4662, allocations: 254.5 kB / 0.5578 GB, free: 6.891 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.01486/0.481, allocations: 3.665 MB / 0.5613 GB, free: 5.953 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.008173/0.4892, allocations: 2.381 MB / 0.5637 GB, free: 5 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001686/0.4909, allocations: 0.9039 MB / 0.5645 GB, free: 4.57 MB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004484/0.4913, allocations: 212.3 kB / 0.5647 GB, free: 4.477 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0009667/0.4923, allocations: 453.5 kB / 0.5652 GB, free: 4.273 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003605/0.4927, allocations: 282 kB / 0.5654 GB, free: 4.152 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.672e-05/0.4927, allocations: 34 kB / 0.5655 GB, free: 4.152 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.01897/0.5117, allocations: 7.251 MB / 0.5726 GB, free: 1.535 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002552/0.512, allocations: 102 kB / 0.5727 GB, free: 1.457 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000487/0.5125, allocations: 224.2 kB / 0.5729 GB, free: 1.32 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0176/0.5301, allocations: 4.414 MB / 0.5772 GB, free: 14.5 MB / 430.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.5301, allocations: 0 / 0.5772 GB, free: 14.5 MB / 430.1 MB
Notification: Performance of FrontEnd: time 1.784e-06/0.5301, allocations: 0 / 0.5772 GB, free: 14.5 MB / 430.1 MB
Notification: Performance of Transformations before backend: time 1.577e-05/0.5301, allocations: 9.219 kB / 0.5772 GB, free: 14.5 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: 73
 * Number of variables: 73
Notification: Performance of Generate backend data structure: time 0.005757/0.5358, allocations: 1.187 MB / 0.5783 GB, free: 13.65 MB / 430.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.5359, allocations: 8.75 kB / 0.5784 GB, free: 13.65 MB / 430.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001913/0.5378, allocations: 218.2 kB / 0.5786 GB, free: 13.56 MB / 430.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007525/0.5386, allocations: 319.7 kB / 0.5789 GB, free: 13.29 MB / 430.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.764e-05/0.5386, allocations: 33.12 kB / 0.5789 GB, free: 13.27 MB / 430.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.461e-05/0.5387, allocations: 26.62 kB / 0.5789 GB, free: 13.27 MB / 430.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.5404, allocations: 0.5834 MB / 0.5795 GB, free: 12.88 MB / 430.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.5404, allocations: 1.5 kB / 0.5795 GB, free: 12.88 MB / 430.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.678e-05/0.5405, allocations: 15.09 kB / 0.5795 GB, free: 12.87 MB / 430.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.5405, allocations: 8.281 kB / 0.5795 GB, free: 12.87 MB / 430.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.5422, allocations: 0.5282 MB / 0.58 GB, free: 12.61 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.003818/0.546, allocations: 2.505 MB / 0.5825 GB, free: 10.26 MB / 430.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.5477, allocations: 450 kB / 0.5829 GB, free: 10.03 MB / 430.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.5482, allocations: 177.5 kB / 0.5831 GB, free: 9.938 MB / 430.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.04924/0.5974, allocations: 12.67 MB / 0.5954 GB, free: 2.484 MB / 430.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.666e-05/0.5975, allocations: 34.56 kB / 0.5955 GB, free: 2.441 MB / 430.1 MB
Notification: Performance of pre-optimization done (n=25): time 2.695e-06/0.5975, allocations: 0 / 0.5955 GB, free: 2.441 MB / 430.1 MB
Notification: Performance of matching and sorting (n=25): time 0.003241/0.6007, allocations: 0.7942 MB / 0.5963 GB, free: 1.641 MB / 430.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.231e-05/0.6008, allocations: 110.8 kB / 0.5964 GB, free: 1.508 MB / 430.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.6013, allocations: 316.4 kB / 0.5967 GB, free: 1.191 MB / 430.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.821e-05/0.6013, allocations: 25.7 kB / 0.5967 GB, free: 1.16 MB / 430.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.6015, allocations: 208.6 kB / 0.5969 GB, free: 0.9531 MB / 430.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.6016, allocations: 87.27 kB / 0.597 GB, free: 0.8672 MB / 430.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.6017, allocations: 69.69 kB / 0.597 GB, free: 0.793 MB / 430.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001688/0.6019, allocations: 346.8 kB / 0.5974 GB, free: 456 kB / 430.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004295/0.6023, allocations: 135.9 kB / 0.5975 GB, free: 320 kB / 430.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005088/0.6028, allocations: 234.9 kB / 0.5977 GB, free: 44 kB / 430.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000933/0.6038, allocations: 369.2 kB / 0.5981 GB, free: 15.65 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.6038, allocations: 0 / 0.5981 GB, free: 15.65 MB / 446.1 MB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.001133/0.6049, allocations: 424.9 kB / 0.5985 GB, free: 15.23 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.6049, allocations: 8 kB / 0.5985 GB, free: 15.22 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.605, allocations: 0 / 0.5985 GB, free: 15.22 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.605, allocations: 4.312 kB / 0.5985 GB, free: 15.21 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.6053, allocations: 92.62 kB / 0.5986 GB, free: 15.12 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.6053, allocations: 4 kB / 0.5986 GB, free: 15.12 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/0.6057, allocations: 43.75 kB / 0.5986 GB, free: 15.08 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.6058, allocations: 16 kB / 0.5986 GB, free: 15.06 MB / 446.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 11
 * Number of states: 0 ()
 * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (35):
 * Single equations (assignments): 35
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0002519/0.606, allocations: 161.7 kB / 0.5988 GB, free: 14.89 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.6061, allocations: 43.7 kB / 0.5988 GB, free: 14.85 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00287/0.609, allocations: 1.966 MB / 0.6008 GB, free: 12.88 MB / 446.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.421e-05/0.6091, allocations: 39.88 kB / 0.6008 GB, free: 12.84 MB / 446.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6091, allocations: 0 / 0.6008 GB, free: 12.84 MB / 446.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.6091, allocations: 0 / 0.6008 GB, free: 12.84 MB / 446.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00133/0.6104, allocations: 1.015 MB / 0.6018 GB, free: 11.77 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.6104, allocations: 0 / 0.6018 GB, free: 11.77 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.6107, allocations: 72.5 kB / 0.6019 GB, free: 11.7 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.6107, allocations: 8 kB / 0.6019 GB, free: 11.7 MB / 446.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.6108, allocations: 4 kB / 0.6019 GB, free: 11.69 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.746e-06/0.6108, allocations: 11.92 kB / 0.6019 GB, free: 11.68 MB / 446.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.6108, allocations: 3.625 kB / 0.6019 GB, free: 11.68 MB / 446.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.6125, allocations: 1.112 MB / 0.603 GB, free: 10.55 MB / 446.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.6127, allocations: 83.2 kB / 0.603 GB, free: 10.47 MB / 446.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.645e-05/0.6127, allocations: 27.78 kB / 0.6031 GB, free: 10.44 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.613, allocations: 31.84 kB / 0.6031 GB, free: 10.41 MB / 446.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.6132, allocations: 35.94 kB / 0.6031 GB, free: 10.38 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.6132, allocations: 8 kB / 0.6031 GB, free: 10.37 MB / 446.1 MB
Notification: Performance of sorting global known variables: time 0.0004161/0.6136, allocations: 327.1 kB / 0.6035 GB, free: 10.05 MB / 446.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.6136, allocations: 0 / 0.6035 GB, free: 10.05 MB / 446.1 MB
Notification: Performance of remove unused functions: time 0.004589/0.6182, allocations: 1.002 MB / 0.6044 GB, free: 9.043 MB / 446.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (35):
 * Single equations (assignments): 26
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 9
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.008068/0.6263, allocations: 1.172 MB / 0.6056 GB, free: 7.891 MB / 446.1 MB
Notification: Performance of simCode: created initialization part: time 0.001701/0.628, allocations: 0.599 MB / 0.6062 GB, free: 7.289 MB / 446.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.628, allocations: 0 / 0.6062 GB, free: 7.289 MB / 446.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0007895/0.6288, allocations: 418.2 kB / 0.6066 GB, free: 6.879 MB / 446.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.6302, allocations: 217.5 kB / 0.6068 GB, free: 6.672 MB / 446.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.6329, allocations: 1.563 MB / 0.6083 GB, free: 5.082 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/0.6335, allocations: 0.9638 MB / 0.6092 GB, free: 4.086 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.0005259/0.634, allocations: 266.6 kB / 0.6095 GB, free: 3.832 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.6342, allocations: 47.42 kB / 0.6095 GB, free: 3.785 MB / 446.1 MB
Notification: Performance of SimCode: time 1.093e-06/0.6342, allocations: 0 / 0.6095 GB, free: 3.785 MB / 446.1 MB
Notification: Performance of Templates: time 0.07342/0.7076, allocations: 40.1 MB / 0.6487 GB, free: 11.67 MB / 494.1 MB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660]
(rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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: 8.09643460996449]