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.001073/0.001073, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001025/0.001025, allocations: 161 kB / 24.56 MB, free: 20 kB / 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.9293/0.9293, allocations: 177.1 MB / 205 MB, free: 5.285 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.2389/0.2389, allocations: 32.8 MB / 294.3 MB, free: 1.23 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 2.454e-06/2.454e-06, allocations: 3.984 kB / 376 MB, free: 4.695 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.049e-05/2.294e-05, allocations: 6.25 kB / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01355/0.01358, allocations: 14.85 MB / 390.9 MB, free: 5.773 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009861/0.02344, allocations: 11.87 MB / 402.7 MB, free: 9.859 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.02361, allocations: 15.88 kB / 402.8 MB, free: 9.844 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006732/0.02429, allocations: 131 kB / 402.9 MB, free: 9.715 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005853/0.03014, allocations: 3.701 MB / 406.6 MB, free: 6 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003613/0.03375, allocations: 2.074 MB / 408.7 MB, free: 3.918 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007167/0.03447, allocations: 0.943 MB / 409.6 MB, free: 2.969 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.03475, allocations: 221 kB / 409.8 MB, free: 2.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000856/0.03561, allocations: 0.5378 MB / 410.4 MB, free: 2.211 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.03583, allocations: 239.3 kB / 410.6 MB, free: 1.977 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.333e-05/0.03587, allocations: 32 kB / 410.6 MB, free: 1.945 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007922/0.04379, allocations: 6.77 MB / 417.4 MB, free: 11.17 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.04389, allocations: 107.6 kB / 417.5 MB, free: 11.06 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.04403, allocations: 159.6 kB / 417.6 MB, free: 10.91 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005563/0.04959, allocations: 5.235 MB / 422.9 MB, free: 5.66 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.04959, allocations: 4 kB / 422.9 MB, free: 5.656 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.04959, allocations: 0 / 422.9 MB, free: 5.656 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.0496, allocations: 0 / 422.9 MB, free: 5.656 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.001822/0.05142, allocations: 1.233 MB / 424.1 MB, free: 4.383 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.05146, allocations: 8.031 kB / 424.1 MB, free: 4.375 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009549/0.05241, allocations: 303.7 kB / 424.4 MB, free: 4.078 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000644/0.05306, allocations: 327.3 kB / 424.7 MB, free: 3.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.05309, allocations: 29.03 kB / 424.8 MB, free: 3.703 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/0.05313, allocations: 32.38 kB / 424.8 MB, free: 3.672 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008662/0.054, allocations: 0.7022 MB / 425.5 MB, free: 2.875 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.05401, allocations: 4.125 kB / 425.5 MB, free: 2.871 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.05404, allocations: 19.94 kB / 425.5 MB, free: 2.852 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.05405, allocations: 8 kB / 425.5 MB, free: 2.844 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006011/0.05465, allocations: 359.4 kB / 425.9 MB, free: 2.492 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.001652/0.0563, allocations: 2.269 MB / 428.2 MB, free: 140 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/0.05701, allocations: 362.7 kB / 428.5 MB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.05714, allocations: 79.64 kB / 428.6 MB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02216/0.0793, allocations: 13.21 MB / 441.8 MB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.07933, allocations: 41.39 kB / 441.8 MB, free: 2.414 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.314e-06/0.07933, allocations: 0 / 441.8 MB, free: 2.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001201/0.08054, allocations: 0.5991 MB / 442.4 MB, free: 1.809 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.08058, allocations: 110.8 kB / 442.5 MB, free: 1.676 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.0808, allocations: 326.2 kB / 442.9 MB, free: 1.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.08082, allocations: 29.7 kB / 442.9 MB, free: 1.305 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.08093, allocations: 255.2 kB / 443.1 MB, free: 1.051 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.246e-05/0.08098, allocations: 91.2 kB / 443.2 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.454e-05/0.08107, allocations: 79.3 kB / 443.3 MB, free: 0.875 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.08119, allocations: 0.5157 MB / 443.8 MB, free: 356 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.634e-05/0.08129, allocations: 59.94 kB / 443.9 MB, free: 296 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1627/0.244, allocations: 248.7 kB / 444.1 MB, free: 78.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.2443, allocations: 255.1 kB / 444.4 MB, free: 78.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2443, allocations: 3.094 kB / 444.4 MB, free: 78.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004211/0.2447, allocations: 303.6 kB / 444.7 MB, free: 78.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.2448, allocations: 6.469 kB / 444.7 MB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.2448, allocations: 5.766 kB / 444.7 MB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.2448, allocations: 6.219 kB / 444.7 MB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/0.245, allocations: 73.42 kB / 444.8 MB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.245, allocations: 6.812 kB / 444.8 MB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.2452, allocations: 35.12 kB / 444.8 MB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.2452, allocations: 21.17 kB / 444.8 MB, free: 78.27 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 0.0001439/0.2453, allocations: 176 kB / 445 MB, free: 78.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.825e-05/0.2454, allocations: 43.69 kB / 445 MB, free: 78.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009644/0.2463, allocations: 1.228 MB / 446.3 MB, free: 77.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.2464, allocations: 30.41 kB / 446.3 MB, free: 77.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2464, allocations: 3.562 kB / 446.3 MB, free: 77.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2464, allocations: 3.188 kB / 446.3 MB, free: 77.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000442/0.2468, allocations: 0.6659 MB / 447 MB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2468, allocations: 0 / 447 MB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.2469, allocations: 61.72 kB / 447 MB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2469, allocations: 0 / 447 MB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.247, allocations: 6.188 kB / 447 MB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.247, allocations: 5.531 kB / 447 MB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.247, allocations: 0.75 kB / 447 MB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005591/0.2475, allocations: 0.827 MB / 447.9 MB, free: 77.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.2476, allocations: 86.27 kB / 448 MB, free: 77.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.2476, allocations: 25.45 kB / 448 MB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.2477, allocations: 18.62 kB / 448 MB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/0.2478, allocations: 38.02 kB / 448 MB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.2478, allocations: 15.62 kB / 448.1 MB, free: 77.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001737/0.2479, allocations: 296.7 kB / 448.3 MB, free: 77.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2479, allocations: 3.75 kB / 448.3 MB, free: 77.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002424/0.2504, allocations: 1.009 MB / 449.4 MB, free: 77.31 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.002677/0.253, allocations: 1.29 MB / 450.6 MB, free: 77.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003907/0.2534, allocations: 316.5 kB / 451 MB, free: 77.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2534, allocations: 0.9375 kB / 451 MB, free: 77.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002159/0.2537, allocations: 251.1 kB / 451.2 MB, free: 77.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006117/0.2543, allocations: 218 kB / 451.4 MB, free: 77.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.2559, allocations: 1.34 MB / 452.8 MB, free: 76.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.256, allocations: 186.4 kB / 452.9 MB, free: 76.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002702/0.2562, allocations: 262.8 kB / 453.2 MB, free: 76.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.315e-05/0.2563, allocations: 43.62 kB / 453.2 MB, free: 76.54 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/0.2563, allocations: 0.9688 kB / 453.2 MB, free: 76.54 MB / 410.7 MB Notification: Performance of Templates: time 0.03979/0.2961, allocations: 39.77 MB / 493 MB, free: 68.05 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.88437730493024]