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.001331/0.001331, allocations: 106.8 kB / 21.19 MB, free: 0.6406 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.001534/0.001534, allocations: 213.3 kB / 24.49 MB, free: 3.934 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.435/1.435, allocations: 230.6 MB / 258.3 MB, free: 7.742 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.2242/0.2242, allocations: 46.97 MB / 361.6 MB, free: 4.016 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.002084/0.002084, allocations: 75.81 kB / 0.4973 GB, free: 7.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3472, allocations: 66.03 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03689/0.384, allocations: 25.9 MB / 0.5871 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01829/0.4023, allocations: 11.77 MB / 0.5986 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003588/0.4027, allocations: 15.88 kB / 0.5986 GB, free: 14.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007971/0.4035, allocations: 226.5 kB / 0.5988 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01119/0.4147, allocations: 3.646 MB / 0.6024 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006414/0.4211, allocations: 2.359 MB / 0.6047 GB, free: 8.121 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.4224, allocations: 0.8964 MB / 0.6056 GB, free: 7.223 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000411/0.4229, allocations: 216.9 kB / 0.6058 GB, free: 7.004 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008745/0.4237, allocations: 446.2 kB / 0.6062 GB, free: 6.566 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003749/0.4241, allocations: 278.8 kB / 0.6065 GB, free: 6.293 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.485e-05/0.4242, allocations: 36 kB / 0.6065 GB, free: 6.258 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01386/0.438, allocations: 7.188 MB / 0.6135 GB, free: 15.06 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.4382, allocations: 99.59 kB / 0.6136 GB, free: 14.96 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002861/0.4385, allocations: 191.2 kB / 0.6138 GB, free: 14.78 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01046/0.449, allocations: 4.416 MB / 0.6181 GB, free: 10.35 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.449, allocations: 0 / 0.6181 GB, free: 10.35 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.449, allocations: 4 kB / 0.6181 GB, free: 10.34 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.449, allocations: 0 / 0.6181 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.00356/0.4526, allocations: 1.18 MB / 0.6193 GB, free: 9.129 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.4526, allocations: 8.031 kB / 0.6193 GB, free: 9.121 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001832/0.4544, allocations: 220.4 kB / 0.6195 GB, free: 8.906 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007064/0.4551, allocations: 313.1 kB / 0.6198 GB, free: 8.57 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.4552, allocations: 29.03 kB / 0.6198 GB, free: 8.543 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.4552, allocations: 28.38 kB / 0.6199 GB, free: 8.516 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.457, allocations: 0.7368 MB / 0.6206 GB, free: 7.703 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.457, allocations: 15.86 kB / 0.6206 GB, free: 7.688 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.495e-05/0.4571, allocations: 16 kB / 0.6206 GB, free: 7.672 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.4571, allocations: 8 kB / 0.6206 GB, free: 7.664 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.4588, allocations: 0.5215 MB / 0.6211 GB, free: 7.141 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.003209/0.462, allocations: 1.856 MB / 0.6229 GB, free: 5.215 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.4637, allocations: 442.2 kB / 0.6234 GB, free: 4.773 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000457/0.4642, allocations: 172.7 kB / 0.6235 GB, free: 4.602 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04931/0.5135, allocations: 13.21 MB / 0.6364 GB, free: 7.375 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.5135, allocations: 42.48 kB / 0.6365 GB, free: 7.324 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 4.578e-06/0.5135, allocations: 3.984 kB / 0.6365 GB, free: 7.32 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003064/0.5166, allocations: 0.782 MB / 0.6372 GB, free: 6.531 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.5167, allocations: 106.8 kB / 0.6373 GB, free: 6.402 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003568/0.517, allocations: 276.1 kB / 0.6376 GB, free: 6.125 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.5171, allocations: 33.7 kB / 0.6376 GB, free: 6.086 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.5173, allocations: 216.3 kB / 0.6378 GB, free: 5.871 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.704e-05/0.5173, allocations: 87.22 kB / 0.6379 GB, free: 5.785 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.5175, allocations: 69.69 kB / 0.638 GB, free: 5.711 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.5177, allocations: 342.8 kB / 0.6383 GB, free: 5.367 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004165/0.5181, allocations: 135.9 kB / 0.6384 GB, free: 5.234 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005274/0.5186, allocations: 287.3 kB / 0.6387 GB, free: 4.902 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008757/0.5195, allocations: 358 kB / 0.639 GB, free: 4.52 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5195, allocations: 0 / 0.639 GB, free: 4.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001056/0.5205, allocations: 420.9 kB / 0.6394 GB, free: 4.102 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.5206, allocations: 8.312 kB / 0.6395 GB, free: 4.094 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.5206, allocations: 4 kB / 0.6395 GB, free: 4.09 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.5206, allocations: 4 kB / 0.6395 GB, free: 4.086 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.5209, allocations: 83.88 kB / 0.6395 GB, free: 4.004 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.5209, allocations: 7.938 kB / 0.6396 GB, free: 3.996 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.5212, allocations: 39.81 kB / 0.6396 GB, free: 3.957 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.359e-05/0.5212, allocations: 16 kB / 0.6396 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.0002143/0.5215, allocations: 165.7 kB / 0.6398 GB, free: 3.77 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.498e-05/0.5215, allocations: 35.81 kB / 0.6398 GB, free: 3.734 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002844/0.5244, allocations: 1.963 MB / 0.6417 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.5244, allocations: 3.984 kB / 0.6417 GB, free: 1.766 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.5244, allocations: 0 / 0.6417 GB, free: 1.766 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.5246, allocations: 95.05 kB / 0.6418 GB, free: 1.672 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.634e-05/0.5246, allocations: 19.89 kB / 0.6418 GB, free: 1.652 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.525, allocations: 35.95 kB / 0.6419 GB, free: 1.617 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.5251, allocations: 39.88 kB / 0.6419 GB, free: 1.578 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001749/0.5268, allocations: 1.089 MB / 0.643 GB, free: 488 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001642/0.5285, allocations: 1.181 MB / 0.6441 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006265/0.5291, allocations: 393.3 kB / 0.6445 GB, free: 14.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003791/0.5295, allocations: 299.1 kB / 0.6448 GB, free: 14.61 MB / 494.1 MB Notification: Performance of Backend: time 3.61e-07/0.5295, allocations: 4 kB / 0.6448 GB, free: 14.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007004/0.5365, allocations: 1.667 MB / 0.6464 GB, free: 12.92 MB / 494.1 MB Notification: Performance of SimCode: time 0.00219/0.5387, allocations: 1.59 MB / 0.648 GB, free: 11.29 MB / 494.1 MB Notification: Performance of Templates: time 0.0646/0.6033, allocations: 44.53 MB / 0.6914 GB, free: 14.86 MB / 0.5294 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/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.82721177500207]