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.001316/0.001316, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.0009421/0.0009421, allocations: 163.5 kB / 25.61 MB, free: 8.895 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.9251/0.9251, allocations: 177.1 MB / 206 MB, free: 4.477 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.1233/0.1233, allocations: 32.81 MB / 295.4 MB, free: 15.36 MB / 282.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 1.302e-06/1.302e-06, allocations: 0 / 377.3 MB, free: 25.59 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.293e-05/1.424e-05, allocations: 2.312 kB / 377.3 MB, free: 25.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.009913/0.009927, allocations: 14.66 MB / 391.9 MB, free: 10.86 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008221/0.01815, allocations: 11.69 MB / 403.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.01835, allocations: 15.88 kB / 403.6 MB, free: 15.11 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000393/0.01875, allocations: 150.8 kB / 403.8 MB, free: 14.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005698/0.02445, allocations: 3.689 MB / 407.5 MB, free: 11.26 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003276/0.02772, allocations: 2.077 MB / 409.5 MB, free: 9.176 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006457/0.02837, allocations: 0.9352 MB / 410.5 MB, free: 8.238 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.02862, allocations: 217.1 kB / 410.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005491/0.02917, allocations: 0.5571 MB / 411.2 MB, free: 7.465 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.02939, allocations: 235.3 kB / 411.5 MB, free: 7.234 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.02943, allocations: 32 kB / 411.5 MB, free: 7.203 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007116/0.03655, allocations: 6.774 MB / 418.3 MB, free: 432 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.62e-05/0.03663, allocations: 99.59 kB / 418.4 MB, free: 332 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.03675, allocations: 159.7 kB / 418.5 MB, free: 172 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004613/0.04137, allocations: 5.231 MB / 423.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.04137, allocations: 0 / 423.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.04137, allocations: 4 kB / 423.8 MB, free: 10.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.04137, allocations: 0 / 423.8 MB, free: 10.92 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.001551/0.04293, allocations: 1.241 MB / 425 MB, free: 9.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.04296, allocations: 11.98 kB / 425 MB, free: 9.629 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000952/0.04391, allocations: 299.7 kB / 425.3 MB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.04424, allocations: 323.3 kB / 425.6 MB, free: 8.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.911e-05/0.04427, allocations: 29.03 kB / 425.7 MB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.0443, allocations: 32.38 kB / 425.7 MB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007843/0.04509, allocations: 0.6864 MB / 426.4 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.0451, allocations: 192 / 426.4 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.04512, allocations: 15.94 kB / 426.4 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.04513, allocations: 8 kB / 426.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005477/0.04568, allocations: 336.1 kB / 426.7 MB, free: 7.797 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.001693/0.04737, allocations: 2.187 MB / 428.9 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.04803, allocations: 346.6 kB / 429.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.97e-05/0.04811, allocations: 63.66 kB / 429.3 MB, free: 5.113 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02045/0.06856, allocations: 11.43 MB / 440.7 MB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.0686, allocations: 45.38 kB / 440.8 MB, free: 9.621 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 2.044e-06/0.0686, allocations: 0 / 440.8 MB, free: 9.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.0013/0.0699, allocations: 0.5606 MB / 441.3 MB, free: 9.055 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.06996, allocations: 110.8 kB / 441.5 MB, free: 8.922 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.07019, allocations: 326 kB / 441.8 MB, free: 8.586 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.07022, allocations: 33.7 kB / 441.8 MB, free: 8.547 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.07035, allocations: 259.1 kB / 442.1 MB, free: 8.289 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.898e-05/0.0704, allocations: 79.27 kB / 442.1 MB, free: 8.211 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.678e-05/0.07049, allocations: 83.27 kB / 442.2 MB, free: 8.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.07064, allocations: 0.5195 MB / 442.7 MB, free: 7.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.982e-05/0.07072, allocations: 55.88 kB / 442.8 MB, free: 7.535 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.07088, allocations: 240.6 kB / 443 MB, free: 7.234 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004971/0.07137, allocations: 246.1 kB / 443.3 MB, free: 6.953 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.07138, allocations: 0 / 443.3 MB, free: 6.953 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003042/0.07168, allocations: 279.9 kB / 443.5 MB, free: 6.676 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.0717, allocations: 5.875 kB / 443.5 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.07171, allocations: 4 kB / 443.6 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.07172, allocations: 4 kB / 443.6 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.07193, allocations: 71.91 kB / 443.6 MB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.07194, allocations: 8.297 kB / 443.6 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.07212, allocations: 35.78 kB / 443.7 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.07214, allocations: 15.98 kB / 443.7 MB, free: 6.535 MB / 362.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.0001469/0.07229, allocations: 188.4 kB / 443.9 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/0.07235, allocations: 35.81 kB / 443.9 MB, free: 6.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.07338, allocations: 1.133 MB / 445 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-05/0.0734, allocations: 31.94 kB / 445.1 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.07341, allocations: 0 / 445.1 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.07341, allocations: 0 / 445.1 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006368/0.07405, allocations: 0.6024 MB / 445.7 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.07405, allocations: 3.984 kB / 445.7 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.07423, allocations: 55.91 kB / 445.7 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.07424, allocations: 4 kB / 445.7 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.07425, allocations: 4 kB / 445.7 MB, free: 4.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.07426, allocations: 4 kB / 445.7 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.07426, allocations: 7.984 kB / 445.7 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006565/0.07492, allocations: 0.7607 MB / 446.5 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.165e-05/0.07501, allocations: 91.14 kB / 446.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.028e-05/0.07507, allocations: 19.84 kB / 446.6 MB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.07525, allocations: 19.98 kB / 446.6 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.694e-05/0.07534, allocations: 39.73 kB / 446.7 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.07536, allocations: 12 kB / 446.7 MB, free: 3.465 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002169/0.07558, allocations: 279 kB / 447 MB, free: 3.191 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.07558, allocations: 4 kB / 447 MB, free: 3.188 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002505/0.07808, allocations: 1.01 MB / 448 MB, free: 2.176 MB / 362.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.0035/0.08158, allocations: 1.321 MB / 449.3 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000451/0.08203, allocations: 268.5 kB / 449.6 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.08204, allocations: 0 / 449.6 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002797/0.08232, allocations: 235.3 kB / 449.8 MB, free: 348 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009241/0.08324, allocations: 216 kB / 450 MB, free: 144 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.08549, allocations: 1.316 MB / 451.3 MB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001496/0.08564, allocations: 185.5 kB / 451.5 MB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003794/0.08602, allocations: 265.2 kB / 451.8 MB, free: 14.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000451/0.08647, allocations: 250 kB / 452 MB, free: 14.09 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.08647, allocations: 0 / 452 MB, free: 14.09 MB / 378.7 MB Notification: Performance of Templates: time 0.05094/0.1374, allocations: 45.36 MB / 497.4 MB, free: 0.8867 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: 5.533741729333997]