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.001445/0.001445, allocations: 81.81 kB / 21.42 MB, free: 3.07 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.001847/0.001847, allocations: 163.6 kB / 24.82 MB, free: 9.312 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 1.006/1.006, allocations: 177 MB / 205.1 MB, free: 5.484 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.2566/0.2566, allocations: 34.87 MB / 296.6 MB, free: 0.5117 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 1.944e-06/1.944e-06, allocations: 0 / 379.2 MB, free: 1.855 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.269e-05/3.464e-05, allocations: 8.422 kB / 379.2 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01527/0.0153, allocations: 14.69 MB / 393.9 MB, free: 3.098 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01253/0.02783, allocations: 11.67 MB / 405.6 MB, free: 7.387 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004701/0.0283, allocations: 15.88 kB / 405.6 MB, free: 7.371 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005089/0.02881, allocations: 139 kB / 405.7 MB, free: 7.234 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009127/0.03794, allocations: 3.701 MB / 409.4 MB, free: 3.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004596/0.04253, allocations: 2.077 MB / 411.5 MB, free: 1.438 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.04354, allocations: 0.9352 MB / 412.4 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003656/0.0439, allocations: 232.9 kB / 412.7 MB, free: 272 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007281/0.04463, allocations: 0.5378 MB / 413.2 MB, free: 15.73 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002712/0.0449, allocations: 235.3 kB / 413.4 MB, free: 15.5 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.519e-05/0.04495, allocations: 32 kB / 413.5 MB, free: 15.46 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009954/0.0549, allocations: 6.777 MB / 420.2 MB, free: 8.68 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.05504, allocations: 103.6 kB / 420.3 MB, free: 8.578 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001993/0.05524, allocations: 159.7 kB / 420.5 MB, free: 8.422 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009586/0.06483, allocations: 5.238 MB / 425.7 MB, free: 3.172 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.06484, allocations: 3.938 kB / 425.7 MB, free: 3.168 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.06484, allocations: 4 kB / 425.7 MB, free: 3.164 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.06485, allocations: 0 / 425.7 MB, free: 3.164 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.003383/0.06823, allocations: 1.229 MB / 427 MB, free: 1.895 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.546e-05/0.06829, allocations: 8.031 kB / 427 MB, free: 1.887 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.06931, allocations: 303.7 kB / 427.3 MB, free: 1.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.06972, allocations: 323.3 kB / 427.6 MB, free: 1.246 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.06975, allocations: 25.03 kB / 427.6 MB, free: 1.223 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.06979, allocations: 36.38 kB / 427.7 MB, free: 1.188 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008546/0.07064, allocations: 0.6865 MB / 428.3 MB, free: 416 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.07065, allocations: 4.125 kB / 428.3 MB, free: 412 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.07068, allocations: 15.94 kB / 428.4 MB, free: 396 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.07069, allocations: 8 kB / 428.4 MB, free: 388 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005427/0.07123, allocations: 336 kB / 428.7 MB, free: 52 kB / 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.001939/0.07317, allocations: 2.164 MB / 430.9 MB, free: 13.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006798/0.07385, allocations: 358.6 kB / 431.2 MB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.02e-05/0.07393, allocations: 63.64 kB / 431.3 MB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01983/0.09376, allocations: 11.51 MB / 442.8 MB, free: 1.855 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.0938, allocations: 41.39 kB / 442.8 MB, free: 1.805 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.434e-06/0.0938, allocations: 0 / 442.8 MB, free: 1.805 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001317/0.09512, allocations: 0.5649 MB / 443.4 MB, free: 1.234 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.09517, allocations: 106.8 kB / 443.5 MB, free: 1.105 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005757/0.09575, allocations: 318.1 kB / 443.8 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.09577, allocations: 37.7 kB / 443.8 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.09591, allocations: 259 kB / 444.1 MB, free: 488 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.192e-05/0.09596, allocations: 83.25 kB / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.312e-05/0.09605, allocations: 83.27 kB / 444.3 MB, free: 312 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.1734/0.2694, allocations: 0.5178 MB / 444.8 MB, free: 76.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.2696, allocations: 54.03 kB / 444.8 MB, free: 76.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.2697, allocations: 238.7 kB / 445.1 MB, free: 76.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.2699, allocations: 235.8 kB / 445.3 MB, free: 76.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.2699, allocations: 1.75 kB / 445.3 MB, free: 76.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003414/0.2703, allocations: 284.1 kB / 445.6 MB, free: 76.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.2703, allocations: 5.844 kB / 445.6 MB, free: 76.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.2703, allocations: 2.938 kB / 445.6 MB, free: 76.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.2703, allocations: 3.125 kB / 445.6 MB, free: 76.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.2705, allocations: 77.95 kB / 445.7 MB, free: 76.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2705, allocations: 5.812 kB / 445.7 MB, free: 76.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.2706, allocations: 35.02 kB / 445.7 MB, free: 76.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.2706, allocations: 14.41 kB / 445.7 MB, free: 76.02 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.0001347/0.2708, allocations: 176.8 kB / 445.9 MB, free: 75.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.382e-05/0.2708, allocations: 39.39 kB / 445.9 MB, free: 75.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009012/0.2717, allocations: 1.129 MB / 447.1 MB, free: 75.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.2718, allocations: 32.2 kB / 447.1 MB, free: 75.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.2718, allocations: 0 / 447.1 MB, free: 75.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.2718, allocations: 0 / 447.1 MB, free: 75.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004937/0.2723, allocations: 0.6039 MB / 447.7 MB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.2723, allocations: 0.7656 kB / 447.7 MB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.2724, allocations: 54.84 kB / 447.7 MB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.2724, allocations: 6.203 kB / 447.8 MB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.2724, allocations: 13.38 kB / 447.8 MB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.2724, allocations: 0 / 447.8 MB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2724, allocations: 0 / 447.8 MB, free: 75.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000549/0.273, allocations: 0.7702 MB / 448.5 MB, free: 75.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.273, allocations: 91.45 kB / 448.6 MB, free: 75.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.363e-05/0.2731, allocations: 29.75 kB / 448.7 MB, free: 75.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.2732, allocations: 14.92 kB / 448.7 MB, free: 75.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.676e-05/0.2732, allocations: 38.47 kB / 448.7 MB, free: 75.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.2733, allocations: 8.969 kB / 448.7 MB, free: 75.22 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.2734, allocations: 283.7 kB / 449 MB, free: 75.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2734, allocations: 0 / 449 MB, free: 75.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00275/0.2761, allocations: 1.006 MB / 450 MB, free: 75.09 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.003002/0.2791, allocations: 1.316 MB / 451.3 MB, free: 74.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004027/0.2795, allocations: 273.5 kB / 451.6 MB, free: 74.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.2795, allocations: 0 / 451.6 MB, free: 74.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.2797, allocations: 229.7 kB / 451.8 MB, free: 74.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006065/0.2803, allocations: 211.2 kB / 452 MB, free: 74.95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.2819, allocations: 1.33 MB / 453.3 MB, free: 74.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.282, allocations: 182 kB / 453.5 MB, free: 74.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002582/0.2822, allocations: 260.2 kB / 453.8 MB, free: 74.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003001/0.2825, allocations: 247 kB / 454 MB, free: 74.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.2825, allocations: 0 / 454 MB, free: 74.25 MB / 410.7 MB Notification: Performance of Templates: time 0.0491/0.3316, allocations: 45.21 MB / 499.2 MB, free: 61.11 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.746343657840043]