Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001579/0.001579, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001704/0.001704, allocations: 211.8 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 230.3 MB / 258 MB, free: 8.223 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2234/0.2234, allocations: 46.94 MB / 361.4 MB, free: 4.375 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002281/0.002281, allocations: 91.83 kB / 0.4972 GB, free: 7.484 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3521, allocations: 66.03 MB / 0.5617 GB, free: 4.539 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03274/0.3848, allocations: 28.66 MB / 0.5896 GB, free: 7.785 MB / 430.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01735/0.4022, allocations: 13.39 MB / 0.6027 GB, free: 10.35 MB / 446.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003375/0.4025, allocations: 11.88 kB / 0.6027 GB, free: 10.34 MB / 446.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0007776/0.4033, allocations: 254.4 kB / 0.603 GB, free: 10.09 MB / 446.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.009826/0.4131, allocations: 3.665 MB / 0.6065 GB, free: 6.41 MB / 446.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.006437/0.4195, allocations: 2.406 MB / 0.6089 GB, free: 4.008 MB / 446.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001321/0.4209, allocations: 0.9042 MB / 0.6098 GB, free: 3.102 MB / 446.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003809/0.4212, allocations: 216.9 kB / 0.61 GB, free: 2.883 MB / 446.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0008041/0.4221, allocations: 454.2 kB / 0.6104 GB, free: 2.438 MB / 446.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003666/0.4224, allocations: 286.8 kB / 0.6107 GB, free: 2.156 MB / 446.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.153e-05/0.4225, allocations: 32 kB / 0.6107 GB, free: 2.125 MB / 446.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.01454/0.437, allocations: 7.262 MB / 0.6178 GB, free: 10.85 MB / 462.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.4372, allocations: 107.6 kB / 0.6179 GB, free: 10.75 MB / 462.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003632/0.4376, allocations: 219.1 kB / 0.6181 GB, free: 10.53 MB / 462.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01157/0.4492, allocations: 4.427 MB / 0.6224 GB, free: 6.094 MB / 462.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.4492, allocations: 0 / 0.6224 GB, free: 6.094 MB / 462.1 MB
Notification: Performance of FrontEnd: time 1.563e-06/0.4492, allocations: 4 kB / 0.6225 GB, free: 6.09 MB / 462.1 MB
Notification: Performance of Transformations before backend: time 1.362e-05/0.4492, allocations: 4 kB / 0.6225 GB, free: 6.086 MB / 462.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.003963/0.4532, allocations: 1.18 MB / 0.6236 GB, free: 4.871 MB / 462.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.4532, allocations: 12.03 kB / 0.6236 GB, free: 4.859 MB / 462.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001754/0.455, allocations: 216.4 kB / 0.6238 GB, free: 4.648 MB / 462.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007178/0.4557, allocations: 317.1 kB / 0.6241 GB, free: 4.309 MB / 462.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.36e-05/0.4557, allocations: 28.97 kB / 0.6242 GB, free: 4.281 MB / 462.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.4558, allocations: 32.38 kB / 0.6242 GB, free: 4.25 MB / 462.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.4573, allocations: 0.5785 MB / 0.6248 GB, free: 3.633 MB / 462.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.4574, allocations: 3.938 kB / 0.6248 GB, free: 3.629 MB / 462.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.4574, allocations: 16 kB / 0.6248 GB, free: 3.613 MB / 462.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.4574, allocations: 11.98 kB / 0.6248 GB, free: 3.602 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.459, allocations: 0.5254 MB / 0.6253 GB, free: 3.074 MB / 462.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.003365/0.4623, allocations: 2.515 MB / 0.6278 GB, free: 356 kB / 462.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001553/0.4639, allocations: 450.1 kB / 0.6282 GB, free: 15.9 MB / 478.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004292/0.4643, allocations: 177.6 kB / 0.6284 GB, free: 15.72 MB / 478.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.04496/0.5093, allocations: 13.15 MB / 0.6412 GB, free: 2.551 MB / 478.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.737e-05/0.5094, allocations: 34.56 kB / 0.6412 GB, free: 2.508 MB / 478.1 MB
Notification: Performance of pre-optimization done (n=25): time 2.715e-06/0.5094, allocations: 4 kB / 0.6412 GB, free: 2.504 MB / 478.1 MB
Notification: Performance of matching and sorting (n=25): time 0.003146/0.5125, allocations: 0.7897 MB / 0.642 GB, free: 1.707 MB / 478.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.94e-05/0.5126, allocations: 110.8 kB / 0.6421 GB, free: 1.574 MB / 478.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004386/0.513, allocations: 312.5 kB / 0.6424 GB, free: 1.266 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.5131, allocations: 29.7 kB / 0.6424 GB, free: 1.23 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.5133, allocations: 204.5 kB / 0.6426 GB, free: 1.027 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.5134, allocations: 91.25 kB / 0.6427 GB, free: 0.9375 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.5135, allocations: 73.62 kB / 0.6428 GB, free: 0.8594 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001702/0.5137, allocations: 346.8 kB / 0.6431 GB, free: 0.5117 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003899/0.5141, allocations: 135.9 kB / 0.6432 GB, free: 388 kB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004691/0.5145, allocations: 227.9 kB / 0.6435 GB, free: 120 kB / 478.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000824/0.5153, allocations: 361.1 kB / 0.6438 GB, free: 15.73 MB / 494.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.351e-06/0.5154, allocations: 4 kB / 0.6438 GB, free: 15.73 MB / 494.1 MB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.001052/0.5164, allocations: 417.9 kB / 0.6442 GB, free: 15.31 MB / 494.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.5164, allocations: 10.5 kB / 0.6442 GB, free: 15.3 MB / 494.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.5164, allocations: 4.312 kB / 0.6442 GB, free: 15.3 MB / 494.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.5165, allocations: 11.94 kB / 0.6442 GB, free: 15.29 MB / 494.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/0.5168, allocations: 79.88 kB / 0.6443 GB, free: 15.21 MB / 494.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.5168, allocations: 7.938 kB / 0.6443 GB, free: 15.2 MB / 494.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.5171, allocations: 47.75 kB / 0.6444 GB, free: 15.16 MB / 494.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.5171, allocations: 12 kB / 0.6444 GB, free: 15.14 MB / 494.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.0002243/0.5174, allocations: 162 kB / 0.6445 GB, free: 14.98 MB / 494.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.5175, allocations: 39.77 kB / 0.6446 GB, free: 14.94 MB / 494.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002824/0.5203, allocations: 1.972 MB / 0.6465 GB, free: 12.95 MB / 494.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.166e-05/0.5203, allocations: 39.88 kB / 0.6465 GB, free: 12.91 MB / 494.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.5203, allocations: 4 kB / 0.6465 GB, free: 12.91 MB / 494.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.5203, allocations: 0 / 0.6465 GB, free: 12.91 MB / 494.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.5215, allocations: 1.007 MB / 0.6475 GB, free: 11.85 MB / 494.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.5216, allocations: 0 / 0.6475 GB, free: 11.85 MB / 494.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000307/0.5219, allocations: 71.94 kB / 0.6476 GB, free: 11.78 MB / 494.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-06/0.5219, allocations: 4 kB / 0.6476 GB, free: 11.78 MB / 494.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.5219, allocations: 8 kB / 0.6476 GB, free: 11.77 MB / 494.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.5219, allocations: 3.938 kB / 0.6476 GB, free: 11.77 MB / 494.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5219, allocations: 3.938 kB / 0.6476 GB, free: 11.76 MB / 494.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.5236, allocations: 1.116 MB / 0.6487 GB, free: 10.63 MB / 494.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.5237, allocations: 95.08 kB / 0.6488 GB, free: 10.54 MB / 494.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.811e-05/0.5238, allocations: 19.84 kB / 0.6488 GB, free: 10.52 MB / 494.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.5241, allocations: 23.92 kB / 0.6488 GB, free: 10.49 MB / 494.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.5242, allocations: 35.94 kB / 0.6489 GB, free: 10.46 MB / 494.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.5242, allocations: 15.98 kB / 0.6489 GB, free: 10.44 MB / 494.1 MB
Notification: Performance of sorting global known variables: time 0.0003877/0.5246, allocations: 323.1 kB / 0.6492 GB, free: 10.12 MB / 494.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.5246, allocations: 0 / 0.6492 GB, free: 10.12 MB / 494.1 MB
Notification: Performance of remove unused functions: time 0.002911/0.5275, allocations: 1.01 MB / 0.6502 GB, free: 9.113 MB / 494.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.005129/0.5327, allocations: 1.177 MB / 0.6513 GB, free: 7.926 MB / 494.1 MB
Notification: Performance of simCode: created initialization part: time 0.00142/0.5341, allocations: 0.5949 MB / 0.6519 GB, free: 7.332 MB / 494.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5341, allocations: 0 / 0.6519 GB, free: 7.332 MB / 494.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0006951/0.5348, allocations: 421 kB / 0.6523 GB, free: 6.922 MB / 494.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.536, allocations: 211.6 kB / 0.6525 GB, free: 6.719 MB / 494.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.5387, allocations: 1.565 MB / 0.654 GB, free: 5.125 MB / 494.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006811/0.5394, allocations: 0.9677 MB / 0.655 GB, free: 4.129 MB / 494.1 MB
Notification: Performance of simCode: alias equations: time 0.0005876/0.5399, allocations: 274.8 kB / 0.6552 GB, free: 3.855 MB / 494.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.5401, allocations: 39.44 kB / 0.6553 GB, free: 3.816 MB / 494.1 MB
Notification: Performance of SimCode: time 9.52e-07/0.5401, allocations: 4 kB / 0.6553 GB, free: 3.812 MB / 494.1 MB
Notification: Performance of Templates: time 0.0653/0.6054, allocations: 40.18 MB / 0.6945 GB, free: 11.68 MB / 0.5294 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 7.802129435352981]