Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.212/2.212, allocations: 284.9 MB / 292.2 MB, free: 10.75 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00167/0.001669, allocations: 185.2 kB / 360.4 MB, free: 7.508 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.825/1.825, allocations: 205.2 MB / 0.6188 GB, free: 12.43 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001293/0.001292, allocations: 90.11 kB / 0.7318 GB, free: 45 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.506e-06/8.726e-06, allocations: 0 / 0.8502 GB, free: 3.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6122/0.6123, allocations: 115.2 MB / 0.9628 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.43/6.042, allocations: 2.41 GB / 3.373 GB, free: 68.12 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/6.042, allocations: 94.58 kB / 3.373 GB, free: 68.07 MB / 0.948 GB Notification: Performance of FrontEnd: time 11.43/17.48, allocations: 2.521 GB / 5.894 GB, free: 104.5 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.00206/17.48, allocations: 271.8 kB / 5.894 GB, free: 104.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.04221/17.52, allocations: 8.864 MB / 5.903 GB, free: 95.4 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 5.679e-05/17.52, allocations: 10.44 kB / 5.903 GB, free: 95.39 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02199/17.54, allocations: 2.178 MB / 5.905 GB, free: 93.2 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04833/17.59, allocations: 11.92 MB / 5.917 GB, free: 81.45 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005809/17.59, allocations: 252 kB / 5.917 GB, free: 81.2 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004191/17.6, allocations: 483.9 kB / 5.918 GB, free: 80.73 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03239/17.63, allocations: 9.285 MB / 5.927 GB, free: 71.44 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03713/17.67, allocations: 9.81 MB / 5.936 GB, free: 61.3 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005921/17.67, allocations: 19.78 kB / 5.936 GB, free: 61.28 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003683/17.67, allocations: 16 kB / 5.936 GB, free: 61.27 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003327/17.67, allocations: 343 kB / 5.937 GB, free: 60.93 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1125/17.78, allocations: 44.5 MB / 5.98 GB, free: 15.08 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02008/17.8, allocations: 6.737 MB / 5.987 GB, free: 8.406 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01001/17.81, allocations: 3.666 MB / 5.99 GB, free: 4.723 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06517/17.88, allocations: 17.84 MB / 6.008 GB, free: 2.09 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0115/17.89, allocations: 3.277 MB / 6.011 GB, free: 14.8 MB / 1.01 GB Notification: Performance of pre-optimization done (n=509): time 1.027e-05/17.89, allocations: 0 / 6.011 GB, free: 14.8 MB / 1.01 GB Notification: Performance of matching and sorting (n=509): time 0.0444/17.93, allocations: 7.082 MB / 6.018 GB, free: 7.703 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003134/17.94, allocations: 364.4 kB / 6.018 GB, free: 7.273 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02331/17.96, allocations: 6.458 MB / 6.024 GB, free: 0.8477 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.002281/17.96, allocations: 29.7 kB / 6.024 GB, free: 0.8125 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.4951/18.46, allocations: 2.99 MB / 6.027 GB, free: 219.8 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.005702/18.46, allocations: 1.696 MB / 6.029 GB, free: 218.9 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001517/18.46, allocations: 0 / 6.029 GB, free: 218.9 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0008568/18.46, allocations: 0.5587 MB / 6.03 GB, free: 218.6 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009901/18.47, allocations: 3.074 MB / 6.033 GB, free: 218.6 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01149/18.49, allocations: 4.754 MB / 6.037 GB, free: 216.7 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03699/18.52, allocations: 5.889 MB / 6.043 GB, free: 216.6 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-05/18.52, allocations: 12.31 kB / 6.043 GB, free: 216.6 MB / 1.01 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.05605/18.58, allocations: 10.52 MB / 6.053 GB, free: 216.1 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.00492/18.58, allocations: 23.14 MB / 6.076 GB, free: 191.3 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002572/18.58, allocations: 51.91 kB / 6.076 GB, free: 191.3 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007366/18.59, allocations: 161.7 kB / 6.076 GB, free: 191.3 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01596/18.6, allocations: 1.675 MB / 6.078 GB, free: 191.3 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009997/18.6, allocations: 0.7433 MB / 6.078 GB, free: 190.8 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01562/18.62, allocations: 0.8929 MB / 6.079 GB, free: 190.6 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002325/18.62, allocations: 310.5 kB / 6.08 GB, free: 190.6 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/18.62, allocations: 3.719 kB / 6.08 GB, free: 190.6 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05318/18.67, allocations: 9.713 MB / 6.089 GB, free: 190.4 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001783/18.67, allocations: 49.3 kB / 6.089 GB, free: 190.4 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005413/18.67, allocations: 164.4 kB / 6.089 GB, free: 190.4 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0161/18.69, allocations: 1.663 MB / 6.091 GB, free: 190.4 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/18.69, allocations: 0.7492 MB / 6.092 GB, free: 189.9 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01524/18.71, allocations: 0.7763 MB / 6.092 GB, free: 189.7 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002442/18.71, allocations: 311.4 kB / 6.093 GB, free: 189.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.004077/18.71, allocations: 278.3 kB / 6.093 GB, free: 189.6 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004181/18.72, allocations: 0.7223 MB / 6.094 GB, free: 189.2 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04259/18.76, allocations: 8.346 MB / 6.102 GB, free: 188.9 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.427e-05/18.76, allocations: 51.69 kB / 6.102 GB, free: 188.9 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.818e-05/18.76, allocations: 2.688 kB / 6.102 GB, free: 188.9 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03059/18.79, allocations: 6.628 MB / 6.108 GB, free: 188.5 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06671/18.86, allocations: 16.73 MB / 6.125 GB, free: 187.7 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.262e-05/18.86, allocations: 2.781 kB / 6.125 GB, free: 187.7 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01838/18.88, allocations: 1.151 MB / 6.126 GB, free: 187.7 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000678/18.88, allocations: 96.61 kB / 6.126 GB, free: 187.7 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001994/18.88, allocations: 93.91 kB / 6.126 GB, free: 187.7 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/18.88, allocations: 0.655 MB / 6.127 GB, free: 187.2 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/18.88, allocations: 2.875 kB / 6.127 GB, free: 187.2 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06458/18.94, allocations: 11.84 MB / 6.138 GB, free: 186.1 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01311/18.96, allocations: 1.975 MB / 6.14 GB, free: 185.6 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005966/18.96, allocations: 26.16 kB / 6.14 GB, free: 185.6 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02098/18.98, allocations: 463.2 kB / 6.141 GB, free: 185.6 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002341/18.99, allocations: 288.3 kB / 6.141 GB, free: 185.6 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002498/18.99, allocations: 227.7 kB / 6.141 GB, free: 185.6 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.02061/19.01, allocations: 4.917 MB / 6.146 GB, free: 185.3 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.03595/19.05, allocations: 5.041 MB / 6.151 GB, free: 184.6 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.007133/19.05, allocations: 2.213 MB / 6.153 GB, free: 184.2 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.03282/19.09, allocations: 11.68 MB / 6.164 GB, free: 183.9 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.592e-05/19.09, allocations: 8.031 kB / 6.164 GB, free: 183.9 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.008833/19.1, allocations: 3.196 MB / 6.168 GB, free: 183.9 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03121/19.13, allocations: 3.447 MB / 6.171 GB, free: 183.9 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06294/19.19, allocations: 17.05 MB / 6.188 GB, free: 181 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01889/19.21, allocations: 6.984 MB / 6.194 GB, free: 180.1 MB / 1.01 GB Notification: Performance of SimCode: time 2.695e-06/19.21, allocations: 0 / 6.194 GB, free: 180.1 MB / 1.01 GB Notification: Performance of Templates: time 0.5452/19.75, allocations: 199.5 MB / 6.389 GB, free: 78.05 MB / 1.01 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & ./Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)