Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.9..T|tan.vol.1..T|TIn.T|pumCon.y",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.9..T|tan.vol.1..T|TIn.T|pumCon.y",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank") [: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 9.1.1-maint.9.1.x/package.mo): time 2.021/2.021, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.00118/0.001181, allocations: 180.5 kB / 487 MB, free: 5.383 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.524/1.524, allocations: 221.3 MB / 0.7819 GB, free: 1.477 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 99.17 kB / 0.9213 GB, free: 2.723 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.733e-06/6.753e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3438, allocations: 142.3 MB / 1.205 GB, free: 26.28 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.33/5.673, allocations: 2.239 GB / 3.445 GB, free: 48.45 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/5.674, allocations: 98.11 kB / 3.445 GB, free: 48.41 MB / 1.151 GB Notification: Performance of FrontEnd: time 9.088/14.76, allocations: 2.551 GB / 5.996 GB, free: 137.2 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.001917/14.76, allocations: 271.5 kB / 5.996 GB, free: 137.1 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: 2053 * Number of variables: 2053 Notification: Performance of Generate backend data structure: time 0.03507/14.8, allocations: 8.927 MB / 6.005 GB, free: 133.6 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/14.8, allocations: 12.44 kB / 6.005 GB, free: 133.6 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01782/14.82, allocations: 2.305 MB / 6.007 GB, free: 133 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03676/14.85, allocations: 12.23 MB / 6.019 GB, free: 131.7 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005932/14.85, allocations: 254.5 kB / 6.019 GB, free: 131.7 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00384/14.86, allocations: 488.6 kB / 6.02 GB, free: 131.6 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02338/14.88, allocations: 9.341 MB / 6.029 GB, free: 128.3 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03259/14.91, allocations: 9.837 MB / 6.039 GB, free: 124.3 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004002/14.91, allocations: 26.12 kB / 6.039 GB, free: 124.2 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002442/14.92, allocations: 13.53 kB / 6.039 GB, free: 124.2 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003422/14.92, allocations: 355.4 kB / 6.039 GB, free: 124.2 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09108/15.01, allocations: 44.81 MB / 6.083 GB, free: 84.24 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01293/15.02, allocations: 6.749 MB / 6.089 GB, free: 77.56 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005015/15.03, allocations: 3.694 MB / 6.093 GB, free: 73.85 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03188/15.06, allocations: 17.94 MB / 6.11 GB, free: 55.28 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004474/15.06, allocations: 3.293 MB / 6.114 GB, free: 51.93 MB / 1.198 GB Notification: Performance of pre-optimization done (n=511): time 7.474e-06/15.06, allocations: 0 / 6.114 GB, free: 51.93 MB / 1.198 GB Notification: Performance of matching and sorting (n=511): time 0.01825/15.08, allocations: 7.169 MB / 6.121 GB, free: 44.66 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/15.08, allocations: 317 kB / 6.121 GB, free: 44.28 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01029/15.09, allocations: 6.516 MB / 6.127 GB, free: 37.8 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001459/15.09, allocations: 33.7 kB / 6.127 GB, free: 37.76 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.003704/15.1, allocations: 3.021 MB / 6.13 GB, free: 34.7 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.003552/15.1, allocations: 1.69 MB / 6.132 GB, free: 32.98 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004827/15.1, allocations: 0 / 6.132 GB, free: 32.98 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0003451/15.1, allocations: 0.5666 MB / 6.132 GB, free: 32.41 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003951/15.11, allocations: 3.07 MB / 6.135 GB, free: 29.34 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004693/15.11, allocations: 4.738 MB / 6.14 GB, free: 23.89 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02183/15.13, allocations: 5.894 MB / 6.146 GB, free: 17.95 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.68e-05/15.13, allocations: 12 kB / 6.146 GB, free: 17.94 MB / 1.198 GB Notification: Performance of matching and sorting (n=824) (initialization): time 0.03247/15.16, allocations: 10.54 MB / 6.156 GB, free: 7.316 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.5987/15.76, allocations: 23.22 MB / 6.179 GB, free: 240 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001797/15.76, allocations: 53.59 kB / 6.179 GB, free: 240 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/15.76, allocations: 164.9 kB / 6.179 GB, free: 240 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009211/15.77, allocations: 1.697 MB / 6.181 GB, free: 240 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008186/15.77, allocations: 0.7447 MB / 6.181 GB, free: 239.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01112/15.79, allocations: 0.9092 MB / 6.182 GB, free: 239.5 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0021/15.79, allocations: 313.2 kB / 6.183 GB, free: 239.5 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/15.79, allocations: 3.812 kB / 6.183 GB, free: 239.5 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03458/15.82, allocations: 9.723 MB / 6.192 GB, free: 239.3 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002055/15.82, allocations: 47.69 kB / 6.192 GB, free: 239.3 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004597/15.82, allocations: 163.6 kB / 6.192 GB, free: 239.3 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009072/15.83, allocations: 1.684 MB / 6.194 GB, free: 239.3 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006898/15.83, allocations: 0.752 MB / 6.195 GB, free: 238.8 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01064/15.84, allocations: 0.7872 MB / 6.195 GB, free: 238.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001877/15.85, allocations: 309.3 kB / 6.196 GB, free: 238.8 MB / 1.214 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (819): * Single equations (assignments): 817 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001899/15.85, allocations: 283 kB / 6.196 GB, free: 238.7 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002681/15.85, allocations: 0.7311 MB / 6.197 GB, free: 238.7 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02048/15.87, allocations: 8.395 MB / 6.205 GB, free: 238.4 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.584e-05/15.87, allocations: 58 kB / 6.205 GB, free: 238.4 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/15.87, allocations: 3.969 kB / 6.205 GB, free: 238.4 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01484/15.89, allocations: 6.665 MB / 6.212 GB, free: 238 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03818/15.92, allocations: 16.84 MB / 6.228 GB, free: 237.4 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/15.92, allocations: 0 / 6.228 GB, free: 237.4 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007669/15.93, allocations: 1.172 MB / 6.229 GB, free: 237.4 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005204/15.93, allocations: 90.89 kB / 6.229 GB, free: 237.4 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001669/15.93, allocations: 97.36 kB / 6.229 GB, free: 237.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007337/15.93, allocations: 0.6634 MB / 6.23 GB, free: 236.9 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/15.93, allocations: 2.406 kB / 6.23 GB, free: 236.9 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02697/15.96, allocations: 11.92 MB / 6.242 GB, free: 236 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007292/15.97, allocations: 1.985 MB / 6.244 GB, free: 235.5 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003357/15.97, allocations: 25.39 kB / 6.244 GB, free: 235.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0095/15.98, allocations: 475.4 kB / 6.244 GB, free: 235.5 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00093/15.98, allocations: 278.9 kB / 6.244 GB, free: 235.4 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007781/15.98, allocations: 232.2 kB / 6.244 GB, free: 235.4 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.009703/15.99, allocations: 4.965 MB / 6.249 GB, free: 235.2 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.02693/16.02, allocations: 5.05 MB / 6.254 GB, free: 234.8 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 27 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.indTanHex.vol[1].dynBal.U,tan.indTanHex.vol[2].dynBal.U,tan.indTanHex.vol[3].dynBal.U,tan.indTanHex.vol[4].dynBal.U,tan.indTanHex.cap[1].T,tan.indTanHex.cap[2].T,tan.indTanHex.cap[3].T,tan.indTanHex.cap[4].T,pum.filter.s[1],pum.filter.s[2],exp.m,exp.H) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (539): * Single equations (assignments): 528 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.005823/16.03, allocations: 2.214 MB / 6.256 GB, free: 234.5 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.02358/16.05, allocations: 11.63 MB / 6.268 GB, free: 234.3 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-05/16.05, allocations: 8.219 kB / 6.268 GB, free: 234.3 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.005765/16.06, allocations: 3.213 MB / 6.271 GB, free: 234.3 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02045/16.08, allocations: 3.429 MB / 6.274 GB, free: 234.3 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04358/16.12, allocations: 17.21 MB / 6.291 GB, free: 231.4 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01236/16.13, allocations: 7.041 MB / 6.298 GB, free: 230.5 MB / 1.214 GB Notification: Performance of SimCode: time 1.373e-06/16.13, allocations: 0 / 6.298 GB, free: 230.5 MB / 1.214 GB Notification: Performance of Templates: time 0.3399/16.47, allocations: 199.5 MB / 6.493 GB, free: 208 MB / 1.214 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches