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.0009447/0.0009447, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001532/0.001532, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.9437/0.9437, allocations: 177.1 MB / 205.3 MB, free: 5.648 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.2385/0.2385, allocations: 32.8 MB / 294.6 MB, free: 1.199 MB / 266.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.552e-06/1.552e-06, allocations: 0 / 376 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.29e-05/2.446e-05, allocations: 9.828 kB / 376 MB, free: 4.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02529/0.02532, allocations: 28.82 MB / 404.8 MB, free: 8.055 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01403/0.03935, allocations: 13.07 MB / 417.9 MB, free: 10.94 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003132/0.03966, allocations: 15.88 kB / 417.9 MB, free: 10.92 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006927/0.04035, allocations: 234.3 kB / 418.1 MB, free: 10.69 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00808/0.04843, allocations: 3.693 MB / 421.8 MB, free: 6.984 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005358/0.05379, allocations: 2.387 MB / 424.2 MB, free: 4.586 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.05484, allocations: 0.9117 MB / 425.1 MB, free: 3.668 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003714/0.05521, allocations: 217.1 kB / 425.3 MB, free: 3.453 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008359/0.05604, allocations: 0.549 MB / 425.9 MB, free: 2.902 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003187/0.05636, allocations: 231.4 kB / 426.1 MB, free: 2.676 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/0.05641, allocations: 32 kB / 426.1 MB, free: 2.645 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01126/0.06767, allocations: 6.924 MB / 433.1 MB, free: 11.71 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.06783, allocations: 107.6 kB / 433.2 MB, free: 11.61 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002372/0.06807, allocations: 155.7 kB / 433.3 MB, free: 11.46 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.07816, allocations: 5.383 MB / 438.7 MB, free: 6.062 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.07816, allocations: 0 / 438.7 MB, free: 6.062 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.07816, allocations: 0 / 438.7 MB, free: 6.062 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.07817, allocations: 0 / 438.7 MB, free: 6.062 MB / 410.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.003668/0.08184, allocations: 1.272 MB / 440 MB, free: 4.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.08189, allocations: 8.031 kB / 440 MB, free: 4.742 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001928/0.08382, allocations: 307.6 kB / 440.3 MB, free: 4.441 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006285/0.08445, allocations: 323.4 kB / 440.6 MB, free: 4.098 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.08449, allocations: 29.03 kB / 440.6 MB, free: 4.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.08455, allocations: 28.38 kB / 440.7 MB, free: 4.043 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.08587, allocations: 0.7022 MB / 441.4 MB, free: 3.246 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.08588, allocations: 4.125 kB / 441.4 MB, free: 3.242 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.08591, allocations: 15.94 kB / 441.4 MB, free: 3.227 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.08592, allocations: 8 kB / 441.4 MB, free: 3.219 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006616/0.08658, allocations: 363.4 kB / 441.7 MB, free: 2.863 MB / 410.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.001852/0.08844, allocations: 2.273 MB / 444 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000974/0.08941, allocations: 366.6 kB / 444.4 MB, free: 136 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.08953, allocations: 79.64 kB / 444.5 MB, free: 52 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1589/0.2484, allocations: 13.2 MB / 457.7 MB, free: 62.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/0.2484, allocations: 36.48 kB / 457.7 MB, free: 61.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.2484, allocations: 0 / 457.7 MB, free: 61.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001458/0.2499, allocations: 0.601 MB / 458.3 MB, free: 61.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.2499, allocations: 106.1 kB / 458.4 MB, free: 61.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.2502, allocations: 322.2 kB / 458.7 MB, free: 61.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.2502, allocations: 36.48 kB / 458.7 MB, free: 61.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.2503, allocations: 261.8 kB / 459 MB, free: 61.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.594e-05/0.2503, allocations: 87.38 kB / 459.1 MB, free: 61.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.184e-05/0.2504, allocations: 79.94 kB / 459.2 MB, free: 61.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.2e-05/0.2505, allocations: 0.5106 MB / 459.7 MB, free: 60.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.2506, allocations: 64.64 kB / 459.7 MB, free: 60.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.2507, allocations: 249.1 kB / 460 MB, free: 60.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.2509, allocations: 257 kB / 460.2 MB, free: 60.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2509, allocations: 0 / 460.2 MB, free: 60.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003368/0.2513, allocations: 305.3 kB / 460.5 MB, free: 60.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.2513, allocations: 7.906 kB / 460.5 MB, free: 60.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2513, allocations: 4.469 kB / 460.5 MB, free: 60.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.2513, allocations: 2.719 kB / 460.5 MB, free: 60.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.2515, allocations: 74 kB / 460.6 MB, free: 60.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.2515, allocations: 5.562 kB / 460.6 MB, free: 60.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.2516, allocations: 39.59 kB / 460.7 MB, free: 60.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.2516, allocations: 18.81 kB / 460.7 MB, free: 60.5 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_b.phase,V1.state_a.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.439e-05/0.2517, allocations: 180.9 kB / 460.9 MB, free: 60.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.21e-05/0.2518, allocations: 42.16 kB / 460.9 MB, free: 60.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009404/0.2527, allocations: 1.233 MB / 462.1 MB, free: 60.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.795e-05/0.2527, allocations: 32.39 kB / 462.2 MB, free: 60.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2527, allocations: 4 kB / 462.2 MB, free: 60.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.2527, allocations: 2.953 kB / 462.2 MB, free: 60.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004428/0.2532, allocations: 0.66 MB / 462.8 MB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2532, allocations: 0 / 462.8 MB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/0.2533, allocations: 59.7 kB / 462.9 MB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2533, allocations: 0 / 462.9 MB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.2533, allocations: 6.625 kB / 462.9 MB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2533, allocations: 6.078 kB / 462.9 MB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2533, allocations: 2.734 kB / 462.9 MB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006048/0.2539, allocations: 0.8284 MB / 463.7 MB, free: 59.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.108e-05/0.254, allocations: 83.88 kB / 463.8 MB, free: 59.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.254, allocations: 30.47 kB / 463.8 MB, free: 59.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.2541, allocations: 12.34 kB / 463.9 MB, free: 59.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.39e-05/0.2542, allocations: 43.3 kB / 463.9 MB, free: 59.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.2542, allocations: 12.66 kB / 463.9 MB, free: 59.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001733/0.2544, allocations: 298.5 kB / 464.2 MB, free: 59.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2544, allocations: 0 / 464.2 MB, free: 59.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001978/0.2564, allocations: 1.012 MB / 465.2 MB, free: 59.41 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.002761/0.2592, allocations: 1.317 MB / 466.5 MB, free: 59.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004511/0.2596, allocations: 318.3 kB / 466.8 MB, free: 59.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2596, allocations: 3.172 kB / 466.8 MB, free: 59.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.2598, allocations: 256.1 kB / 467.1 MB, free: 59.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006422/0.2605, allocations: 215.2 kB / 467.3 MB, free: 59.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/0.2621, allocations: 1.344 MB / 468.7 MB, free: 58.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.2622, allocations: 183.2 kB / 468.8 MB, free: 58.47 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003042/0.2625, allocations: 271.1 kB / 469.1 MB, free: 58.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.138e-05/0.2626, allocations: 40.34 kB / 469.1 MB, free: 58.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.764e-06/0.2626, allocations: 0 / 469.1 MB, free: 58.45 MB / 410.7 MB Notification: Performance of Templates: time 0.03835/0.301, allocations: 40.07 MB / 0.4973 GB, free: 42.09 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: 4.875519018853083]