Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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 8.0.1-maint.8.0.x/package.mo): time 1.493/1.493, allocations: 285.5 MB / 292.8 MB, free: 10.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 177.3 kB / 361.1 MB, free: 7.094 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.1 MB / 0.6195 GB, free: 10.32 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009108/0.0009108, allocations: 94.77 kB / 0.7326 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.865e-06/7.965e-06, allocations: 0 / 0.8511 GB, free: 3 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7266/0.7266, allocations: 115.3 MB / 0.9637 GB, free: 78.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.916/5.643, allocations: 2.411 GB / 3.374 GB, free: 111 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/5.643, allocations: 91.95 kB / 3.374 GB, free: 110.9 MB / 0.948 GB Notification: Performance of FrontEnd: time 8.909/14.55, allocations: 2.521 GB / 5.895 GB, free: 109.4 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.002516/14.56, allocations: 269.1 kB / 5.896 GB, free: 109.3 MB / 0.9792 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2036 * Number of variables: 2036 Notification: Performance of Generate backend data structure: time 0.03209/14.59, allocations: 8.873 MB / 5.904 GB, free: 105.1 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/14.59, allocations: 9.531 kB / 5.904 GB, free: 105.1 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01578/14.6, allocations: 2.176 MB / 5.906 GB, free: 104.4 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0372/14.64, allocations: 11.93 MB / 5.918 GB, free: 98.72 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006924/14.64, allocations: 251.6 kB / 5.918 GB, free: 98.72 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003803/14.64, allocations: 478.2 kB / 5.919 GB, free: 98.71 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02231/14.67, allocations: 9.29 MB / 5.928 GB, free: 94.29 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02865/14.7, allocations: 9.81 MB / 5.937 GB, free: 84.98 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000273/14.7, allocations: 19.78 kB / 5.937 GB, free: 84.96 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001458/14.7, allocations: 15.94 kB / 5.937 GB, free: 84.95 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002311/14.7, allocations: 343.1 kB / 5.938 GB, free: 84.61 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07502/14.77, allocations: 44.48 MB / 5.981 GB, free: 38.79 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01199/14.79, allocations: 6.739 MB / 5.988 GB, free: 32.12 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005283/14.79, allocations: 3.68 MB / 5.991 GB, free: 28.42 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03806/14.83, allocations: 17.84 MB / 6.009 GB, free: 9.961 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004858/14.83, allocations: 3.273 MB / 6.012 GB, free: 6.672 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=509): time 8.816e-06/14.83, allocations: 0 / 6.012 GB, free: 6.672 MB / 0.9792 GB Notification: Performance of matching and sorting (n=509): time 0.02325/14.86, allocations: 7.092 MB / 6.019 GB, free: 15.56 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001932/14.86, allocations: 360.4 kB / 6.019 GB, free: 15.14 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01916/14.88, allocations: 6.458 MB / 6.025 GB, free: 8.711 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.002105/14.88, allocations: 29.7 kB / 6.026 GB, free: 8.676 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006791/14.89, allocations: 3.001 MB / 6.028 GB, free: 5.629 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004963/14.89, allocations: 1.69 MB / 6.03 GB, free: 3.914 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00162/14.89, allocations: 0 / 6.03 GB, free: 3.914 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0009401/14.89, allocations: 0.5706 MB / 6.031 GB, free: 3.336 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00755/14.9, allocations: 3.07 MB / 6.034 GB, free: 268 kB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009173/14.91, allocations: 4.749 MB / 6.038 GB, free: 10.8 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02457/14.93, allocations: 5.89 MB / 6.044 GB, free: 4.867 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/14.93, allocations: 12 kB / 6.044 GB, free: 4.855 MB / 1.01 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.5535/15.49, allocations: 10.52 MB / 6.054 GB, free: 220.5 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.004116/15.49, allocations: 23.14 MB / 6.077 GB, free: 195.9 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001278/15.49, allocations: 52.28 kB / 6.077 GB, free: 195.9 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005581/15.49, allocations: 163.3 kB / 6.077 GB, free: 195.9 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009224/15.5, allocations: 1.666 MB / 6.079 GB, free: 195.9 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007535/15.5, allocations: 0.7523 MB / 6.079 GB, free: 195.4 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01154/15.51, allocations: 0.8921 MB / 6.08 GB, free: 195.4 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001979/15.52, allocations: 309.8 kB / 6.081 GB, free: 195.4 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/15.52, allocations: 7.172 kB / 6.081 GB, free: 195.4 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02893/15.55, allocations: 9.703 MB / 6.09 GB, free: 195.2 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/15.55, allocations: 48 kB / 6.09 GB, free: 195.2 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000369/15.55, allocations: 170.4 kB / 6.09 GB, free: 195.2 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008148/15.55, allocations: 1.658 MB / 6.092 GB, free: 195.2 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006444/15.55, allocations: 0.7528 MB / 6.093 GB, free: 194.7 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01107/15.57, allocations: 0.7779 MB / 6.093 GB, free: 194.7 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002473/15.57, allocations: 313.4 kB / 6.094 GB, free: 194.7 MB / 1.01 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): 815 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.00363/15.57, allocations: 280.6 kB / 6.094 GB, free: 194.6 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003423/15.58, allocations: 0.7273 MB / 6.095 GB, free: 194.3 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0233/15.6, allocations: 8.333 MB / 6.103 GB, free: 194 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.236e-05/15.6, allocations: 55.69 kB / 6.103 GB, free: 194 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.602e-05/15.6, allocations: 1.438 kB / 6.103 GB, free: 194 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01582/15.61, allocations: 6.634 MB / 6.109 GB, free: 193.5 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04371/15.66, allocations: 16.71 MB / 6.126 GB, free: 192.8 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/15.66, allocations: 1.219 kB / 6.126 GB, free: 192.8 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006461/15.66, allocations: 1.154 MB / 6.127 GB, free: 192.8 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000348/15.67, allocations: 99.81 kB / 6.127 GB, free: 192.8 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009281/15.67, allocations: 90.72 kB / 6.127 GB, free: 192.8 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005518/15.67, allocations: 0.6604 MB / 6.128 GB, free: 192.3 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/15.67, allocations: 3.094 kB / 6.128 GB, free: 192.3 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0299/15.7, allocations: 11.84 MB / 6.139 GB, free: 191.3 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009045/15.71, allocations: 1.98 MB / 6.141 GB, free: 190.8 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004231/15.71, allocations: 26.67 kB / 6.141 GB, free: 190.8 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009403/15.72, allocations: 467.8 kB / 6.142 GB, free: 190.8 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001524/15.72, allocations: 275.4 kB / 6.142 GB, free: 190.8 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001692/15.72, allocations: 231.6 kB / 6.142 GB, free: 190.8 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.01269/15.74, allocations: 4.911 MB / 6.147 GB, free: 190.6 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.02966/15.77, allocations: 5.048 MB / 6.152 GB, free: 190.2 MB / 1.01 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.x[1],pum.filter.x[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 (536): * Single equations (assignments): 525 * 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.00666/15.77, allocations: 2.218 MB / 6.154 GB, free: 189.8 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.02502/15.8, allocations: 11.67 MB / 6.165 GB, free: 189.6 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.902e-05/15.8, allocations: 11.62 kB / 6.165 GB, free: 189.6 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.006653/15.8, allocations: 3.194 MB / 6.169 GB, free: 189.6 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02172/15.83, allocations: 3.444 MB / 6.172 GB, free: 189.5 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05369/15.88, allocations: 17.05 MB / 6.189 GB, free: 186.7 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01236/15.89, allocations: 6.979 MB / 6.195 GB, free: 185.8 MB / 1.01 GB Notification: Performance of SimCode: time 1.823e-06/15.89, allocations: 0 / 6.195 GB, free: 185.8 MB / 1.01 GB Notification: Performance of Templates: time 0.3105/16.2, allocations: 199.5 MB / 6.39 GB, free: 96.41 MB / 1.01 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)