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.422/2.422, allocations: 390.5 MB / 398 MB, free: 10.94 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.001519/0.001519, allocations: 184.8 kB / 491.2 MB, free: 1.559 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.671/1.671, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001065/0.001065, allocations: 91.89 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.656e-05/2.654e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3687, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.106/6.475, allocations: 1.874 GB / 3.086 GB, free: 356 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003288/6.475, allocations: 86.2 kB / 3.086 GB, free: 356 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.79/10.27, allocations: 1.007 GB / 4.093 GB, free: 246.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.964e-06/10.27, allocations: 0 / 4.093 GB, free: 246.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002426/10.27, allocations: 39.52 kB / 4.093 GB, free: 246.6 MB / 1.151 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.009013/10.27, allocations: 1.836 MB / 4.095 GB, free: 245.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/10.27, allocations: 7.25 kB / 4.095 GB, free: 245.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004581/10.28, allocations: 0.6939 MB / 4.095 GB, free: 245.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004126/10.28, allocations: 1.051 MB / 4.097 GB, free: 244.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.751e-05/10.28, allocations: 25.34 kB / 4.097 GB, free: 244.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004466/10.28, allocations: 52.5 kB / 4.097 GB, free: 244.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001929/10.29, allocations: 0.8343 MB / 4.097 GB, free: 244.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/10.29, allocations: 1.152 MB / 4.099 GB, free: 243.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.754e-05/10.29, allocations: 7.906 kB / 4.099 GB, free: 243.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/10.29, allocations: 0 / 4.099 GB, free: 243.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.986e-05/10.29, allocations: 43.95 kB / 4.099 GB, free: 243.3 MB / 1.151 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.009614/10.3, allocations: 5.579 MB / 4.104 GB, free: 238.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/10.3, allocations: 0.8947 MB / 4.105 GB, free: 238.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007218/10.3, allocations: 477.5 kB / 4.105 GB, free: 238.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008105/10.3, allocations: 0.5813 MB / 4.106 GB, free: 237.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008847/10.3, allocations: 0.5808 MB / 4.106 GB, free: 237.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 3.306e-06/10.3, allocations: 1.781 kB / 4.106 GB, free: 237.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.002588/10.3, allocations: 1.065 MB / 4.108 GB, free: 236.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/10.3, allocations: 61.62 kB / 4.108 GB, free: 236.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001608/10.31, allocations: 0.8493 MB / 4.108 GB, free: 236.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001388/10.31, allocations: 29.64 kB / 4.108 GB, free: 236.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005455/10.31, allocations: 0.588 MB / 4.109 GB, free: 235.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/10.31, allocations: 271.5 kB / 4.109 GB, free: 235.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.029e-05/10.31, allocations: 0 / 4.109 GB, free: 235.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001074/10.31, allocations: 340.8 kB / 4.11 GB, free: 235.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005977/10.31, allocations: 404.3 kB / 4.11 GB, free: 234.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007431/10.31, allocations: 0.7011 MB / 4.111 GB, free: 234.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007609/10.31, allocations: 461 kB / 4.111 GB, free: 234.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/10.31, allocations: 3.938 kB / 4.111 GB, free: 234.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002069/10.31, allocations: 1.161 MB / 4.112 GB, free: 233.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/10.31, allocations: 9.656 kB / 4.112 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/10.31, allocations: 11.48 kB / 4.112 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.795e-05/10.31, allocations: 17.38 kB / 4.112 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/10.31, allocations: 311.9 kB / 4.113 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/10.31, allocations: 15.94 kB / 4.113 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/10.32, allocations: 188.4 kB / 4.113 GB, free: 233.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/10.32, allocations: 59.25 kB / 4.113 GB, free: 233.1 MB / 1.151 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.0002935/10.32, allocations: 146.9 kB / 4.113 GB, free: 232.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003769/10.32, allocations: 118.5 kB / 4.113 GB, free: 232.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/10.32, allocations: 1.153 MB / 4.114 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/10.32, allocations: 8 kB / 4.114 GB, free: 231.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/10.32, allocations: 0 / 4.114 GB, free: 231.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/10.32, allocations: 3.984 kB / 4.114 GB, free: 231.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/10.32, allocations: 2.574 MB / 4.117 GB, free: 229 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/10.32, allocations: 7.984 kB / 4.117 GB, free: 229 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/10.32, allocations: 243.3 kB / 4.117 GB, free: 228.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-05/10.32, allocations: 11.06 kB / 4.117 GB, free: 228.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.873e-05/10.32, allocations: 27.97 kB / 4.117 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/10.32, allocations: 11.09 kB / 4.117 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/10.32, allocations: 4 kB / 4.117 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002859/10.33, allocations: 2.092 MB / 4.119 GB, free: 226.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000867/10.33, allocations: 323.4 kB / 4.119 GB, free: 226.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003841/10.33, allocations: 15.94 kB / 4.119 GB, free: 226.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/10.33, allocations: 141.3 kB / 4.12 GB, free: 226 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/10.33, allocations: 60.44 kB / 4.12 GB, free: 225.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.21e-05/10.33, allocations: 43.33 kB / 4.12 GB, free: 225.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00101/10.33, allocations: 0.6405 MB / 4.12 GB, free: 225.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.31e-07/10.33, allocations: 0 / 4.12 GB, free: 225.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002206/10.33, allocations: 451.3 kB / 4.121 GB, free: 224.8 MB / 1.151 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.003765/10.34, allocations: 2.162 MB / 4.123 GB, free: 223.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001851/10.34, allocations: 0.9958 MB / 4.124 GB, free: 222.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/10.34, allocations: 0 / 4.124 GB, free: 222.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009696/10.34, allocations: 0.5193 MB / 4.124 GB, free: 221.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/10.34, allocations: 407.8 kB / 4.125 GB, free: 221.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/10.36, allocations: 2.682 MB / 4.127 GB, free: 218.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/10.36, allocations: 1.213 MB / 4.128 GB, free: 217.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001928/10.36, allocations: 347.5 kB / 4.129 GB, free: 216.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005682/10.36, allocations: 115.4 kB / 4.129 GB, free: 216.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.122e-06/10.36, allocations: 0 / 4.129 GB, free: 216.8 MB / 1.151 GB Notification: Performance of Templates: time 0.04254/10.4, allocations: 26.88 MB / 4.155 GB, free: 190.4 MB / 1.151 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