Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) [: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.0/package.mo): time 2.409/2.409, allocations: 284.8 MB / 292.1 MB, free: 10.76 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.001731/0.001731, allocations: 185.2 kB / 360.3 MB, free: 7.562 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.829/1.829, allocations: 205.1 MB / 0.6187 GB, free: 13.25 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.001272/0.001272, allocations: 91.5 kB / 0.7317 GB, free: 45.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2965/0.2978, allocations: 121.4 MB / 0.8502 GB, free: 3.965 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6462/0.944, allocations: 115.2 MB / 0.9627 GB, free: 78.53 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.128/7.072, allocations: 2.41 GB / 3.373 GB, free: 249.6 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/7.073, allocations: 96.66 kB / 3.373 GB, free: 249.6 MB / 0.9323 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 11.61/18.68, allocations: 2.53 GB / 5.903 GB, free: 7.688 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/18.68, allocations: 8.5 kB / 5.903 GB, free: 7.68 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0229/18.7, allocations: 2.188 MB / 5.905 GB, free: 5.477 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05655/18.76, allocations: 11.91 MB / 5.917 GB, free: 9.543 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007043/18.76, allocations: 252 kB / 5.917 GB, free: 9.297 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004296/18.76, allocations: 479.9 kB / 5.918 GB, free: 8.828 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 1.034/19.8, allocations: 9.288 MB / 5.927 GB, free: 176.8 MB / 1.011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04056/19.84, allocations: 9.82 MB / 5.936 GB, free: 175.7 MB / 1.011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005933/19.84, allocations: 18.53 kB / 5.936 GB, free: 175.7 MB / 1.011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003642/19.84, allocations: 16.53 kB / 5.936 GB, free: 175.7 MB / 1.011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003674/19.84, allocations: 342.8 kB / 5.937 GB, free: 175.7 MB / 1.011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1336/19.98, allocations: 44.47 MB / 5.98 GB, free: 159 MB / 1.011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02068/20, allocations: 6.745 MB / 5.987 GB, free: 158.9 MB / 1.011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01071/20.01, allocations: 3.666 MB / 5.99 GB, free: 158.8 MB / 1.011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06043/20.07, allocations: 17.84 MB / 6.008 GB, free: 154.3 MB / 1.011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0108/20.08, allocations: 3.273 MB / 6.011 GB, free: 154.2 MB / 1.011 GB Notification: Performance of pre-optimization done (n=509): time 1.058e-05/20.08, allocations: 0 / 6.011 GB, free: 154.2 MB / 1.011 GB Notification: Performance of matching and sorting (n=509): time 0.03515/20.11, allocations: 7.085 MB / 6.018 GB, free: 153.7 MB / 1.011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/20.12, allocations: 372.2 kB / 6.018 GB, free: 153.3 MB / 1.011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02077/20.14, allocations: 6.45 MB / 6.024 GB, free: 152.9 MB / 1.011 GB Notification: Performance of collectPreVariables (initialization): time 0.001977/20.14, allocations: 32.89 kB / 6.024 GB, free: 152.9 MB / 1.011 GB Notification: Performance of collectInitialEqns (initialization): time 0.006725/20.14, allocations: 2.997 MB / 6.027 GB, free: 151.7 MB / 1.011 GB Notification: Performance of collectInitialBindings (initialization): time 0.005673/20.15, allocations: 1.696 MB / 6.029 GB, free: 150.7 MB / 1.011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/20.15, allocations: 3.188 kB / 6.029 GB, free: 150.7 MB / 1.011 GB Notification: Performance of setup shared object (initialization): time 0.0007098/20.15, allocations: 0.5619 MB / 6.03 GB, free: 150.4 MB / 1.011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0101/20.16, allocations: 3.067 MB / 6.033 GB, free: 150.4 MB / 1.011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01323/20.18, allocations: 4.755 MB / 6.037 GB, free: 148.5 MB / 1.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03797/20.21, allocations: 5.888 MB / 6.043 GB, free: 148.4 MB / 1.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.383e-05/20.21, allocations: 14.16 kB / 6.043 GB, free: 148.4 MB / 1.011 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.06026/20.27, allocations: 10.51 MB / 6.053 GB, free: 147.8 MB / 1.011 GB Notification: Performance of prepare postOptimizeDAE: time 0.005229/20.28, allocations: 23.15 MB / 6.076 GB, free: 123 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003018/20.28, allocations: 50.77 kB / 6.076 GB, free: 123 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007689/20.28, allocations: 171.2 kB / 6.076 GB, free: 123 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01644/20.3, allocations: 1.67 MB / 6.078 GB, free: 123 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/20.3, allocations: 0.7484 MB / 6.078 GB, free: 122.5 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01632/20.31, allocations: 0.8877 MB / 6.079 GB, free: 122.2 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002493/20.32, allocations: 319.9 kB / 6.08 GB, free: 122.2 MB / 1.011 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/20.32, allocations: 3.281 kB / 6.08 GB, free: 122.2 MB / 1.011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05547/20.37, allocations: 9.702 MB / 6.089 GB, free: 122 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002466/20.37, allocations: 48.75 kB / 6.089 GB, free: 122 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000609/20.37, allocations: 164.3 kB / 6.089 GB, free: 122 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01618/20.39, allocations: 1.663 MB / 6.091 GB, free: 122 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/20.39, allocations: 0.7508 MB / 6.092 GB, free: 121.5 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0154/20.41, allocations: 0.7723 MB / 6.092 GB, free: 121.2 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002684/20.41, allocations: 314.1 kB / 6.093 GB, free: 121.2 MB / 1.011 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.004676/20.41, allocations: 278 kB / 6.093 GB, free: 121.1 MB / 1.011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004452/20.42, allocations: 0.7216 MB / 6.094 GB, free: 120.7 MB / 1.011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0436/20.46, allocations: 8.347 MB / 6.102 GB, free: 120.3 MB / 1.011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.868e-05/20.46, allocations: 50.66 kB / 6.102 GB, free: 120.3 MB / 1.011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.882e-05/20.46, allocations: 3.281 kB / 6.102 GB, free: 120.3 MB / 1.011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03165/20.49, allocations: 6.63 MB / 6.108 GB, free: 119.9 MB / 1.011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07388/20.57, allocations: 16.73 MB / 6.125 GB, free: 119.1 MB / 1.011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.212e-05/20.57, allocations: 2.5 kB / 6.125 GB, free: 119.1 MB / 1.011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01295/20.58, allocations: 1.155 MB / 6.126 GB, free: 119.1 MB / 1.011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004826/20.58, allocations: 91.89 kB / 6.126 GB, free: 119.1 MB / 1.011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001454/20.58, allocations: 93.94 kB / 6.126 GB, free: 119.1 MB / 1.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007951/20.58, allocations: 0.659 MB / 6.127 GB, free: 118.6 MB / 1.011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.942e-06/20.58, allocations: 2.344 kB / 6.127 GB, free: 118.6 MB / 1.011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0444/20.63, allocations: 11.84 MB / 6.138 GB, free: 117.6 MB / 1.011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05892/20.69, allocations: 16.61 MB / 6.154 GB, free: 116.1 MB / 1.011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0102/20.7, allocations: 1.975 MB / 6.156 GB, free: 115.6 MB / 1.011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00531/20.7, allocations: 29.98 kB / 6.156 GB, free: 115.6 MB / 1.011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0214/20.72, allocations: 463 kB / 6.157 GB, free: 115.6 MB / 1.011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002269/20.73, allocations: 281.9 kB / 6.157 GB, free: 115.6 MB / 1.011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002656/20.73, allocations: 230.2 kB / 6.157 GB, free: 115.6 MB / 1.011 GB Notification: Performance of sort global known variables: time 0.0213/20.75, allocations: 4.919 MB / 6.162 GB, free: 115.3 MB / 1.011 GB Notification: Performance of remove unused functions: time 0.04618/20.8, allocations: 5.692 MB / 6.168 GB, free: 114.6 MB / 1.011 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.008986/20.81, allocations: 2.216 MB / 6.17 GB, free: 114.1 MB / 1.011 GB Notification: Performance of simCode: created initialization part: time 0.04069/20.85, allocations: 11.67 MB / 6.181 GB, free: 113.9 MB / 1.011 GB Notification: Performance of simCode: created event and clocks part: time 2.798e-05/20.85, allocations: 7.688 kB / 6.181 GB, free: 113.9 MB / 1.011 GB Notification: Performance of simCode: created simulation system equations: time 0.01347/20.86, allocations: 3.201 MB / 6.184 GB, free: 113.9 MB / 1.011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03492/20.9, allocations: 3.438 MB / 6.188 GB, free: 113.8 MB / 1.011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06731/20.96, allocations: 17.1 MB / 6.204 GB, free: 110.9 MB / 1.011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02945/20.99, allocations: 7.058 MB / 6.211 GB, free: 110 MB / 1.011 GB Notification: Performance of SimCode: time 1.873e-06/20.99, allocations: 0 / 6.211 GB, free: 110 MB / 1.011 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)