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.001424/0.001424, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001841/0.001841, allocations: 159.9 kB / 24.91 MB, free: 8.719 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.9123/0.9123, allocations: 177 MB / 205.2 MB, free: 5.047 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.2567/0.2567, allocations: 34.85 MB / 296.6 MB, free: 480 kB / 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.332e-06/1.332e-06, allocations: 0 / 326 MB, free: 7.129 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.622e-05/1.755e-05, allocations: 4.984 kB / 326 MB, free: 7.125 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01255/0.01256, allocations: 14.84 MB / 340.8 MB, free: 8.234 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009919/0.02248, allocations: 11.85 MB / 352.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.02266, allocations: 19.81 kB / 352.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003965/0.02306, allocations: 139 kB / 352.8 MB, free: 12.18 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00558/0.02864, allocations: 3.349 MB / 356.2 MB, free: 8.82 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003434/0.03207, allocations: 1.941 MB / 358.1 MB, free: 6.871 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007378/0.03281, allocations: 0.9429 MB / 359 MB, free: 5.926 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/0.03308, allocations: 221.1 kB / 359.3 MB, free: 5.707 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005838/0.03366, allocations: 0.5454 MB / 359.8 MB, free: 5.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.03388, allocations: 231.3 kB / 360 MB, free: 4.934 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.888e-05/0.03392, allocations: 32 kB / 360.1 MB, free: 4.902 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009549/0.04347, allocations: 7.257 MB / 367.3 MB, free: 13.64 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.0436, allocations: 103.7 kB / 367.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.04377, allocations: 155.7 kB / 367.6 MB, free: 13.38 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007296/0.05107, allocations: 5.238 MB / 372.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.05107, allocations: 0 / 372.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.05107, allocations: 0 / 372.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.05108, allocations: 0 / 372.8 MB, free: 8.133 MB / 346.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.001606/0.05268, allocations: 1.108 MB / 373.9 MB, free: 6.996 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.05272, allocations: 12.03 kB / 373.9 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/0.05382, allocations: 343.8 kB / 374.3 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.05415, allocations: 280.6 kB / 374.5 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.05418, allocations: 25.03 kB / 374.6 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/0.05421, allocations: 32.38 kB / 374.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000828/0.05504, allocations: 0.6678 MB / 375.3 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.05505, allocations: 4.188 kB / 375.3 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.05507, allocations: 19.94 kB / 375.3 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.05508, allocations: 8 kB / 375.3 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000557/0.05564, allocations: 325.1 kB / 375.6 MB, free: 5.199 MB / 346.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.001298/0.05694, allocations: 1.526 MB / 377.1 MB, free: 3.613 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006673/0.05761, allocations: 337.7 kB / 377.5 MB, free: 3.277 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.653e-05/0.05768, allocations: 56.84 kB / 377.5 MB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2849/0.3426, allocations: 72.56 MB / 450.1 MB, free: 101.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.3427, allocations: 30.56 kB / 450.1 MB, free: 101.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.194e-06/0.3427, allocations: 3.219 kB / 450.1 MB, free: 101.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.00115/0.3438, allocations: 0.5286 MB / 450.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.3438, allocations: 105.3 kB / 450.7 MB, free: 101.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.344, allocations: 257 kB / 451 MB, free: 101.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.344, allocations: 32.23 kB / 451 MB, free: 101.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.926e-05/0.3441, allocations: 186.3 kB / 451.2 MB, free: 101.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.3441, allocations: 95.03 kB / 451.3 MB, free: 101.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.105e-05/0.3442, allocations: 61.09 kB / 451.4 MB, free: 101.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.158e-05/0.3442, allocations: 344.2 kB / 451.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.843e-05/0.3443, allocations: 52.53 kB / 451.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.177e-05/0.3443, allocations: 200.6 kB / 451.9 MB, free: 100.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.3445, allocations: 210.2 kB / 452.1 MB, free: 100.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-06/0.3445, allocations: 0 / 452.1 MB, free: 100.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000195/0.3447, allocations: 227.4 kB / 452.4 MB, free: 100.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.3447, allocations: 8.125 kB / 452.4 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3447, allocations: 3.656 kB / 452.4 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3447, allocations: 6.531 kB / 452.4 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.3449, allocations: 76.42 kB / 452.5 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.3449, allocations: 3.469 kB / 452.5 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.345, allocations: 35.61 kB / 452.5 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.345, allocations: 15.72 kB / 452.5 MB, free: 100.6 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 7.784e-05/0.3451, allocations: 140 kB / 452.6 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.3451, allocations: 28.88 kB / 452.7 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006648/0.3458, allocations: 1.11 MB / 453.8 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.3458, allocations: 31.06 kB / 453.8 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.3458, allocations: 0 / 453.8 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3458, allocations: 0 / 453.8 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003647/0.3462, allocations: 0.545 MB / 454.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3462, allocations: 3.938 kB / 454.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.3463, allocations: 56.58 kB / 454.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3463, allocations: 10.58 kB / 454.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.3463, allocations: 3.75 kB / 454.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3463, allocations: 2.219 kB / 454.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3463, allocations: 0 / 454.4 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003777/0.3467, allocations: 0.6622 MB / 455.1 MB, free: 99.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.3467, allocations: 86.48 kB / 455.2 MB, free: 99.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.3467, allocations: 28.09 kB / 455.2 MB, free: 99.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.265e-05/0.3468, allocations: 15.97 kB / 455.2 MB, free: 99.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.3469, allocations: 36.44 kB / 455.3 MB, free: 99.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.3469, allocations: 12.91 kB / 455.3 MB, free: 99.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.956e-05/0.347, allocations: 152.8 kB / 455.4 MB, free: 99.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.347, allocations: 0 / 455.4 MB, free: 99.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001753/0.3487, allocations: 1.008 MB / 456.4 MB, free: 99.76 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.002312/0.351, allocations: 1.365 MB / 457.8 MB, free: 99.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002533/0.3513, allocations: 249.4 kB / 458 MB, free: 99.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.3513, allocations: 4 kB / 458 MB, free: 99.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.3514, allocations: 204.5 kB / 458.2 MB, free: 99.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.3519, allocations: 208.6 kB / 458.4 MB, free: 98.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.3531, allocations: 1.331 MB / 459.8 MB, free: 97.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.996e-05/0.3532, allocations: 183.7 kB / 460 MB, free: 97.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002314/0.3534, allocations: 258 kB / 460.2 MB, free: 97.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.3537, allocations: 207 kB / 460.4 MB, free: 97.4 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3537, allocations: 0 / 460.4 MB, free: 97.4 MB / 410.7 MB Notification: Performance of Templates: time 0.03248/0.3862, allocations: 44.26 MB / 0.4928 GB, free: 55.69 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 -s gbode -gbm=radauIIA3 -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.602336233947426]