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.0009549/0.0009549, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 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.000976/0.000976, allocations: 160.4 kB / 24.99 MB, free: 8.801 MB / 18.57 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 0.9479/0.9479, allocations: 177 MB / 205.2 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] 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.2515/0.2515, allocations: 34.87 MB / 296.6 MB, free: 0.5547 MB / 266.7 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.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..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.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.324e-06/2.324e-06, allocations: 0 / 378.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.792e-05, allocations: 2.312 kB / 378.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02351/0.02354, allocations: 28.82 MB / 407.6 MB, free: 5.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.0355, allocations: 13.08 MB / 420.6 MB, free: 8.375 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002678/0.03577, allocations: 15.81 kB / 420.7 MB, free: 8.359 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000603/0.03637, allocations: 238.3 kB / 420.9 MB, free: 8.125 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007412/0.04379, allocations: 3.697 MB / 424.6 MB, free: 4.414 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005525/0.04931, allocations: 2.386 MB / 427 MB, free: 2.02 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.0507, allocations: 0.9039 MB / 427.9 MB, free: 1.109 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003628/0.05106, allocations: 217 kB / 428.1 MB, free: 0.8945 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000712/0.05177, allocations: 0.5529 MB / 428.6 MB, free: 348 kB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.05202, allocations: 239.3 kB / 428.9 MB, free: 108 kB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.05207, allocations: 36 kB / 428.9 MB, free: 72 kB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009965/0.06204, allocations: 6.906 MB / 435.8 MB, free: 9.156 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.06219, allocations: 107.6 kB / 435.9 MB, free: 9.051 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.0624, allocations: 155.7 kB / 436.1 MB, free: 8.898 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008999/0.0714, allocations: 5.386 MB / 441.5 MB, free: 3.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.0714, allocations: 3.938 kB / 441.5 MB, free: 3.496 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.0714, allocations: 0 / 441.5 MB, free: 3.496 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.07141, allocations: 0 / 441.5 MB, free: 3.496 MB / 410.7 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.002412/0.07382, allocations: 1.256 MB / 442.7 MB, free: 2.199 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.07386, allocations: 12.03 kB / 442.7 MB, free: 2.188 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001172/0.07504, allocations: 315.6 kB / 443 MB, free: 1.879 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003745/0.07541, allocations: 315.4 kB / 443.3 MB, free: 1.543 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.07544, allocations: 29.03 kB / 443.4 MB, free: 1.516 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.07547, allocations: 28.38 kB / 443.4 MB, free: 1.488 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009392/0.07641, allocations: 0.706 MB / 444.1 MB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.07642, allocations: 4.125 kB / 444.1 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.07645, allocations: 19.94 kB / 444.1 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.07646, allocations: 8 kB / 444.1 MB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006838/0.07715, allocations: 371.3 kB / 444.5 MB, free: 300 kB / 410.7 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.1476/0.2248, allocations: 2.269 MB / 446.8 MB, free: 78.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.2258, allocations: 358.6 kB / 447.1 MB, free: 78.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.2259, allocations: 76.69 kB / 447.2 MB, free: 78.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02751/0.2535, allocations: 13.22 MB / 460.4 MB, free: 77.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.2535, allocations: 36.52 kB / 460.4 MB, free: 77.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.783e-06/0.2535, allocations: 0 / 460.4 MB, free: 77.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001618/0.2551, allocations: 0.5961 MB / 461 MB, free: 77.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.2551, allocations: 110 kB / 461.2 MB, free: 77.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.2553, allocations: 327.1 kB / 461.5 MB, free: 77.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2553, allocations: 32.05 kB / 461.5 MB, free: 77.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.518e-05/0.2554, allocations: 263.4 kB / 461.8 MB, free: 77.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.2555, allocations: 82.61 kB / 461.8 MB, free: 77.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.437e-05/0.2555, allocations: 81.5 kB / 461.9 MB, free: 77.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.322e-05/0.2556, allocations: 0.5107 MB / 462.4 MB, free: 76.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.2557, allocations: 64.31 kB / 462.5 MB, free: 76.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.2559, allocations: 253.2 kB / 462.7 MB, free: 76.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002172/0.2561, allocations: 256.6 kB / 463 MB, free: 76.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2561, allocations: 3.125 kB / 463 MB, free: 76.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003198/0.2564, allocations: 303.1 kB / 463.3 MB, free: 76.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.2564, allocations: 6.156 kB / 463.3 MB, free: 76.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2564, allocations: 3.188 kB / 463.3 MB, free: 76.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2564, allocations: 3.188 kB / 463.3 MB, free: 76.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.2566, allocations: 73.73 kB / 463.4 MB, free: 76.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.2566, allocations: 9.969 kB / 463.4 MB, free: 76.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.2567, allocations: 38.7 kB / 463.4 MB, free: 76.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.2567, allocations: 19.41 kB / 463.4 MB, free: 76.31 MB / 410.7 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 9.519e-05/0.2568, allocations: 176.3 kB / 463.6 MB, free: 76.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.643e-05/0.2569, allocations: 39.12 kB / 463.7 MB, free: 76.13 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008515/0.2577, allocations: 1.24 MB / 464.9 MB, free: 75.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.2e-05/0.2578, allocations: 31.14 kB / 464.9 MB, free: 75.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.2578, allocations: 0 / 464.9 MB, free: 75.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.299e-06/0.2578, allocations: 8.5 kB / 464.9 MB, free: 75.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.2582, allocations: 0.6591 MB / 465.6 MB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2582, allocations: 2.938 kB / 465.6 MB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.2583, allocations: 55.59 kB / 465.6 MB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2583, allocations: 2.938 kB / 465.6 MB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.2583, allocations: 9.531 kB / 465.7 MB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2583, allocations: 0 / 465.7 MB, free: 75.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2583, allocations: 7.344 kB / 465.7 MB, free: 75.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.2589, allocations: 0.8219 MB / 466.5 MB, free: 75.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.053e-05/0.259, allocations: 87.08 kB / 466.6 MB, free: 75.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.259, allocations: 31.83 kB / 466.6 MB, free: 75.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.2591, allocations: 16.2 kB / 466.6 MB, free: 75.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.713e-05/0.2592, allocations: 35.91 kB / 466.7 MB, free: 75.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.2592, allocations: 12.34 kB / 466.7 MB, free: 75.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001608/0.2593, allocations: 299.6 kB / 467 MB, free: 75.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2593, allocations: 6.969 kB / 467 MB, free: 75.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001884/0.2612, allocations: 1.008 MB / 468 MB, free: 75.2 MB / 410.7 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.002653/0.2639, allocations: 1.309 MB / 469.3 MB, free: 74.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004592/0.2643, allocations: 324.1 kB / 469.6 MB, free: 74.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2643, allocations: 0 / 469.6 MB, free: 74.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.2646, allocations: 259.1 kB / 469.9 MB, free: 74.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006272/0.2652, allocations: 217.2 kB / 470.1 MB, free: 74.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.2668, allocations: 1.335 MB / 471.4 MB, free: 74.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.2669, allocations: 185.7 kB / 471.6 MB, free: 74.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003267/0.2673, allocations: 265.1 kB / 471.8 MB, free: 74.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.007e-05/0.2674, allocations: 48.56 kB / 471.9 MB, free: 74.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.2674, allocations: 3.281 kB / 471.9 MB, free: 74.24 MB / 410.7 MB Notification: Performance of Templates: time 0.03919/0.3065, allocations: 40.05 MB / 0.4999 GB, free: 52.09 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.762098361970857]