Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001607/0.001607, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001868/0.001868, allocations: 209.9 kB / 24.49 MB, free: 4.145 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 / 258.3 MB, free: 7.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2268/0.2268, allocations: 44.92 MB / 359.6 MB, free: 6.246 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002217/0.002217, allocations: 63.89 kB / 0.4943 GB, free: 10.18 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3491, allocations: 65.47 MB / 0.5582 GB, free: 7.695 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03498/0.3841, allocations: 28.66 MB / 0.5862 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.4018, allocations: 13.38 MB / 0.5993 GB, free: 13.54 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003995/0.4022, allocations: 15.81 kB / 0.5993 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008125/0.403, allocations: 258.4 kB / 0.5996 GB, free: 13.27 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01055/0.4135, allocations: 3.666 MB / 0.6031 GB, free: 9.598 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007776/0.4213, allocations: 2.403 MB / 0.6055 GB, free: 7.199 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001433/0.4227, allocations: 0.908 MB / 0.6064 GB, free: 6.289 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004179/0.4232, allocations: 208.9 kB / 0.6066 GB, free: 6.078 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008349/0.424, allocations: 458.2 kB / 0.607 GB, free: 5.629 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003918/0.4244, allocations: 282.9 kB / 0.6073 GB, free: 5.352 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.621e-05/0.4244, allocations: 32 kB / 0.6073 GB, free: 5.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01485/0.4393, allocations: 7.266 MB / 0.6144 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002619/0.4396, allocations: 103.7 kB / 0.6145 GB, free: 13.94 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004257/0.44, allocations: 226.9 kB / 0.6147 GB, free: 13.72 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.4512, allocations: 4.423 MB / 0.619 GB, free: 9.285 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.4512, allocations: 0 / 0.619 GB, free: 9.285 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.227e-06/0.4512, allocations: 4 kB / 0.619 GB, free: 9.281 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.4512, allocations: 0 / 0.619 GB, free: 9.281 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.003645/0.4549, allocations: 1.184 MB / 0.6202 GB, free: 8.062 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4549, allocations: 12.03 kB / 0.6202 GB, free: 8.051 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001837/0.4567, allocations: 216.4 kB / 0.6204 GB, free: 7.84 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008418/0.4576, allocations: 321.1 kB / 0.6207 GB, free: 7.496 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.4576, allocations: 29.03 kB / 0.6208 GB, free: 7.469 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.759e-05/0.4577, allocations: 28.38 kB / 0.6208 GB, free: 7.441 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.4594, allocations: 0.5824 MB / 0.6214 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.4594, allocations: 3.938 kB / 0.6214 GB, free: 6.816 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.585e-05/0.4595, allocations: 16 kB / 0.6214 GB, free: 6.801 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.4595, allocations: 8 kB / 0.6214 GB, free: 6.793 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.4611, allocations: 0.5254 MB / 0.6219 GB, free: 6.266 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.003496/0.4646, allocations: 2.519 MB / 0.6244 GB, free: 3.535 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.4662, allocations: 438.2 kB / 0.6248 GB, free: 3.098 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004495/0.4667, allocations: 188.7 kB / 0.625 GB, free: 2.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04762/0.5143, allocations: 13.15 MB / 0.6378 GB, free: 5.742 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.5144, allocations: 38.5 kB / 0.6378 GB, free: 5.695 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.973e-06/0.5144, allocations: 7.938 kB / 0.6378 GB, free: 5.688 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003025/0.5174, allocations: 0.7819 MB / 0.6386 GB, free: 4.898 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.162e-05/0.5175, allocations: 106.8 kB / 0.6387 GB, free: 4.77 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.5179, allocations: 316.5 kB / 0.639 GB, free: 4.457 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.5179, allocations: 33.7 kB / 0.639 GB, free: 4.418 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.5181, allocations: 208.5 kB / 0.6392 GB, free: 4.211 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.128e-05/0.5182, allocations: 87.25 kB / 0.6393 GB, free: 4.125 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.5183, allocations: 69.69 kB / 0.6394 GB, free: 4.051 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.5185, allocations: 342.8 kB / 0.6397 GB, free: 3.707 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004134/0.5189, allocations: 143.9 kB / 0.6398 GB, free: 3.566 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/0.5194, allocations: 231.9 kB / 0.6401 GB, free: 3.301 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008336/0.5202, allocations: 354 kB / 0.6404 GB, free: 2.922 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5202, allocations: 4 kB / 0.6404 GB, free: 2.918 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001043/0.5213, allocations: 424.9 kB / 0.6408 GB, free: 2.496 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.5213, allocations: 8 kB / 0.6408 GB, free: 2.488 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.5213, allocations: 4 kB / 0.6408 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.5213, allocations: 7.938 kB / 0.6408 GB, free: 2.477 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/0.5217, allocations: 83.88 kB / 0.6409 GB, free: 2.395 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.5217, allocations: 4 kB / 0.6409 GB, free: 2.391 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.522, allocations: 52.06 kB / 0.641 GB, free: 2.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.522, allocations: 12 kB / 0.641 GB, free: 2.328 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.0002013/0.5222, allocations: 153.8 kB / 0.6411 GB, free: 2.168 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.757e-05/0.5223, allocations: 43.77 kB / 0.6412 GB, free: 2.125 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002708/0.525, allocations: 1.968 MB / 0.6431 GB, free: 148 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.531e-05/0.5251, allocations: 35.88 kB / 0.6431 GB, free: 112 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.5251, allocations: 4 kB / 0.6431 GB, free: 108 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.5251, allocations: 4 kB / 0.6431 GB, free: 104 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.5262, allocations: 1.007 MB / 0.6441 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.5263, allocations: 4 kB / 0.6441 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.5266, allocations: 71.81 kB / 0.6442 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.5266, allocations: 4 kB / 0.6442 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/0.5266, allocations: 11.98 kB / 0.6442 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.5266, allocations: 3.938 kB / 0.6442 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5266, allocations: 3.938 kB / 0.6442 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.5283, allocations: 1.112 MB / 0.6453 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.5284, allocations: 91.14 kB / 0.6454 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.988e-05/0.5285, allocations: 23.84 kB / 0.6454 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002779/0.5288, allocations: 35.84 kB / 0.6454 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.582e-05/0.5289, allocations: 31.94 kB / 0.6455 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.5289, allocations: 12 kB / 0.6455 GB, free: 13.62 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003947/0.5293, allocations: 323.1 kB / 0.6458 GB, free: 13.31 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5293, allocations: 0 / 0.6458 GB, free: 13.31 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002965/0.5323, allocations: 1.006 MB / 0.6468 GB, free: 12.3 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.004907/0.5372, allocations: 1.181 MB / 0.6479 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.5385, allocations: 0.5865 MB / 0.6485 GB, free: 10.53 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5385, allocations: 4 kB / 0.6485 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006966/0.5392, allocations: 417.6 kB / 0.6489 GB, free: 10.12 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.5404, allocations: 222.1 kB / 0.6491 GB, free: 9.902 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.5429, allocations: 1.599 MB / 0.6507 GB, free: 8.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000611/0.5435, allocations: 0.956 MB / 0.6516 GB, free: 7.285 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.5437, allocations: 47.42 kB / 0.6517 GB, free: 7.238 MB / 494.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5437, allocations: 0 / 0.6517 GB, free: 7.238 MB / 494.1 MB Notification: Performance of Templates: time 0.04004/0.5837, allocations: 24.14 MB / 0.6752 GB, free: 15.12 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 10.889365087961778]