Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002147/0.002147, allocations: 209.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2311/0.2311, allocations: 46.95 MB / 360.9 MB, free: 4.035 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_4.1.0_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 67.89 kB / 0.4966 GB, free: 7.215 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3507, allocations: 66.03 MB / 0.5611 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03364/0.3844, allocations: 25.9 MB / 0.5864 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01741/0.4018, allocations: 11.78 MB / 0.5979 GB, free: 14.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004132/0.4022, allocations: 19.81 kB / 0.5979 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007459/0.4029, allocations: 230.5 kB / 0.5981 GB, free: 14.13 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01003/0.4129, allocations: 3.646 MB / 0.6017 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006703/0.4196, allocations: 2.352 MB / 0.604 GB, free: 8.133 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001431/0.4211, allocations: 0.908 MB / 0.6048 GB, free: 7.223 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000413/0.4215, allocations: 212.9 kB / 0.605 GB, free: 7.008 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000875/0.4224, allocations: 438.3 kB / 0.6055 GB, free: 6.578 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004211/0.4228, allocations: 282.9 kB / 0.6057 GB, free: 6.301 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.393e-05/0.4228, allocations: 35.94 kB / 0.6058 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01449/0.4373, allocations: 7.2 MB / 0.6128 GB, free: 15.06 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.4376, allocations: 107.6 kB / 0.6129 GB, free: 14.96 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003309/0.4379, allocations: 179.2 kB / 0.6131 GB, free: 14.78 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01136/0.4493, allocations: 4.423 MB / 0.6174 GB, free: 10.34 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.341e-06/0.4493, allocations: 0 / 0.6174 GB, free: 10.34 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.4493, allocations: 0 / 0.6174 GB, free: 10.34 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.4493, allocations: 0 / 0.6174 GB, free: 10.34 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.00344/0.4527, allocations: 1.184 MB / 0.6185 GB, free: 9.125 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.4528, allocations: 8.031 kB / 0.6186 GB, free: 9.117 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001777/0.4545, allocations: 216.5 kB / 0.6188 GB, free: 8.906 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006846/0.4552, allocations: 313.2 kB / 0.6191 GB, free: 8.57 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.05e-05/0.4553, allocations: 29.03 kB / 0.6191 GB, free: 8.543 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.4553, allocations: 28.36 kB / 0.6191 GB, free: 8.516 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.4571, allocations: 0.7368 MB / 0.6198 GB, free: 7.703 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.4571, allocations: 0 / 0.6198 GB, free: 7.703 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.4571, allocations: 12 kB / 0.6198 GB, free: 7.691 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.4572, allocations: 8 kB / 0.6199 GB, free: 7.684 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.4588, allocations: 0.5215 MB / 0.6204 GB, free: 7.16 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.003125/0.462, allocations: 1.864 MB / 0.6222 GB, free: 5.227 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/0.4637, allocations: 442.1 kB / 0.6226 GB, free: 4.785 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000493/0.4642, allocations: 180.7 kB / 0.6228 GB, free: 4.605 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04786/0.512, allocations: 13.2 MB / 0.6357 GB, free: 7.383 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/0.5121, allocations: 34.56 kB / 0.6357 GB, free: 7.34 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.284e-06/0.5121, allocations: 0 / 0.6357 GB, free: 7.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002998/0.5151, allocations: 0.782 MB / 0.6365 GB, free: 6.551 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.431e-05/0.5151, allocations: 106.8 kB / 0.6366 GB, free: 6.422 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003295/0.5155, allocations: 276.2 kB / 0.6368 GB, free: 6.145 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.5155, allocations: 33.64 kB / 0.6369 GB, free: 6.105 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.5157, allocations: 216.3 kB / 0.6371 GB, free: 5.891 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.798e-05/0.5158, allocations: 91.2 kB / 0.6372 GB, free: 5.801 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.5159, allocations: 73.69 kB / 0.6372 GB, free: 5.723 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.5161, allocations: 338.8 kB / 0.6376 GB, free: 5.383 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/0.5165, allocations: 139.8 kB / 0.6377 GB, free: 5.246 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.517, allocations: 283.3 kB / 0.638 GB, free: 4.918 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008832/0.5179, allocations: 354 kB / 0.6383 GB, free: 4.539 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.5179, allocations: 4 kB / 0.6383 GB, free: 4.535 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001136/0.519, allocations: 424.9 kB / 0.6387 GB, free: 4.113 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.5191, allocations: 4 kB / 0.6387 GB, free: 4.109 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.5191, allocations: 8 kB / 0.6387 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.5191, allocations: 4 kB / 0.6387 GB, free: 4.098 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003897/0.5195, allocations: 84.19 kB / 0.6388 GB, free: 4.016 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.5195, allocations: 11.88 kB / 0.6388 GB, free: 4.004 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000287/0.5198, allocations: 43.83 kB / 0.6389 GB, free: 3.961 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.5198, allocations: 19.98 kB / 0.6389 GB, free: 3.941 MB / 478.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.0002395/0.5201, allocations: 157.7 kB / 0.639 GB, free: 3.777 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.703e-05/0.5202, allocations: 35.8 kB / 0.6391 GB, free: 3.742 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/0.5231, allocations: 1.959 MB / 0.641 GB, free: 1.777 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.66e-05/0.5231, allocations: 39.88 kB / 0.641 GB, free: 1.738 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.5231, allocations: 7.875 kB / 0.641 GB, free: 1.73 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.5231, allocations: 3.984 kB / 0.641 GB, free: 1.727 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.5242, allocations: 0.8555 MB / 0.6419 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5242, allocations: 4 kB / 0.6419 GB, free: 0.832 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.5245, allocations: 67.94 kB / 0.6419 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.5245, allocations: 0 / 0.6419 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.5246, allocations: 8 kB / 0.6419 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.5246, allocations: 3.984 kB / 0.6419 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5246, allocations: 4 kB / 0.6419 GB, free: 0.75 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.5261, allocations: 1.112 MB / 0.643 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.5262, allocations: 87.14 kB / 0.6431 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.269e-05/0.5263, allocations: 27.78 kB / 0.6431 GB, free: 15.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.5266, allocations: 27.98 kB / 0.6432 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.5267, allocations: 35.88 kB / 0.6432 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.5267, allocations: 15.98 kB / 0.6432 GB, free: 15.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004293/0.5271, allocations: 303.1 kB / 0.6435 GB, free: 15.13 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5271, allocations: 0 / 0.6435 GB, free: 15.13 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003103/0.5303, allocations: 1.006 MB / 0.6445 GB, free: 14.12 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.003995/0.5342, allocations: 1.177 MB / 0.6456 GB, free: 12.94 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.5355, allocations: 0.595 MB / 0.6462 GB, free: 12.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.5355, allocations: 0 / 0.6462 GB, free: 12.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006751/0.5362, allocations: 417 kB / 0.6466 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.5373, allocations: 188.4 kB / 0.6468 GB, free: 11.76 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.5397, allocations: 1.55 MB / 0.6483 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.54, allocations: 370.1 kB / 0.6487 GB, free: 9.785 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004472/0.5405, allocations: 274.8 kB / 0.6489 GB, free: 9.516 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.5406, allocations: 39.44 kB / 0.649 GB, free: 9.477 MB / 494.1 MB Notification: Performance of SimCode: time 3.51e-07/0.5406, allocations: 3.938 kB / 0.649 GB, free: 9.473 MB / 494.1 MB Notification: Performance of Templates: time 0.06067/0.6013, allocations: 40.35 MB / 0.6884 GB, free: 1.301 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.8492820430547]