Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.547/1.547, allocations: 289.8 MB / 297.1 MB, free: 6.668 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.001148/0.001148, allocations: 181.3 kB / 366.3 MB, free: 1.992 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.623/1.623, allocations: 205.1 MB / 0.6256 GB, free: 5.824 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.0009476/0.0009475, allocations: 81.41 kB / 0.7395 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.318e-05/1.321e-05, allocations: 4 kB / 0.859 GB, free: 13.38 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7641/0.7641, allocations: 116.3 MB / 0.9726 GB, free: 68.33 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.471/6.236, allocations: 2.412 GB / 3.384 GB, free: 37.37 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/6.236, allocations: 92.58 kB / 3.384 GB, free: 37.28 MB / 0.948 GB Notification: Performance of FrontEnd: time 8.582/14.82, allocations: 2.521 GB / 5.905 GB, free: 87.48 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.001446/14.82, allocations: 268.3 kB / 5.905 GB, free: 87.23 MB / 0.9948 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.0288/14.85, allocations: 8.869 MB / 5.914 GB, free: 78.34 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/14.85, allocations: 12.03 kB / 5.914 GB, free: 78.33 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01387/14.86, allocations: 2.168 MB / 5.916 GB, free: 76.15 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03095/14.89, allocations: 11.92 MB / 5.928 GB, free: 64.38 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004121/14.89, allocations: 255.9 kB / 5.928 GB, free: 64.12 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003231/14.9, allocations: 483.9 kB / 5.929 GB, free: 63.65 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02076/14.92, allocations: 9.285 MB / 5.938 GB, free: 54.36 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02646/14.94, allocations: 9.809 MB / 5.947 GB, free: 44.23 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002236/14.94, allocations: 23.77 kB / 5.947 GB, free: 44.21 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001131/14.95, allocations: 12 kB / 5.947 GB, free: 44.2 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/14.95, allocations: 347 kB / 5.948 GB, free: 43.86 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07029/15.02, allocations: 44.48 MB / 5.991 GB, free: 13.66 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01278/15.03, allocations: 6.737 MB / 5.998 GB, free: 6.953 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005757/15.03, allocations: 3.669 MB / 6.001 GB, free: 3.27 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04473/15.08, allocations: 17.84 MB / 6.019 GB, free: 0.5977 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5825/15.66, allocations: 3.28 MB / 6.022 GB, free: 207.7 MB / 1.026 GB Notification: Performance of pre-optimization done (n=509): time 1.191e-05/15.66, allocations: 0 / 6.022 GB, free: 207.7 MB / 1.026 GB Notification: Performance of matching and sorting (n=509): time 0.02278/15.68, allocations: 7.075 MB / 6.029 GB, free: 207.6 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000257/15.69, allocations: 371 kB / 6.029 GB, free: 207.2 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01493/15.7, allocations: 6.449 MB / 6.035 GB, free: 206.8 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.0021/15.7, allocations: 35.45 kB / 6.035 GB, free: 206.8 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.005054/15.71, allocations: 2.998 MB / 6.038 GB, free: 206.1 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.004359/15.71, allocations: 1.689 MB / 6.04 GB, free: 205.2 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001651/15.71, allocations: 0 / 6.04 GB, free: 205.2 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0008305/15.71, allocations: 0.5611 MB / 6.04 GB, free: 204.9 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006141/15.72, allocations: 3.073 MB / 6.043 GB, free: 204.8 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00765/15.73, allocations: 4.754 MB / 6.048 GB, free: 202.9 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02291/15.75, allocations: 5.885 MB / 6.054 GB, free: 202.9 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/15.75, allocations: 17.84 kB / 6.054 GB, free: 202.9 MB / 1.026 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.03911/15.79, allocations: 10.51 MB / 6.064 GB, free: 202.3 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.005861/15.8, allocations: 23.15 MB / 6.087 GB, free: 177.5 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002382/15.8, allocations: 49.12 kB / 6.087 GB, free: 177.5 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006422/15.8, allocations: 165.8 kB / 6.087 GB, free: 177.5 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009585/15.81, allocations: 1.666 MB / 6.089 GB, free: 177.5 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009058/15.81, allocations: 0.7514 MB / 6.089 GB, free: 177 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01231/15.82, allocations: 0.8963 MB / 6.09 GB, free: 176.8 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00291/15.82, allocations: 315.6 kB / 6.09 GB, free: 176.8 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/15.82, allocations: 8.875 kB / 6.09 GB, free: 176.8 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03761/15.86, allocations: 9.705 MB / 6.1 GB, free: 176.6 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002776/15.86, allocations: 47.75 kB / 6.1 GB, free: 176.6 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005373/15.86, allocations: 169.6 kB / 6.1 GB, free: 176.6 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00958/15.87, allocations: 1.658 MB / 6.102 GB, free: 176.6 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009296/15.87, allocations: 0.753 MB / 6.103 GB, free: 176.1 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01184/15.88, allocations: 0.7742 MB / 6.103 GB, free: 175.9 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00252/15.89, allocations: 306.7 kB / 6.104 GB, free: 175.9 MB / 1.026 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.0045/15.89, allocations: 283 kB / 6.104 GB, free: 175.8 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00476/15.9, allocations: 0.7209 MB / 6.105 GB, free: 175.4 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03271/15.93, allocations: 8.339 MB / 6.113 GB, free: 175 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.626e-05/15.93, allocations: 57.69 kB / 6.113 GB, free: 175 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.922e-05/15.93, allocations: 3.172 kB / 6.113 GB, free: 175 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0199/15.95, allocations: 6.633 MB / 6.119 GB, free: 174.6 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05531/16, allocations: 16.72 MB / 6.136 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.761e-05/16, allocations: 0 / 6.136 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007297/16.01, allocations: 1.155 MB / 6.137 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003974/16.01, allocations: 88.56 kB / 6.137 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001451/16.01, allocations: 98.62 kB / 6.137 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006478/16.01, allocations: 0.655 MB / 6.138 GB, free: 173.3 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/16.01, allocations: 3.906 kB / 6.138 GB, free: 173.3 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03134/16.05, allocations: 11.84 MB / 6.149 GB, free: 172.3 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007825/16.05, allocations: 1.978 MB / 6.151 GB, free: 171.8 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003868/16.06, allocations: 26.61 kB / 6.151 GB, free: 171.8 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009072/16.07, allocations: 461.7 kB / 6.151 GB, free: 171.7 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001306/16.07, allocations: 276.6 kB / 6.152 GB, free: 171.7 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001543/16.07, allocations: 238.8 kB / 6.152 GB, free: 171.7 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.01145/16.08, allocations: 4.912 MB / 6.157 GB, free: 171.5 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.02955/16.11, allocations: 5.051 MB / 6.162 GB, free: 170.7 MB / 1.026 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.007098/16.12, allocations: 2.201 MB / 6.164 GB, free: 170.3 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.02546/16.14, allocations: 11.68 MB / 6.175 GB, free: 170.1 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-05/16.14, allocations: 8.312 kB / 6.175 GB, free: 170.1 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.007364/16.15, allocations: 3.192 MB / 6.178 GB, free: 170.1 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02111/16.17, allocations: 3.45 MB / 6.182 GB, free: 170 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05262/16.22, allocations: 17.05 MB / 6.198 GB, free: 167.1 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01172/16.24, allocations: 6.986 MB / 6.205 GB, free: 166.3 MB / 1.026 GB Notification: Performance of SimCode: time 1.213e-06/16.24, allocations: 0 / 6.205 GB, free: 166.3 MB / 1.026 GB Notification: Performance of Templates: time 0.3223/16.56, allocations: 199.5 MB / 6.4 GB, free: 74.41 MB / 1.026 GB make -j1 -f Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.makefile (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & ./Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)