Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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_Water,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|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,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|heaHigPow.mWat_flow|cooLimPow.mWat_flow|heaCooUnl.mWat_flow|steSta.mWat_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.925/1.925, allocations: 390.4 MB / 397.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.001051, allocations: 189.6 kB / 490.8 MB, free: 11.2 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.331/1.331, allocations: 221.4 MB / 0.7863 GB, free: 13.56 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000989/0.000989, allocations: 94.61 kB / 0.9264 GB, free: 4.52 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 7.574e-06/7.674e-06, allocations: 0 / 1.072 GB, free: 15.54 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8679/0.8679, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.967/5.835, allocations: 2.158 GB / 3.37 GB, free: 399.1 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/5.835, allocations: 83.95 kB / 3.37 GB, free: 399 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.757/7.592, allocations: 0.6 GB / 3.97 GB, free: 243.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001691/7.592, allocations: 39.59 kB / 3.97 GB, free: 243.3 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.003856/7.596, allocations: 1.347 MB / 3.971 GB, free: 241.9 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/7.596, allocations: 15.09 kB / 3.971 GB, free: 241.9 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003537/7.6, allocations: 0.6319 MB / 3.972 GB, free: 241.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00322/7.603, allocations: 0.9327 MB / 3.973 GB, free: 240.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.502e-05/7.603, allocations: 20 kB / 3.973 GB, free: 240.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002212/7.603, allocations: 51.94 kB / 3.973 GB, free: 240.3 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001188/7.604, allocations: 0.5584 MB / 3.973 GB, free: 239.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/7.606, allocations: 0.8299 MB / 3.974 GB, free: 238.8 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/7.606, allocations: 3.938 kB / 3.974 GB, free: 238.8 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.034e-05/7.606, allocations: 4.688 kB / 3.974 GB, free: 238.8 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.051e-05/7.606, allocations: 41.58 kB / 3.974 GB, free: 238.8 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00588/7.612, allocations: 4.838 MB / 3.979 GB, free: 233.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009735/7.613, allocations: 0.5391 MB / 3.979 GB, free: 233.2 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/7.613, allocations: 290.9 kB / 3.98 GB, free: 233 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001152/7.614, allocations: 1.603 MB / 3.981 GB, free: 231 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005553/7.615, allocations: 377.5 kB / 3.982 GB, free: 230.6 MB / 1.167 GB Notification: Performance of pre-optimization done (n=61): time 4.699e-06/7.615, allocations: 3.797 kB / 3.982 GB, free: 230.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=61): time 0.00171/7.617, allocations: 0.6983 MB / 3.982 GB, free: 229.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/7.617, allocations: 65.28 kB / 3.982 GB, free: 229.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/7.618, allocations: 0.8382 MB / 3.983 GB, free: 229 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 7.841e-05/7.618, allocations: 34.25 kB / 3.983 GB, free: 229 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/7.618, allocations: 376 kB / 3.984 GB, free: 228.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/7.618, allocations: 197.2 kB / 3.984 GB, free: 228.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/7.618, allocations: 0.5625 kB / 3.984 GB, free: 228.4 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.178e-05/7.618, allocations: 334.5 kB / 3.984 GB, free: 228.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/7.619, allocations: 255.3 kB / 3.984 GB, free: 227.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005456/7.619, allocations: 0.5448 MB / 3.985 GB, free: 227.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008801/7.62, allocations: 355.8 kB / 3.985 GB, free: 226.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/7.62, allocations: 0.7812 kB / 3.985 GB, free: 226.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001756/7.622, allocations: 0.879 MB / 3.986 GB, free: 225.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/7.622, allocations: 4 kB / 3.986 GB, free: 225.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/7.622, allocations: 8.5 kB / 3.986 GB, free: 225.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/7.622, allocations: 12.69 kB / 3.986 GB, free: 225.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/7.623, allocations: 292.9 kB / 3.986 GB, free: 225.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.991e-05/7.623, allocations: 19.92 kB / 3.986 GB, free: 225.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/7.625, allocations: 189.1 kB / 3.987 GB, free: 225.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/7.625, allocations: 51.97 kB / 3.987 GB, free: 225.4 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (100): * Single equations (assignments): 100 * 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.0001807/7.625, allocations: 144 kB / 3.987 GB, free: 225.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/7.625, allocations: 110.6 kB / 3.987 GB, free: 225.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/7.627, allocations: 1.066 MB / 3.988 GB, free: 224.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/7.627, allocations: 11.98 kB / 3.988 GB, free: 224.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/7.628, allocations: 0.5 kB / 3.988 GB, free: 224.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.467e-06/7.628, allocations: 4.609 kB / 3.988 GB, free: 224.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/7.631, allocations: 1.981 MB / 3.99 GB, free: 222 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/7.631, allocations: 0.625 kB / 3.99 GB, free: 222 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/7.632, allocations: 215.5 kB / 3.99 GB, free: 221.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.299e-05/7.632, allocations: 9.656 kB / 3.99 GB, free: 221.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.268e-05/7.632, allocations: 19.97 kB / 3.99 GB, free: 221.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/7.632, allocations: 4 kB / 3.99 GB, free: 221.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/7.632, allocations: 8 kB / 3.99 GB, free: 221.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002116/7.634, allocations: 1.527 MB / 3.992 GB, free: 220.2 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004458/7.634, allocations: 291.4 kB / 3.992 GB, free: 219.9 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/7.635, allocations: 8 kB / 3.992 GB, free: 219.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/7.636, allocations: 138.2 kB / 3.992 GB, free: 219.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/7.636, allocations: 52.52 kB / 3.992 GB, free: 219.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.385e-05/7.636, allocations: 35.97 kB / 3.992 GB, free: 219.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.0006859/7.637, allocations: 0.6281 MB / 3.993 GB, free: 219 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001376/7.638, allocations: 375.4 kB / 3.993 GB, free: 218.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * 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 (76): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.001532/7.64, allocations: 0.7178 MB / 3.994 GB, free: 218.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001191/7.641, allocations: 0.739 MB / 3.994 GB, free: 217.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/7.641, allocations: 4.25 kB / 3.994 GB, free: 217.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005815/7.641, allocations: 414.3 kB / 3.995 GB, free: 217 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/7.643, allocations: 302.3 kB / 3.995 GB, free: 216.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003893/7.647, allocations: 1.82 MB / 3.997 GB, free: 214.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/7.648, allocations: 1.268 MB / 3.998 GB, free: 213.5 MB / 1.167 GB Notification: Performance of SimCode: time 7.61e-07/7.648, allocations: 0 / 3.998 GB, free: 213.5 MB / 1.167 GB Notification: Performance of Templates: time 0.02899/7.677, allocations: 19.12 MB / 4.017 GB, free: 194.7 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches