Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001837/0.001837, 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.002412/0.002412, allocations: 212.6 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.527/1.527, allocations: 230.3 MB / 258 MB, free: 8.262 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2373/0.2373, allocations: 46.93 MB / 361.3 MB, free: 4.402 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002354/0.002354, allocations: 80.06 kB / 0.4971 GB, free: 7.535 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3278, allocations: 66.05 MB / 0.5616 GB, free: 4.543 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03369/0.3614, allocations: 28.65 MB / 0.5896 GB, free: 7.793 MB / 430.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01723/0.3787, allocations: 13.38 MB / 0.6027 GB, free: 10.37 MB / 446.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003427/0.379, allocations: 15.88 kB / 0.6027 GB, free: 10.35 MB / 446.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0007677/0.3798, allocations: 250.4 kB / 0.6029 GB, free: 10.11 MB / 446.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.01011/0.3899, allocations: 3.681 MB / 0.6065 GB, free: 6.426 MB / 446.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.006421/0.3963, allocations: 2.387 MB / 0.6089 GB, free: 4.039 MB / 446.1 MB
Notification: Performance of NFFlatten.flatten: time 0.00125/0.3976, allocations: 0.9003 MB / 0.6097 GB, free: 3.137 MB / 446.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004062/0.398, allocations: 216.9 kB / 0.61 GB, free: 2.918 MB / 446.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0007989/0.3988, allocations: 458.1 kB / 0.6104 GB, free: 2.469 MB / 446.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003594/0.3991, allocations: 282.8 kB / 0.6107 GB, free: 2.191 MB / 446.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.819e-05/0.3992, allocations: 35.98 kB / 0.6107 GB, free: 2.156 MB / 446.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.01439/0.4136, allocations: 7.266 MB / 0.6178 GB, free: 10.88 MB / 462.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.4138, allocations: 103.7 kB / 0.6179 GB, free: 10.78 MB / 462.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003619/0.4141, allocations: 223 kB / 0.6181 GB, free: 10.56 MB / 462.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01016/0.4243, allocations: 4.435 MB / 0.6224 GB, free: 6.113 MB / 462.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4243, allocations: 0 / 0.6224 GB, free: 6.113 MB / 462.1 MB
Notification: Performance of FrontEnd: time 1.553e-06/0.4243, allocations: 0 / 0.6224 GB, free: 6.113 MB / 462.1 MB
Notification: Performance of Transformations before backend: time 8.216e-06/0.4243, allocations: 0 / 0.6224 GB, free: 6.113 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.003217/0.4275, allocations: 1.188 MB / 0.6236 GB, free: 4.891 MB / 462.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4276, allocations: 12.03 kB / 0.6236 GB, free: 4.879 MB / 462.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001779/0.4293, allocations: 212.5 kB / 0.6238 GB, free: 4.672 MB / 462.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000736/0.4301, allocations: 321.1 kB / 0.6241 GB, free: 4.328 MB / 462.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.024e-05/0.4301, allocations: 25.03 kB / 0.6241 GB, free: 4.305 MB / 462.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.47e-05/0.4302, allocations: 32.38 kB / 0.6242 GB, free: 4.273 MB / 462.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.4319, allocations: 0.5785 MB / 0.6247 GB, free: 3.656 MB / 462.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.4319, allocations: 0 / 0.6247 GB, free: 3.656 MB / 462.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.432, allocations: 12 kB / 0.6247 GB, free: 3.645 MB / 462.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.432, allocations: 11.98 kB / 0.6248 GB, free: 3.633 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001774/0.4338, allocations: 0.5293 MB / 0.6253 GB, free: 3.102 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.003605/0.4374, allocations: 2.519 MB / 0.6277 GB, free: 380 kB / 462.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.4391, allocations: 447.4 kB / 0.6282 GB, free: 15.93 MB / 478.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.4395, allocations: 172.7 kB / 0.6283 GB, free: 15.75 MB / 478.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.04908/0.4886, allocations: 13.16 MB / 0.6412 GB, free: 2.578 MB / 478.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.421e-05/0.4887, allocations: 38.56 kB / 0.6412 GB, free: 2.531 MB / 478.1 MB
Notification: Performance of pre-optimization done (n=25): time 2.365e-06/0.4887, allocations: 0 / 0.6412 GB, free: 2.531 MB / 478.1 MB
Notification: Performance of matching and sorting (n=25): time 0.002966/0.4916, allocations: 0.7935 MB / 0.642 GB, free: 1.73 MB / 478.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.785e-05/0.4917, allocations: 106.8 kB / 0.6421 GB, free: 1.602 MB / 478.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004012/0.4921, allocations: 312.5 kB / 0.6424 GB, free: 1.293 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.4922, allocations: 33.64 kB / 0.6424 GB, free: 1.254 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.4923, allocations: 212.5 kB / 0.6426 GB, free: 1.043 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.589e-05/0.4924, allocations: 91.19 kB / 0.6427 GB, free: 0.9531 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.4925, allocations: 65.69 kB / 0.6428 GB, free: 0.8828 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001597/0.4927, allocations: 338.8 kB / 0.6431 GB, free: 0.543 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004185/0.4931, allocations: 139.9 kB / 0.6432 GB, free: 416 kB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000502/0.4936, allocations: 231.9 kB / 0.6434 GB, free: 144 kB / 478.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0008743/0.4945, allocations: 357.2 kB / 0.6438 GB, free: 15.75 MB / 494.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4945, allocations: 0 / 0.6438 GB, free: 15.75 MB / 494.1 MB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.001063/0.4956, allocations: 434.1 kB / 0.6442 GB, free: 15.32 MB / 494.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4956, allocations: 8.031 kB / 0.6442 GB, free: 15.32 MB / 494.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.4956, allocations: 7.938 kB / 0.6442 GB, free: 15.31 MB / 494.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.4956, allocations: 7.938 kB / 0.6442 GB, free: 15.3 MB / 494.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003468/0.4959, allocations: 79.88 kB / 0.6443 GB, free: 15.22 MB / 494.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.496, allocations: 4 kB / 0.6443 GB, free: 15.22 MB / 494.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.4962, allocations: 47.75 kB / 0.6443 GB, free: 15.17 MB / 494.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.536e-05/0.4963, allocations: 16 kB / 0.6444 GB, free: 15.16 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.0002007/0.4965, allocations: 161.8 kB / 0.6445 GB, free: 14.99 MB / 494.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-05/0.4966, allocations: 35.77 kB / 0.6446 GB, free: 14.95 MB / 494.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002666/0.4992, allocations: 1.968 MB / 0.6465 GB, free: 12.97 MB / 494.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.411e-05/0.4993, allocations: 31.89 kB / 0.6465 GB, free: 12.94 MB / 494.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4993, allocations: 0 / 0.6465 GB, free: 12.94 MB / 494.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.4993, allocations: 7.984 kB / 0.6465 GB, free: 12.93 MB / 494.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.5004, allocations: 1.015 MB / 0.6475 GB, free: 11.87 MB / 494.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.5004, allocations: 0 / 0.6475 GB, free: 11.87 MB / 494.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003309/0.5007, allocations: 71.88 kB / 0.6476 GB, free: 11.8 MB / 494.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.5007, allocations: 0 / 0.6476 GB, free: 11.8 MB / 494.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.5008, allocations: 11.94 kB / 0.6476 GB, free: 11.79 MB / 494.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.5008, allocations: 3.938 kB / 0.6476 GB, free: 11.79 MB / 494.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.5008, allocations: 0 / 0.6476 GB, free: 11.79 MB / 494.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.5024, allocations: 1.116 MB / 0.6487 GB, free: 10.65 MB / 494.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.5026, allocations: 91.16 kB / 0.6488 GB, free: 10.56 MB / 494.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.257e-05/0.5026, allocations: 23.83 kB / 0.6488 GB, free: 10.54 MB / 494.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.5029, allocations: 23.92 kB / 0.6488 GB, free: 10.52 MB / 494.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.503, allocations: 39.88 kB / 0.6488 GB, free: 10.48 MB / 494.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.503, allocations: 15.98 kB / 0.6489 GB, free: 10.46 MB / 494.1 MB
Notification: Performance of sorting global known variables: time 0.0003905/0.5034, allocations: 327.1 kB / 0.6492 GB, free: 10.14 MB / 494.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.5034, allocations: 0 / 0.6492 GB, free: 10.14 MB / 494.1 MB
Notification: Performance of remove unused functions: time 0.003002/0.5064, allocations: 1.006 MB / 0.6502 GB, free: 9.133 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.004265/0.5107, allocations: 1.174 MB / 0.6513 GB, free: 7.953 MB / 494.1 MB
Notification: Performance of simCode: created initialization part: time 0.001414/0.5121, allocations: 0.6029 MB / 0.6519 GB, free: 7.352 MB / 494.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.5121, allocations: 0 / 0.6519 GB, free: 7.352 MB / 494.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0006908/0.5128, allocations: 417.1 kB / 0.6523 GB, free: 6.945 MB / 494.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.5141, allocations: 213.5 kB / 0.6525 GB, free: 6.742 MB / 494.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.5165, allocations: 1.566 MB / 0.654 GB, free: 5.145 MB / 494.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006723/0.5172, allocations: 0.9599 MB / 0.655 GB, free: 4.156 MB / 494.1 MB
Notification: Performance of simCode: alias equations: time 0.0004926/0.5177, allocations: 277.8 kB / 0.6552 GB, free: 3.883 MB / 494.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.5178, allocations: 43.42 kB / 0.6553 GB, free: 3.84 MB / 494.1 MB
Notification: Performance of SimCode: time 1.373e-06/0.5178, allocations: 0 / 0.6553 GB, free: 3.84 MB / 494.1 MB
Notification: Performance of Templates: time 0.06373/0.5815, allocations: 40.17 MB / 0.6945 GB, free: 11.71 MB / 0.5294 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.11043984722346]