Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.001591/0.001591, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001957/0.001957, allocations: 173 kB / 23.49 MB, free: 1.059 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.141/1.141, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.12/2.12, allocations: 429.5 MB / 0.6736 GB, free: 4.043 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 0.8782 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.543e-05/2.692e-05, allocations: 4.984 kB / 0.8782 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.08669/0.08672, allocations: 117.5 MB / 0.9929 GB, free: 0.8516 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.02534/0.1121, allocations: 20.65 MB / 1.013 GB, free: 12.16 MB / 0.9792 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003319/0.1154, allocations: 158.6 kB / 1.013 GB, free: 12 MB / 0.9792 GB Notification: Performance of NFTyping.typeComponents: time 0.003331/0.1187, allocations: 1.292 MB / 1.014 GB, free: 10.7 MB / 0.9792 GB Notification: Performance of NFTyping.typeBindings: time 0.008857/0.1276, allocations: 4.056 MB / 1.018 GB, free: 6.621 MB / 0.9792 GB Notification: Performance of NFTyping.typeClassSections: time 0.005845/0.1334, allocations: 3.199 MB / 1.022 GB, free: 3.414 MB / 0.9792 GB Notification: Performance of NFFlatten.flatten: time 0.008812/0.1422, allocations: 7.274 MB / 1.029 GB, free: 12.11 MB / 0.9948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003141/0.1454, allocations: 1.971 MB / 1.031 GB, free: 10.09 MB / 0.9948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008324/0.1537, allocations: 4.096 MB / 1.035 GB, free: 6.008 MB / 0.9948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003178/0.1569, allocations: 1.896 MB / 1.036 GB, free: 4.105 MB / 0.9948 GB Notification: Performance of NFPackage.collectConstants: time 0.0005786/0.1574, allocations: 256 kB / 1.037 GB, free: 3.855 MB / 0.9948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002846/0.1603, allocations: 1.442 MB / 1.038 GB, free: 2.41 MB / 0.9948 GB Notification: Performance of NFScalarize.scalarize: time 0.0009136/0.1612, allocations: 0.7431 MB / 1.039 GB, free: 1.664 MB / 0.9948 GB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.1627, allocations: 1.013 MB / 1.04 GB, free: 0.6484 MB / 0.9948 GB Notification: Performance of NFConvertDAE.convert: time 0.00491/0.1677, allocations: 2.943 MB / 1.043 GB, free: 13.7 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 6.403e-06/0.1677, allocations: 0 / 1.043 GB, free: 13.7 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1677, allocations: 0 / 1.043 GB, free: 13.7 MB / 1.01 GB Notification: Performance of Transformations before backend: time 5.862e-05/0.1677, allocations: 0 / 1.043 GB, free: 13.7 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003694/0.1714, allocations: 3.311 MB / 1.046 GB, free: 10.32 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1715, allocations: 8.031 kB / 1.046 GB, free: 10.32 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007536/0.1722, allocations: 486 kB / 1.046 GB, free: 9.84 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002746/0.175, allocations: 2.165 MB / 1.048 GB, free: 7.59 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.191e-05/0.175, allocations: 127 kB / 1.049 GB, free: 7.465 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.1752, allocations: 172 kB / 1.049 GB, free: 7.297 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.177, allocations: 1.459 MB / 1.05 GB, free: 5.68 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.883e-05/0.177, allocations: 0 / 1.05 GB, free: 5.68 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.884e-05/0.1771, allocations: 64 kB / 1.05 GB, free: 5.617 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.074e-05/0.1772, allocations: 40 kB / 1.05 GB, free: 5.578 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009847/0.1781, allocations: 0.5242 MB / 1.051 GB, free: 5.047 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4018/0.58, allocations: 5.886 MB / 1.057 GB, free: 216.4 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005359/0.5805, allocations: 251.7 kB / 1.057 GB, free: 216.4 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.5808, allocations: 146.3 kB / 1.057 GB, free: 216.4 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000269/0.581, allocations: 83.42 kB / 1.057 GB, free: 216.4 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.5811, allocations: 43.95 kB / 1.057 GB, free: 216.3 MB / 1.01 GB Notification: Performance of pre-optimization done (n=60): time 3.907e-06/0.5811, allocations: 0 / 1.057 GB, free: 216.3 MB / 1.01 GB Notification: Performance of matching and sorting (n=60): time 0.00128/0.5823, allocations: 0.6213 MB / 1.058 GB, free: 216.3 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.714e-05/0.5824, allocations: 58.22 kB / 1.058 GB, free: 216.2 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.5839, allocations: 1.812 MB / 1.059 GB, free: 215.9 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 5.998e-05/0.584, allocations: 46.05 kB / 1.06 GB, free: 215.9 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005728/0.5846, allocations: 1.23 MB / 1.061 GB, free: 215.3 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.5847, allocations: 231.1 kB / 1.061 GB, free: 215.2 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002032/0.5849, allocations: 255.2 kB / 1.061 GB, free: 215.1 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 6.546e-05/0.5849, allocations: 0.5202 MB / 1.062 GB, free: 214.6 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000275/0.5852, allocations: 163.2 kB / 1.062 GB, free: 214.5 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004698/0.5857, allocations: 1.115 MB / 1.063 GB, free: 213.3 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006765/0.5864, allocations: 0.7161 MB / 1.064 GB, free: 212.8 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-06/0.5864, allocations: 6.328 kB / 1.064 GB, free: 212.8 MB / 1.01 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00113/0.5875, allocations: 0.9352 MB / 1.065 GB, free: 212.4 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.5875, allocations: 9.75 kB / 1.065 GB, free: 212.4 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.5875, allocations: 9.078 kB / 1.065 GB, free: 212.4 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.5876, allocations: 16.31 kB / 1.065 GB, free: 212.4 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005565/0.5881, allocations: 257.2 kB / 1.065 GB, free: 212.4 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.521e-05/0.5881, allocations: 17.84 kB / 1.065 GB, free: 212.4 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007078/0.5888, allocations: 124.4 kB / 1.065 GB, free: 212.3 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.63e-05/0.5889, allocations: 54.58 kB / 1.065 GB, free: 212.3 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005302/0.5894, allocations: 294.4 kB / 1.065 GB, free: 212.2 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004492/0.5899, allocations: 1.12 MB / 1.066 GB, free: 210.9 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006096/0.5905, allocations: 0.706 MB / 1.067 GB, free: 210.3 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.157e-06/0.5905, allocations: 6.172 kB / 1.067 GB, free: 210.3 MB / 1.01 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.001054/0.5916, allocations: 0.9187 MB / 1.068 GB, free: 210 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.5916, allocations: 9.641 kB / 1.068 GB, free: 210 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.5916, allocations: 9.562 kB / 1.068 GB, free: 210 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.5916, allocations: 14.5 kB / 1.068 GB, free: 210 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004965/0.5921, allocations: 249.5 kB / 1.068 GB, free: 209.9 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.716e-05/0.5921, allocations: 24.62 kB / 1.068 GB, free: 209.9 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006186/0.5927, allocations: 102.6 kB / 1.068 GB, free: 209.9 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.042e-05/0.5928, allocations: 49.3 kB / 1.068 GB, free: 209.9 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0001679/0.5929, allocations: 336.4 kB / 1.069 GB, free: 209.6 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/0.5931, allocations: 237.1 kB / 1.069 GB, free: 209.4 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000777/0.5939, allocations: 0.6075 MB / 1.07 GB, free: 209.2 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.5939, allocations: 11.59 kB / 1.07 GB, free: 209.2 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.5939, allocations: 0 / 1.07 GB, free: 209.2 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004462/0.5944, allocations: 425.1 kB / 1.07 GB, free: 209 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.5965, allocations: 1.932 MB / 1.072 GB, free: 208.1 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.5965, allocations: 1.594 kB / 1.072 GB, free: 208.1 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.5969, allocations: 132.2 kB / 1.072 GB, free: 208 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.5969, allocations: 2.906 kB / 1.072 GB, free: 208 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.5969, allocations: 17.72 kB / 1.072 GB, free: 208 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.5969, allocations: 8.547 kB / 1.072 GB, free: 208 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5969, allocations: 2.844 kB / 1.072 GB, free: 208 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008771/0.5978, allocations: 0.8668 MB / 1.073 GB, free: 207.6 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003503/0.5981, allocations: 319.1 kB / 1.073 GB, free: 207.4 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.5983, allocations: 17.81 kB / 1.073 GB, free: 207.4 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.5987, allocations: 33.8 kB / 1.073 GB, free: 207.4 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.869e-05/0.5987, allocations: 41.03 kB / 1.073 GB, free: 207.3 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.5988, allocations: 35.11 kB / 1.073 GB, free: 207.3 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.0009406/0.5997, allocations: 1.054 MB / 1.074 GB, free: 207 MB / 1.01 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5997, allocations: 1.594 kB / 1.074 GB, free: 207 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.001787/0.6015, allocations: 1.173 MB / 1.075 GB, free: 206.8 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001231/0.6027, allocations: 0.746 MB / 1.076 GB, free: 206.7 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.00119/0.6039, allocations: 0.8631 MB / 1.077 GB, free: 206.5 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.6039, allocations: 0 / 1.077 GB, free: 206.5 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.6042, allocations: 193.9 kB / 1.077 GB, free: 206.4 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/0.6067, allocations: 1.208 MB / 1.078 GB, free: 206.1 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003724/0.6104, allocations: 3.311 MB / 1.082 GB, free: 204.4 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.6107, allocations: 407 kB / 1.082 GB, free: 204.2 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.001091/0.6118, allocations: 438.5 kB / 1.082 GB, free: 204.2 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.612, allocations: 167.7 kB / 1.083 GB, free: 204.1 MB / 1.01 GB Notification: Performance of SimCode: time 1.402e-06/0.612, allocations: 0 / 1.083 GB, free: 204.1 MB / 1.01 GB Notification: Performance of Templates: time 0.05809/0.6701, allocations: 44.3 MB / 1.126 GB, free: 191.7 MB / 1.01 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.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: 7.225165071198717]