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.0009111/0.0009111, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001216/0.002128, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006909/0.0006909, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009172/0.001608, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9845/0.9845, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09302/1.077, allocations: 53.87 MB / 243.9 MB, free: 14.87 MB / 250.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.2571/0.2571, allocations: 34.88 MB / 279.5 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0267/0.2838, allocations: 13.24 MB / 292.8 MB, free: 6.414 MB / 282.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.493e-06/1.493e-06, allocations: 0 / 294.1 MB, free: 5.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.479e-05, allocations: 2.859 kB / 294.1 MB, free: 5.117 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01635/0.01636, allocations: 14.9 MB / 309 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.03146, allocations: 11.94 MB / 320.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.03174, allocations: 19.81 kB / 321 MB, free: 10.15 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004775/0.03222, allocations: 139 kB / 321.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006454/0.03867, allocations: 3.338 MB / 324.4 MB, free: 6.664 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003925/0.0426, allocations: 1.934 MB / 326.4 MB, free: 4.723 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008557/0.04346, allocations: 0.9353 MB / 327.3 MB, free: 3.785 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002902/0.04375, allocations: 226.9 kB / 327.5 MB, free: 3.562 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006691/0.04441, allocations: 0.5695 MB / 328.1 MB, free: 2.992 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002509/0.04467, allocations: 231.3 kB / 328.3 MB, free: 2.766 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.389e-05/0.04471, allocations: 32 kB / 328.3 MB, free: 2.734 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009043/0.05375, allocations: 7.269 MB / 335.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.05386, allocations: 83.67 kB / 335.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.05397, allocations: 127.8 kB / 335.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005036/0.05901, allocations: 3.992 MB / 339.8 MB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.05902, allocations: 0 / 339.8 MB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.05902, allocations: 4 kB / 339.8 MB, free: 7.246 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.05903, allocations: 0 / 339.8 MB, free: 7.246 MB / 330.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.002382/0.06141, allocations: 1.515 MB / 341.3 MB, free: 5.684 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.06145, allocations: 12.92 kB / 341.3 MB, free: 5.672 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009696/0.06242, allocations: 339.8 kB / 341.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.06274, allocations: 284.5 kB / 342 MB, free: 5.039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.06277, allocations: 29.02 kB / 342 MB, free: 5.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.06281, allocations: 28.38 kB / 342 MB, free: 4.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007748/0.06358, allocations: 0.6665 MB / 342.7 MB, free: 4.238 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.06359, allocations: 8.172 kB / 342.7 MB, free: 4.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.06362, allocations: 19.94 kB / 342.7 MB, free: 4.211 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.06363, allocations: 11.98 kB / 342.7 MB, free: 4.199 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004874/0.06412, allocations: 318.9 kB / 343 MB, free: 3.887 MB / 330.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.001324/0.06544, allocations: 1.522 MB / 344.5 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006781/0.06612, allocations: 350 kB / 344.9 MB, free: 1.957 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.094e-05/0.06619, allocations: 53.78 kB / 344.9 MB, free: 1.902 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1529/0.2191, allocations: 72.57 MB / 417.5 MB, free: 9.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.2191, allocations: 34.56 kB / 417.5 MB, free: 9.207 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.294e-06/0.2191, allocations: 0 / 417.5 MB, free: 9.207 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001189/0.2203, allocations: 0.52 MB / 418.1 MB, free: 8.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.2203, allocations: 59.39 kB / 418.1 MB, free: 8.609 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.2205, allocations: 258.9 kB / 418.4 MB, free: 8.344 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001651/0.2207, allocations: 33.64 kB / 418.4 MB, free: 8.305 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.128e-05/0.2207, allocations: 184.9 kB / 418.6 MB, free: 8.121 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.636e-05/0.2208, allocations: 91.2 kB / 418.7 MB, free: 8.031 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.008e-05/0.2209, allocations: 65.66 kB / 418.7 MB, free: 7.961 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.176e-05/0.2209, allocations: 338.8 kB / 419.1 MB, free: 7.621 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.703e-05/0.221, allocations: 47.95 kB / 419.1 MB, free: 7.574 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.2211, allocations: 209 kB / 419.3 MB, free: 7.316 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.2213, allocations: 215 kB / 419.5 MB, free: 7.074 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2213, allocations: 4.031 kB / 419.5 MB, free: 7.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002294/0.2216, allocations: 224.9 kB / 419.8 MB, free: 6.848 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.2216, allocations: 7.984 kB / 419.8 MB, free: 6.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.2216, allocations: 4 kB / 419.8 MB, free: 6.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.2216, allocations: 4 kB / 419.8 MB, free: 6.832 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.2218, allocations: 84.14 kB / 419.9 MB, free: 6.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.2218, allocations: 8 kB / 419.9 MB, free: 6.742 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.2219, allocations: 39.77 kB / 419.9 MB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.2219, allocations: 8 kB / 419.9 MB, free: 6.695 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 9.947e-05/0.222, allocations: 137.8 kB / 420 MB, free: 6.551 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.2221, allocations: 31.86 kB / 420.1 MB, free: 6.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008235/0.2229, allocations: 1.11 MB / 421.2 MB, free: 5.398 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-05/0.2229, allocations: 31.94 kB / 421.2 MB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.2229, allocations: 0 / 421.2 MB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2229, allocations: 4 kB / 421.2 MB, free: 5.363 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004472/0.2233, allocations: 0.5423 MB / 421.8 MB, free: 4.801 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2234, allocations: 0 / 421.8 MB, free: 4.801 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.2235, allocations: 63.95 kB / 421.8 MB, free: 4.738 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.026e-05/0.2235, allocations: 83.22 kB / 421.9 MB, free: 4.656 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.2235, allocations: 7.938 kB / 421.9 MB, free: 4.648 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.2235, allocations: 4 kB / 421.9 MB, free: 4.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2236, allocations: 7.938 kB / 421.9 MB, free: 4.637 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2236, allocations: 0 / 421.9 MB, free: 4.637 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004681/0.224, allocations: 0.6521 MB / 422.6 MB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.2241, allocations: 31.72 kB / 422.6 MB, free: 3.934 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.2242, allocations: 15.98 kB / 422.6 MB, free: 3.918 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/0.2242, allocations: 31.94 kB / 422.7 MB, free: 3.887 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.2242, allocations: 8 kB / 422.7 MB, free: 3.879 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001138/0.2243, allocations: 164.7 kB / 422.8 MB, free: 3.711 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2243, allocations: 0 / 422.8 MB, free: 3.711 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002052/0.2264, allocations: 1.006 MB / 423.8 MB, free: 2.703 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.002495/0.2289, allocations: 1.378 MB / 425.2 MB, free: 1.316 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003112/0.2292, allocations: 263 kB / 425.5 MB, free: 1.059 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/0.2292, allocations: 4 kB / 425.5 MB, free: 1.055 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005632/0.2298, allocations: 233.7 kB / 425.7 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009054/0.2307, allocations: 1.09 MB / 426.8 MB, free: 15.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004826/0.2355, allocations: 1.347 MB / 428.1 MB, free: 14.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.2356, allocations: 181.5 kB / 428.3 MB, free: 13.99 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003152/0.2359, allocations: 251.6 kB / 428.6 MB, free: 13.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003362/0.2363, allocations: 209.2 kB / 428.8 MB, free: 13.54 MB / 426.7 MB Notification: Performance of SimCode: time 1.031e-06/0.2363, allocations: 0 / 428.8 MB, free: 13.54 MB / 426.7 MB Notification: Performance of Templates: time 0.1631/0.3994, allocations: 39.29 MB / 468 MB, free: 101 MB / 426.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.2124822326004505]