Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.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.HeatExchangers.Validation.PrescribedOutlet_dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow.y|heaHigPowIn.T|heaHigPowOut.T|heaHigPow.TSet|cooLimPowIn.T|cooLimPowOut.T|cooLimPow.TSet|heaCooUnlIn.T|heaCooUnlOut.T|heaCooUnl.TSet|heaHigPow.QMax_flow|heaHigPow.Q_flow|cooLimPow.QMin_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic") translateModel(Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow.y|heaHigPowIn.T|heaHigPowOut.T|heaHigPow.TSet|cooLimPowIn.T|cooLimPowOut.T|cooLimPow.TSet|heaCooUnlIn.T|heaCooUnlOut.T|heaCooUnl.TSet|heaHigPow.QMax_flow|heaHigPow.Q_flow|cooLimPow.QMin_flow|cooLimPow.Q_flow|heaCooUnl.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic") [: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 2.029/2.029, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.001084/0.001083, allocations: 181.2 kB / 490.8 MB, free: 1.934 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.484/1.484, allocations: 221.4 MB / 0.7863 GB, free: 13.65 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.0009526/0.0009524, allocations: 96.66 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.826e-06/8.846e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3315, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.067/1.399, allocations: 401.7 MB / 1.604 GB, free: 13.25 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003327/1.399, allocations: 86.66 kB / 1.604 GB, free: 13.21 MB / 1.026 GB Notification: Performance of FrontEnd: time 5.732/7.131, allocations: 1.537 GB / 3.141 GB, free: 186.2 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0003004/7.131, allocations: 54.91 kB / 3.141 GB, free: 186.2 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.005543/7.137, allocations: 1.878 MB / 3.142 GB, free: 185.7 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/7.137, allocations: 7.625 kB / 3.142 GB, free: 185.7 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00383/7.141, allocations: 0.6627 MB / 3.143 GB, free: 185.6 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005287/7.146, allocations: 1.465 MB / 3.144 GB, free: 185.2 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.79e-05/7.146, allocations: 33.25 kB / 3.145 GB, free: 185.2 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004739/7.147, allocations: 67.72 kB / 3.145 GB, free: 185.2 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002206/7.149, allocations: 0.8315 MB / 3.145 GB, free: 185.2 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/7.151, allocations: 1.059 MB / 3.146 GB, free: 185 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/7.152, allocations: 0 / 3.146 GB, free: 185 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/7.152, allocations: 10.44 kB / 3.146 GB, free: 185 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/7.152, allocations: 25.28 kB / 3.146 GB, free: 185 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/7.162, allocations: 6.687 MB / 3.153 GB, free: 181.1 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/7.164, allocations: 0.8542 MB / 3.154 GB, free: 181.1 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006711/7.165, allocations: 499.4 kB / 3.154 GB, free: 181.1 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001494/7.166, allocations: 2.266 MB / 3.157 GB, free: 178.5 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008711/7.167, allocations: 0.6366 MB / 3.157 GB, free: 178.4 MB / 1.198 GB Notification: Performance of pre-optimization done (n=97): time 5.18e-06/7.167, allocations: 0 / 3.157 GB, free: 178.4 MB / 1.198 GB Notification: Performance of matching and sorting (n=97): time 0.003472/7.17, allocations: 1.303 MB / 3.158 GB, free: 178.2 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/7.171, allocations: 146.7 kB / 3.159 GB, free: 178.1 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/7.172, allocations: 0.8982 MB / 3.159 GB, free: 177.9 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001038/7.172, allocations: 35.08 kB / 3.159 GB, free: 177.9 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003175/7.172, allocations: 456.5 kB / 3.16 GB, free: 177.7 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/7.172, allocations: 316.8 kB / 3.16 GB, free: 177.6 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.689e-05/7.173, allocations: 3.875 kB / 3.16 GB, free: 177.6 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 8.3e-05/7.173, allocations: 342.2 kB / 3.161 GB, free: 177.3 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000558/7.173, allocations: 410.2 kB / 3.161 GB, free: 177.3 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006867/7.174, allocations: 0.6796 MB / 3.162 GB, free: 177 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001938/7.176, allocations: 0.6971 MB / 3.162 GB, free: 176.9 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/7.176, allocations: 0 / 3.162 GB, free: 176.9 MB / 1.198 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.003138/7.179, allocations: 1.454 MB / 3.164 GB, free: 176.8 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004182/7.179, allocations: 2.144 MB / 3.166 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/7.179, allocations: 7 kB / 3.166 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/7.179, allocations: 10.69 kB / 3.166 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/7.181, allocations: 303.8 kB / 3.166 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/7.181, allocations: 15 kB / 3.166 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/7.183, allocations: 224.5 kB / 3.166 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/7.183, allocations: 65.31 kB / 3.166 GB, free: 174.6 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/7.183, allocations: 6.844 kB / 3.166 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002799/7.186, allocations: 1.271 MB / 3.168 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/7.186, allocations: 7.812 kB / 3.168 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/7.186, allocations: 15.31 kB / 3.168 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/7.187, allocations: 298.2 kB / 3.168 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/7.187, allocations: 17.84 kB / 3.168 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/7.189, allocations: 215.5 kB / 3.168 GB, free: 174.6 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/7.189, allocations: 59.53 kB / 3.168 GB, free: 174.6 MB / 1.198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,$PRE.TSetHeat.nextEvent,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,$PRE.TSetCool.nextEvent,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,$PRE.TSetCoolHeat.nextEvent,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 3 * 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.0003479/7.189, allocations: 240.8 kB / 3.168 GB, free: 174.4 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002459/7.19, allocations: 154.2 kB / 3.169 GB, free: 174.3 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/7.194, allocations: 2.045 MB / 3.171 GB, free: 174.2 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.199e-05/7.194, allocations: 20.42 kB / 3.171 GB, free: 174.2 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/7.194, allocations: 3.188 kB / 3.171 GB, free: 174.2 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/7.194, allocations: 3.234 kB / 3.171 GB, free: 174.2 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00581/7.2, allocations: 3.12 MB / 3.174 GB, free: 173.8 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/7.2, allocations: 2.281 kB / 3.174 GB, free: 173.8 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/7.201, allocations: 246.9 kB / 3.174 GB, free: 173.8 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-05/7.201, allocations: 10.33 kB / 3.174 GB, free: 173.8 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.546e-05/7.201, allocations: 31.52 kB / 3.174 GB, free: 173.8 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/7.201, allocations: 7.797 kB / 3.174 GB, free: 173.8 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/7.201, allocations: 7.312 kB / 3.174 GB, free: 173.8 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004181/7.205, allocations: 2.59 MB / 3.176 GB, free: 173.4 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008772/7.206, allocations: 398.7 kB / 3.177 GB, free: 173.2 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/7.206, allocations: 9.812 kB / 3.177 GB, free: 173.2 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/7.208, allocations: 167.2 kB / 3.177 GB, free: 173.2 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/7.208, allocations: 69.27 kB / 3.177 GB, free: 173.2 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/7.208, allocations: 55.77 kB / 3.177 GB, free: 173.2 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.0009559/7.209, allocations: 0.673 MB / 3.178 GB, free: 173.1 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.003201/7.212, allocations: 0.883 MB / 3.179 GB, free: 173.1 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (heaHigPow.outCon.T,heaHigPowOut.T,cooLimPowOut.T,cooLimPow.outCon.T,heaCooUnl.outCon.T,heaCooUnlOut.T,heaHigPowIn.T,cooLimPowIn.T,heaCooUnlIn.T) * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 18 (TSetCoolHeat.nextEvent,TSetCoolHeat.last,TSetCoolHeat.nextEventScaled,TSetCoolHeat.b,TSetCoolHeat.a,$whenCondition3,TSetCool.nextEvent,TSetCool.last,TSetCool.nextEventScaled,TSetCool.b,TSetCool.a,$whenCondition2,TSetHeat.nextEvent,TSetHeat.last,TSetHeat.nextEventScaled,TSetHeat.b,TSetHeat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 19 * 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 Backend phase and start with SimCode phase: time 0.002403/7.215, allocations: 0.9845 MB / 3.18 GB, free: 172.8 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.003245/7.218, allocations: 1.929 MB / 3.182 GB, free: 172.6 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/7.218, allocations: 2.844 kB / 3.182 GB, free: 172.6 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.0011/7.219, allocations: 0.8049 MB / 3.182 GB, free: 172.5 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003214/7.222, allocations: 0.4896 MB / 3.183 GB, free: 172.5 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/7.228, allocations: 2.699 MB / 3.185 GB, free: 171.9 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001365/7.23, allocations: 1.492 MB / 3.187 GB, free: 171.2 MB / 1.198 GB Notification: Performance of SimCode: time 2.965e-06/7.23, allocations: 2.688 kB / 3.187 GB, free: 171.2 MB / 1.198 GB Notification: Performance of Templates: time 0.06731/7.297, allocations: 36.84 MB / 3.223 GB, free: 170.6 MB / 1.198 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches