Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.sta_a.T|heaHigPow.sta_b.T|cooLimPow.sta_a.T|cooLimPow.sta_b.T|heaCooUnl.sta_a.T|heaCooUnl.sta_b.T|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|setHeaHigPow.y.2.|heaHigPow.port_b.Xi_outflow.1.|setCooLimPow.y.2.|cooLimPow.port_b.Xi_outflow.1.|setHeaCooUnl.y.2.|heaCooUnl.port_b.Xi_outflow.1.|steSta.port_b.Xi_outflow.1.|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaHigPow.sta_a.T|heaHigPow.sta_b.T|cooLimPow.sta_a.T|cooLimPow.sta_b.T|heaCooUnl.sta_a.T|heaCooUnl.sta_b.T|steSta.sta_b.T|heaHigPow.Q_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow|steSta.Q_flow|setHeaHigPow.y.2.|heaHigPow.port_b.Xi_outflow.1.|setCooLimPow.y.2.|cooLimPow.port_b.Xi_outflow.1.|setHeaCooUnl.y.2.|heaCooUnl.port_b.Xi_outflow.1.|steSta.port_b.Xi_outflow.1.|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.322/2.322, allocations: 390.3 MB / 402.8 MB, free: 6.691 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 186.3 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.582/1.582, allocations: 221.3 MB / 0.7915 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009848/0.0009848, allocations: 91.81 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.967e-05/4.021e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3247, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.355/6.68, allocations: 1.875 GB / 3.093 GB, free: 362.8 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/6.681, allocations: 83.8 kB / 3.093 GB, free: 362.8 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 3.863/10.54, allocations: 1.018 GB / 4.112 GB, free: 251.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.162e-06/10.54, allocations: 0 / 4.112 GB, free: 251.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002064/10.54, allocations: 45.44 kB / 4.112 GB, free: 251.8 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.007701/10.55, allocations: 1.829 MB / 4.114 GB, free: 250.5 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/10.55, allocations: 7.844 kB / 4.114 GB, free: 250.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004303/10.56, allocations: 0.6922 MB / 4.114 GB, free: 250.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003685/10.56, allocations: 1.06 MB / 4.115 GB, free: 249.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.886e-05/10.56, allocations: 60.84 kB / 4.115 GB, free: 249.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003845/10.56, allocations: 82.5 kB / 4.115 GB, free: 249.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002549/10.56, allocations: 1.264 MB / 4.117 GB, free: 248.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/10.56, allocations: 3.938 kB / 4.117 GB, free: 248.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/10.56, allocations: 34.91 kB / 4.117 GB, free: 248.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.917e-05/10.56, allocations: 40.72 kB / 4.117 GB, free: 248.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/10.56, allocations: 0.9944 MB / 4.118 GB, free: 248.2 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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.008887/10.57, allocations: 5.783 MB / 4.123 GB, free: 243.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/10.58, allocations: 0.9382 MB / 4.124 GB, free: 242.6 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006713/10.58, allocations: 0.4966 MB / 4.125 GB, free: 242.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007317/10.58, allocations: 0.5794 MB / 4.125 GB, free: 241.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008633/10.58, allocations: 0.5916 MB / 4.126 GB, free: 240.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=80): time 4.518e-06/10.58, allocations: 3.938 kB / 4.126 GB, free: 240.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=80): time 0.002315/10.58, allocations: 1.107 MB / 4.127 GB, free: 239.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/10.58, allocations: 60.19 kB / 4.127 GB, free: 239.7 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/10.58, allocations: 1.086 MB / 4.128 GB, free: 238.6 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001548/10.58, allocations: 41.7 kB / 4.128 GB, free: 238.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006297/10.58, allocations: 0.5829 MB / 4.129 GB, free: 237.9 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003191/10.58, allocations: 279.2 kB / 4.129 GB, free: 237.7 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.604e-05/10.58, allocations: 20 kB / 4.129 GB, free: 237.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.381e-05/10.58, allocations: 342 kB / 4.129 GB, free: 237.3 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/10.58, allocations: 421.8 kB / 4.13 GB, free: 236.9 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/10.59, allocations: 0.719 MB / 4.13 GB, free: 236 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/10.59, allocations: 469.7 kB / 4.131 GB, free: 235.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/10.59, allocations: 4 kB / 4.131 GB, free: 235.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003194/10.59, allocations: 1.244 MB / 4.132 GB, free: 234.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/10.59, allocations: 12.19 kB / 4.132 GB, free: 234.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/10.59, allocations: 4 kB / 4.132 GB, free: 234.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.008e-05/10.59, allocations: 16 kB / 4.132 GB, free: 234.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/10.59, allocations: 311.5 kB / 4.132 GB, free: 234 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-05/10.59, allocations: 23.92 kB / 4.132 GB, free: 234 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002356/10.59, allocations: 234.7 kB / 4.133 GB, free: 233.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002067/10.59, allocations: 63.91 kB / 4.133 GB, free: 233.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003504/10.59, allocations: 167 kB / 4.133 GB, free: 233.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004808/10.6, allocations: 134.3 kB / 4.133 GB, free: 233.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00296/10.6, allocations: 1.232 MB / 4.134 GB, free: 232.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/10.6, allocations: 8 kB / 4.134 GB, free: 232.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/10.6, allocations: 4 kB / 4.134 GB, free: 232.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/10.6, allocations: 3.984 kB / 4.134 GB, free: 232.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006054/10.6, allocations: 2.731 MB / 4.137 GB, free: 229.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/10.6, allocations: 4 kB / 4.137 GB, free: 229.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001827/10.61, allocations: 251.1 kB / 4.137 GB, free: 229.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.007e-05/10.61, allocations: 4 kB / 4.137 GB, free: 229.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/10.61, allocations: 39.95 kB / 4.137 GB, free: 229 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-05/10.61, allocations: 15.89 kB / 4.137 GB, free: 229 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/10.61, allocations: 4 kB / 4.137 GB, free: 229 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003883/10.61, allocations: 2.163 MB / 4.139 GB, free: 226.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/10.61, allocations: 351.1 kB / 4.14 GB, free: 226.3 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005165/10.61, allocations: 23.98 kB / 4.14 GB, free: 226.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0016/10.61, allocations: 139.9 kB / 4.14 GB, free: 226.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/10.61, allocations: 68.38 kB / 4.14 GB, free: 226.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.999e-05/10.61, allocations: 43.95 kB / 4.14 GB, free: 226.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001364/10.62, allocations: 0.8412 MB / 4.141 GB, free: 225.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 4.91e-07/10.62, allocations: 0 / 4.141 GB, free: 225.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002165/10.62, allocations: 0.4996 MB / 4.141 GB, free: 224.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 3 (heaHigPow.Xi,cooLimPow.Xi,heaCooUnl.Xi) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003506/10.62, allocations: 1.982 MB / 4.143 GB, free: 223 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001869/10.62, allocations: 1.05 MB / 4.144 GB, free: 221.9 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/10.62, allocations: 0 / 4.144 GB, free: 221.9 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008127/10.62, allocations: 0.5339 MB / 4.145 GB, free: 221.4 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00289/10.63, allocations: 0.5632 MB / 4.145 GB, free: 220.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/10.64, allocations: 2.759 MB / 4.148 GB, free: 218 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007389/10.64, allocations: 1.2 MB / 4.149 GB, free: 216.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001953/10.64, allocations: 381.7 kB / 4.149 GB, free: 216.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005774/10.64, allocations: 127.3 kB / 4.15 GB, free: 216.3 MB / 1.167 GB Notification: Performance of SimCode: time 1.403e-06/10.64, allocations: 0 / 4.15 GB, free: 216.3 MB / 1.167 GB Notification: Performance of Templates: time 0.06069/10.7, allocations: 46.25 MB / 4.195 GB, free: 170.3 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches