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.0009668/0.0009668, allocations: 77.97 kB / 21.42 MB, free: 3.07 MB / 18.57 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.001125/0.001125, allocations: 169 kB / 24.82 MB, free: 9.23 MB / 18.57 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 0.9373/0.9373, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] 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.2552/0.2552, allocations: 32.81 MB / 294.6 MB, free: 1.234 MB / 266.7 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.[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_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.[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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 376.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.497e-05/1.673e-05, allocations: 10.25 kB / 376.5 MB, free: 4.398 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01258/0.0126, allocations: 14.68 MB / 391.2 MB, free: 5.652 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009941/0.02254, allocations: 11.66 MB / 402.8 MB, free: 9.945 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.02272, allocations: 11.88 kB / 402.8 MB, free: 9.934 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004074/0.02313, allocations: 139 kB / 403 MB, free: 9.797 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005064/0.02819, allocations: 3.709 MB / 406.7 MB, free: 6.074 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003497/0.03169, allocations: 2.074 MB / 408.8 MB, free: 3.992 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007261/0.03242, allocations: 0.9352 MB / 409.7 MB, free: 3.051 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002809/0.0327, allocations: 229 kB / 409.9 MB, free: 2.824 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006541/0.03335, allocations: 0.5416 MB / 410.5 MB, free: 2.281 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.03358, allocations: 239.3 kB / 410.7 MB, free: 2.047 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.437e-05/0.03362, allocations: 35.94 kB / 410.7 MB, free: 2.012 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008169/0.04179, allocations: 6.762 MB / 417.5 MB, free: 11.24 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.0419, allocations: 111.6 kB / 417.6 MB, free: 11.13 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.04201, allocations: 159.6 kB / 417.8 MB, free: 10.98 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005097/0.04711, allocations: 5.235 MB / 423 MB, free: 5.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.04712, allocations: 0 / 423 MB, free: 5.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.04712, allocations: 0 / 423 MB, free: 5.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.04712, allocations: 0 / 423 MB, free: 5.73 MB / 394.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.001983/0.0491, allocations: 1.241 MB / 424.2 MB, free: 4.449 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.04915, allocations: 8.031 kB / 424.2 MB, free: 4.441 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009047/0.05005, allocations: 295.7 kB / 424.5 MB, free: 4.152 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/0.05039, allocations: 335.2 kB / 424.9 MB, free: 3.797 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.05042, allocations: 25.03 kB / 424.9 MB, free: 3.773 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/0.05046, allocations: 32.38 kB / 424.9 MB, free: 3.742 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007951/0.05125, allocations: 0.6865 MB / 425.6 MB, free: 2.961 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.05126, allocations: 4.125 kB / 425.6 MB, free: 2.957 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.0513, allocations: 19.94 kB / 425.6 MB, free: 2.938 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.0513, allocations: 12 kB / 425.6 MB, free: 2.926 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005033/0.05181, allocations: 324.1 kB / 425.9 MB, free: 2.609 MB / 394.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.001608/0.05342, allocations: 2.168 MB / 428.1 MB, free: 372 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006506/0.05407, allocations: 346.6 kB / 428.5 MB, free: 12 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.818e-05/0.05415, allocations: 63.66 kB / 428.5 MB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01989/0.07404, allocations: 11.52 MB / 440 MB, free: 4.414 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.07407, allocations: 41.39 kB / 440.1 MB, free: 4.363 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.585e-06/0.07408, allocations: 0 / 440.1 MB, free: 4.363 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001168/0.07525, allocations: 0.5641 MB / 440.6 MB, free: 3.793 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.0753, allocations: 106.8 kB / 440.7 MB, free: 3.664 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.07552, allocations: 314.2 kB / 441.1 MB, free: 3.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.07554, allocations: 33.7 kB / 441.1 MB, free: 3.301 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.07568, allocations: 263 kB / 441.3 MB, free: 3.039 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.34e-05/0.07573, allocations: 91.23 kB / 441.4 MB, free: 2.949 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.583e-05/0.07582, allocations: 79.27 kB / 441.5 MB, free: 2.863 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.07598, allocations: 0.5156 MB / 442 MB, free: 2.336 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.172e-05/0.07605, allocations: 51.94 kB / 442.1 MB, free: 2.285 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.0762, allocations: 244.7 kB / 442.3 MB, free: 1.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.07641, allocations: 244.4 kB / 442.6 MB, free: 1.695 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.07641, allocations: 0 / 442.6 MB, free: 1.695 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003163/0.07673, allocations: 281.3 kB / 442.8 MB, free: 1.414 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.07675, allocations: 12.03 kB / 442.8 MB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.07675, allocations: 0 / 442.8 MB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.07677, allocations: 4 kB / 442.8 MB, free: 1.398 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.07693, allocations: 75.89 kB / 442.9 MB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.07694, allocations: 4 kB / 442.9 MB, free: 1.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.07706, allocations: 31.83 kB / 443 MB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.07707, allocations: 12 kB / 443 MB, free: 1.277 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_a.phase,V1.state_b.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.0001184/0.07719, allocations: 180.4 kB / 443.1 MB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-05/0.07725, allocations: 43.81 kB / 443.2 MB, free: 1.047 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1844/0.2617, allocations: 1.123 MB / 444.3 MB, free: 78.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.459e-05/0.2617, allocations: 25.59 kB / 444.3 MB, free: 78.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2617, allocations: 3.125 kB / 444.3 MB, free: 78.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.2617, allocations: 3.062 kB / 444.3 MB, free: 78.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006799/0.2624, allocations: 0.6047 MB / 444.9 MB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.2624, allocations: 3.281 kB / 444.9 MB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.2626, allocations: 55.88 kB / 445 MB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2626, allocations: 0 / 445 MB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.2626, allocations: 9.141 kB / 445 MB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.2626, allocations: 2.969 kB / 445 MB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2626, allocations: 0 / 445 MB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000625/0.2632, allocations: 0.7728 MB / 445.8 MB, free: 78.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.588e-05/0.2633, allocations: 87.91 kB / 445.9 MB, free: 78 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.2633, allocations: 25.58 kB / 445.9 MB, free: 77.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.2635, allocations: 18.78 kB / 445.9 MB, free: 77.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.975e-05/0.2635, allocations: 32.67 kB / 445.9 MB, free: 77.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.2635, allocations: 14.34 kB / 446 MB, free: 77.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001429/0.2637, allocations: 282.2 kB / 446.2 MB, free: 77.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2637, allocations: 2.75 kB / 446.2 MB, free: 77.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002268/0.2659, allocations: 1.008 MB / 447.2 MB, free: 77.86 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.00263/0.2686, allocations: 1.32 MB / 448.6 MB, free: 77.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003565/0.2689, allocations: 280.1 kB / 448.8 MB, free: 77.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2689, allocations: 2.406 kB / 448.8 MB, free: 77.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.2691, allocations: 231.1 kB / 449.1 MB, free: 77.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005925/0.2697, allocations: 207.8 kB / 449.3 MB, free: 77.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.2711, allocations: 1.315 MB / 450.6 MB, free: 77.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.893e-05/0.2712, allocations: 181.1 kB / 450.8 MB, free: 77.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002441/0.2715, allocations: 265.8 kB / 451 MB, free: 77.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.2718, allocations: 250.8 kB / 451.3 MB, free: 77.03 MB / 410.7 MB Notification: Performance of SimCode: time 8.22e-07/0.2718, allocations: 0 / 451.3 MB, free: 77.03 MB / 410.7 MB Notification: Performance of Templates: time 0.04196/0.3137, allocations: 45.21 MB / 496.5 MB, free: 65.29 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",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.869448098354042]