Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.0009645/0.0009645, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001024/0.001024, allocations: 173 kB / 23.36 MB, free: 1.133 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 1.01/1.01, allocations: 177.1 MB / 203.8 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.45/2.45, allocations: 438.8 MB / 0.6826 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.146e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.007244/0.007265, allocations: 7.414 MB / 0.8459 GB, free: 6.734 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.004596/0.01186, allocations: 3.264 MB / 0.8491 GB, free: 3.461 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004657/0.01233, allocations: 27.75 kB / 0.8491 GB, free: 3.434 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.000705/0.01303, allocations: 190.6 kB / 0.8493 GB, free: 3.246 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.001044/0.01408, allocations: 473.2 kB / 0.8497 GB, free: 2.781 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.01552, allocations: 0.7128 MB / 0.8504 GB, free: 2.066 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.001145/0.01666, allocations: 0.9931 MB / 0.8514 GB, free: 1.066 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004783/0.01714, allocations: 269.2 kB / 0.8516 GB, free: 0.7969 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006736/0.01781, allocations: 486.7 kB / 0.8521 GB, free: 328 kB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00037/0.01818, allocations: 259.2 kB / 0.8523 GB, free: 68 kB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.85e-05/0.01823, allocations: 31.94 kB / 0.8524 GB, free: 36 kB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007745/0.01901, allocations: 491 kB / 0.8528 GB, free: 15.55 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.01912, allocations: 103.5 kB / 0.8529 GB, free: 15.45 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.01925, allocations: 147.6 kB / 0.8531 GB, free: 15.31 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.000789/0.02004, allocations: 0.6033 MB / 0.8537 GB, free: 14.7 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.02004, allocations: 4 kB / 0.8537 GB, free: 14.7 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.092e-06/0.02004, allocations: 0 / 0.8537 GB, free: 14.7 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.02005, allocations: 0 / 0.8537 GB, free: 14.7 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0007877/0.02084, allocations: 0.7123 MB / 0.8544 GB, free: 13.96 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.02087, allocations: 8.031 kB / 0.8544 GB, free: 13.95 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.914e-05/0.02096, allocations: 48.89 kB / 0.8544 GB, free: 13.91 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007454/0.0217, allocations: 355.6 kB / 0.8548 GB, free: 13.54 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.02172, allocations: 20.88 kB / 0.8548 GB, free: 13.52 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.02175, allocations: 31.94 kB / 0.8548 GB, free: 13.48 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/0.02197, allocations: 159.6 kB / 0.855 GB, free: 13.32 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.02197, allocations: 0 / 0.855 GB, free: 13.32 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.02199, allocations: 12 kB / 0.855 GB, free: 13.3 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.022, allocations: 4 kB / 0.855 GB, free: 13.3 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.996e-05/0.02207, allocations: 47.47 kB / 0.855 GB, free: 13.26 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007619/0.02283, allocations: 0.4898 MB / 0.8555 GB, free: 12.74 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.02295, allocations: 109.3 kB / 0.8556 GB, free: 12.62 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.566e-05/0.02298, allocations: 35.66 kB / 0.8556 GB, free: 12.59 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 8.425e-05/0.02307, allocations: 15.98 kB / 0.8557 GB, free: 12.57 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.02309, allocations: 38.56 kB / 0.8557 GB, free: 12.52 MB / 0.823 GB Notification: Performance of pre-optimization done (n=14): time 2.004e-06/0.02309, allocations: 0 / 0.8557 GB, free: 12.52 MB / 0.823 GB Notification: Performance of matching and sorting (n=14): time 0.0002004/0.02329, allocations: 109.5 kB / 0.8558 GB, free: 12.41 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.02332, allocations: 51.41 kB / 0.8559 GB, free: 12.35 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.02357, allocations: 376.9 kB / 0.8562 GB, free: 11.96 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.02359, allocations: 33.7 kB / 0.8562 GB, free: 11.93 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 9.77e-05/0.02369, allocations: 189.5 kB / 0.8564 GB, free: 11.73 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/0.02372, allocations: 51.53 kB / 0.8565 GB, free: 11.68 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.719e-05/0.02378, allocations: 53.67 kB / 0.8565 GB, free: 11.62 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.02389, allocations: 354.7 kB / 0.8569 GB, free: 11.27 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.501e-05/0.02393, allocations: 23.67 kB / 0.8569 GB, free: 11.24 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.02408, allocations: 364.5 kB / 0.8572 GB, free: 10.8 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.441e-05/0.02418, allocations: 85.02 kB / 0.8573 GB, free: 10.71 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.02418, allocations: 0 / 0.8573 GB, free: 10.71 MB / 0.823 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001563/0.02434, allocations: 125.4 kB / 0.8574 GB, free: 10.58 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.02435, allocations: 11.94 kB / 0.8574 GB, free: 10.57 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.02436, allocations: 3.984 kB / 0.8574 GB, free: 10.56 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.02437, allocations: 0 / 0.8574 GB, free: 10.56 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.0245, allocations: 43.92 kB / 0.8575 GB, free: 10.52 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.02451, allocations: 4 kB / 0.8575 GB, free: 10.52 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.02462, allocations: 23.88 kB / 0.8575 GB, free: 10.49 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.02464, allocations: 19.92 kB / 0.8575 GB, free: 10.47 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.956e-05/0.02473, allocations: 105.8 kB / 0.8576 GB, free: 10.36 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001393/0.02487, allocations: 362.2 kB / 0.858 GB, free: 9.914 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.453e-05/0.02495, allocations: 97.83 kB / 0.8581 GB, free: 9.801 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.02e-07/0.02495, allocations: 0 / 0.8581 GB, free: 9.801 MB / 0.823 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0001516/0.0251, allocations: 138.6 kB / 0.8582 GB, free: 9.66 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 9.739e-06/0.02511, allocations: 8 kB / 0.8582 GB, free: 9.652 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-06/0.02511, allocations: 192 / 0.8582 GB, free: 9.652 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.11e-06/0.02512, allocations: 12 kB / 0.8582 GB, free: 9.641 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.02523, allocations: 39.97 kB / 0.8583 GB, free: 9.602 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.02523, allocations: 7.938 kB / 0.8583 GB, free: 9.594 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.02534, allocations: 35.86 kB / 0.8583 GB, free: 9.559 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.02536, allocations: 8 kB / 0.8583 GB, free: 9.551 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.102e-05/0.02545, allocations: 184.3 kB / 0.8585 GB, free: 9.363 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.752e-05/0.02549, allocations: 31.97 kB / 0.8585 GB, free: 9.332 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000218/0.0257, allocations: 155.2 kB / 0.8587 GB, free: 9.176 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.02571, allocations: 8 kB / 0.8587 GB, free: 9.168 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.02571, allocations: 0 / 0.8587 GB, free: 9.168 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.02571, allocations: 0 / 0.8587 GB, free: 9.168 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004141/0.02613, allocations: 0.493 MB / 0.8592 GB, free: 8.633 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.02613, allocations: 0 / 0.8592 GB, free: 8.633 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.513e-05/0.0262, allocations: 27.98 kB / 0.8592 GB, free: 8.605 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.0262, allocations: 0 / 0.8592 GB, free: 8.605 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.02621, allocations: 11.94 kB / 0.8592 GB, free: 8.594 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.02621, allocations: 128 / 0.8592 GB, free: 8.594 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.02621, allocations: 8 kB / 0.8592 GB, free: 8.586 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.02638, allocations: 288 kB / 0.8595 GB, free: 8.273 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.962e-05/0.02644, allocations: 51.64 kB / 0.8595 GB, free: 8.223 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.02646, allocations: 4 kB / 0.8595 GB, free: 8.219 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.954e-05/0.02654, allocations: 15.92 kB / 0.8595 GB, free: 8.203 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.601e-05/0.02658, allocations: 11.98 kB / 0.8596 GB, free: 8.191 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.02659, allocations: 4 kB / 0.8596 GB, free: 8.188 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001255/0.02671, allocations: 167.5 kB / 0.8597 GB, free: 8.023 MB / 0.823 GB Notification: Performance of sort global known variables: time 7e-08/0.02671, allocations: 0 / 0.8597 GB, free: 8.023 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003919/0.0271, allocations: 195.5 kB / 0.8599 GB, free: 7.832 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001127/0.02823, allocations: 0.4948 MB / 0.8604 GB, free: 7.523 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002281/0.02846, allocations: 141.4 kB / 0.8605 GB, free: 7.379 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.02847, allocations: 4 kB / 0.8605 GB, free: 7.375 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.25e-05/0.02852, allocations: 47.59 kB / 0.8606 GB, free: 7.328 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.02898, allocations: 190.9 kB / 0.8608 GB, free: 7.145 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.03024, allocations: 0.6696 MB / 0.8614 GB, free: 6.434 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.27e-05/0.0303, allocations: 109.3 kB / 0.8615 GB, free: 6.309 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0001558/0.03046, allocations: 59.19 kB / 0.8616 GB, free: 6.25 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.03071, allocations: 175.2 kB / 0.8617 GB, free: 6.078 MB / 0.823 GB Notification: Performance of SimCode: time 8.12e-07/0.03071, allocations: 0 / 0.8617 GB, free: 6.078 MB / 0.823 GB Notification: Performance of Templates: time 0.01091/0.04162, allocations: 8.282 MB / 0.8698 GB, free: 13.99 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.526362072210759]