Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001301/0.001301, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0017/0.0017, allocations: 169.1 kB / 24.91 MB, free: 9.199 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.9055/0.9055, 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2429/0.2429, allocations: 34.26 MB / 296.1 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 325.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.892e-05/2.02e-05, allocations: 3.891 kB / 325.3 MB, free: 7.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0124/0.01242, allocations: 14.84 MB / 340.1 MB, free: 8.758 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009885/0.02231, allocations: 11.86 MB / 352 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002433/0.02255, allocations: 11.88 kB / 352 MB, free: 12.84 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004143/0.02297, allocations: 138.9 kB / 352.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006521/0.02949, allocations: 3.342 MB / 355.5 MB, free: 9.352 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003849/0.03334, allocations: 1.949 MB / 357.4 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009503/0.03429, allocations: 0.9352 MB / 358.4 MB, free: 6.457 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003293/0.03462, allocations: 217 kB / 358.6 MB, free: 6.242 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006522/0.03527, allocations: 0.561 MB / 359.1 MB, free: 5.68 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.03563, allocations: 223.3 kB / 359.3 MB, free: 5.461 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.45e-05/0.03568, allocations: 36 kB / 359.4 MB, free: 5.426 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01013/0.0458, allocations: 7.246 MB / 366.6 MB, free: 14.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.04595, allocations: 103.6 kB / 366.7 MB, free: 14.07 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002105/0.04616, allocations: 163.7 kB / 366.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008907/0.05507, allocations: 5.235 MB / 372.1 MB, free: 8.664 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.05508, allocations: 0 / 372.1 MB, free: 8.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.05508, allocations: 0 / 372.1 MB, free: 8.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.05508, allocations: 0 / 372.1 MB, free: 8.664 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.002172/0.05726, allocations: 1.108 MB / 373.2 MB, free: 7.527 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.05729, allocations: 8.031 kB / 373.2 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/0.05835, allocations: 343.8 kB / 373.6 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.05871, allocations: 280.6 kB / 373.9 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.05874, allocations: 25.03 kB / 373.9 MB, free: 6.855 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.05877, allocations: 36.36 kB / 373.9 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008239/0.05959, allocations: 0.6715 MB / 374.6 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.0596, allocations: 192 / 374.6 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.05963, allocations: 19.94 kB / 374.6 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.05964, allocations: 8 kB / 374.6 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005436/0.06018, allocations: 325.8 kB / 374.9 MB, free: 5.723 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.001364/0.06154, allocations: 1.521 MB / 376.4 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006774/0.06222, allocations: 336.1 kB / 376.8 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.967e-05/0.06229, allocations: 64.75 kB / 376.8 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2813/0.3435, allocations: 72.56 MB / 449.4 MB, free: 102.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.3436, allocations: 34.44 kB / 449.4 MB, free: 102.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.204e-06/0.3436, allocations: 0 / 449.4 MB, free: 102.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001129/0.3447, allocations: 0.5201 MB / 450 MB, free: 102.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.3447, allocations: 109.9 kB / 450.1 MB, free: 102 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.3449, allocations: 257.5 kB / 450.3 MB, free: 101.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.3449, allocations: 36.33 kB / 450.3 MB, free: 101.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.581e-05/0.345, allocations: 187.9 kB / 450.5 MB, free: 101.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/0.345, allocations: 94.59 kB / 450.6 MB, free: 101.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-05/0.3451, allocations: 64.3 kB / 450.7 MB, free: 101.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.693e-05/0.3451, allocations: 345 kB / 451 MB, free: 101.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.693e-05/0.3452, allocations: 45.86 kB / 451.1 MB, free: 101.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.3453, allocations: 204 kB / 451.3 MB, free: 101.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.3454, allocations: 213.9 kB / 451.5 MB, free: 101.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3454, allocations: 3 kB / 451.5 MB, free: 101.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002054/0.3456, allocations: 227.5 kB / 451.7 MB, free: 101.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.3457, allocations: 6.062 kB / 451.7 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3457, allocations: 0 / 451.7 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.3457, allocations: 6.188 kB / 451.7 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.3458, allocations: 77.19 kB / 451.8 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.3458, allocations: 3.219 kB / 451.8 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.346, allocations: 35.86 kB / 451.8 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.346, allocations: 12.97 kB / 451.8 MB, free: 101.1 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 8.858e-05/0.3461, allocations: 140.8 kB / 452 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.3461, allocations: 25.62 kB / 452 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007242/0.3468, allocations: 1.108 MB / 453.1 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.3468, allocations: 33.31 kB / 453.1 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.3468, allocations: 3.281 kB / 453.1 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.3469, allocations: 7.703 kB / 453.2 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003977/0.3472, allocations: 0.5486 MB / 453.7 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3473, allocations: 0 / 453.7 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.3474, allocations: 61.55 kB / 453.8 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3474, allocations: 0 / 453.8 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.3474, allocations: 7.875 kB / 453.8 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3474, allocations: 3.188 kB / 453.8 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3474, allocations: 0 / 453.8 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004123/0.3478, allocations: 0.6611 MB / 454.4 MB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.514e-05/0.3478, allocations: 86.98 kB / 454.5 MB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.3479, allocations: 22.7 kB / 454.5 MB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.348, allocations: 14.67 kB / 454.6 MB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.781e-05/0.348, allocations: 34.83 kB / 454.6 MB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3481, allocations: 8.875 kB / 454.6 MB, free: 100.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.872e-05/0.3482, allocations: 154.1 kB / 454.7 MB, free: 100.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.3482, allocations: 0 / 454.7 MB, free: 100.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001925/0.3501, allocations: 1.013 MB / 455.8 MB, free: 100.3 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.002733/0.3528, allocations: 1.362 MB / 457.1 MB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003294/0.3531, allocations: 253.7 kB / 457.4 MB, free: 100 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.3532, allocations: 3.906 kB / 457.4 MB, free: 100 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.3533, allocations: 202.4 kB / 457.6 MB, free: 100 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/0.3538, allocations: 219 kB / 457.8 MB, free: 99.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.3552, allocations: 1.326 MB / 459.1 MB, free: 98.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.691e-05/0.3552, allocations: 183.8 kB / 459.3 MB, free: 98.64 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002526/0.3555, allocations: 256.5 kB / 459.5 MB, free: 98.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.3558, allocations: 203 kB / 459.7 MB, free: 98.35 MB / 410.7 MB Notification: Performance of SimCode: time 1.823e-06/0.3558, allocations: 0 / 459.7 MB, free: 98.35 MB / 410.7 MB Notification: Performance of Templates: time 0.03638/0.3922, allocations: 44.26 MB / 0.4922 GB, free: 56.7 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.522826227825135]