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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.428/1.428, allocations: 285.5 MB / 292.8 MB, free: 10.4 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.001052/0.001052, allocations: 195.1 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.274/1.274, allocations: 205.1 MB / 0.6195 GB, free: 10.33 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.0009162/0.0009162, allocations: 86.97 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2329/0.2338, allocations: 121.4 MB / 0.8511 GB, free: 2.875 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5874/0.8213, allocations: 115.3 MB / 0.9638 GB, free: 78.37 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.624/4.445, allocations: 2.411 GB / 3.374 GB, free: 110.7 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/4.445, allocations: 101.1 kB / 3.374 GB, free: 110.6 MB / 0.948 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 7.356/11.8, allocations: 2.53 GB / 5.904 GB, free: 115.6 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/11.8, allocations: 7.5 kB / 5.904 GB, free: 115.6 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01341/11.81, allocations: 2.171 MB / 5.906 GB, free: 115 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03293/11.85, allocations: 11.92 MB / 5.918 GB, free: 113.5 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005309/11.85, allocations: 259.9 kB / 5.918 GB, free: 113.5 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003464/11.85, allocations: 480.4 kB / 5.919 GB, free: 113.5 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02278/11.87, allocations: 9.284 MB / 5.928 GB, free: 111 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02848/11.9, allocations: 9.809 MB / 5.937 GB, free: 106.9 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005227/11.9, allocations: 30.98 kB / 5.937 GB, free: 106.9 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003287/11.91, allocations: 13.34 kB / 5.937 GB, free: 106.9 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003328/11.91, allocations: 339.1 kB / 5.938 GB, free: 106.9 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08619/11.99, allocations: 44.48 MB / 5.981 GB, free: 73.11 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01454/12.01, allocations: 6.735 MB / 5.988 GB, free: 66.45 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00595/12.01, allocations: 3.666 MB / 5.991 GB, free: 62.76 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03581/12.05, allocations: 17.86 MB / 6.009 GB, free: 44.29 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005653/12.06, allocations: 3.273 MB / 6.012 GB, free: 41 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=509): time 7.634e-06/12.06, allocations: 4 kB / 6.012 GB, free: 41 MB / 0.9948 GB Notification: Performance of matching and sorting (n=509): time 0.02061/12.08, allocations: 7.08 MB / 6.019 GB, free: 33.9 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/12.08, allocations: 365.4 kB / 6.019 GB, free: 33.47 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01321/12.09, allocations: 6.454 MB / 6.026 GB, free: 27.05 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.001661/12.09, allocations: 29.7 kB / 6.026 GB, free: 27.01 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004731/12.1, allocations: 3.001 MB / 6.029 GB, free: 23.96 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003911/12.1, allocations: 1.686 MB / 6.03 GB, free: 22.25 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001356/12.1, allocations: 0 / 6.03 GB, free: 22.25 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.000595/12.1, allocations: 0.5627 MB / 6.031 GB, free: 21.68 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0053/12.11, allocations: 3.074 MB / 6.034 GB, free: 18.61 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006307/12.11, allocations: 4.756 MB / 6.038 GB, free: 13.13 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02086/12.13, allocations: 5.886 MB / 6.044 GB, free: 7.203 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.465e-05/12.13, allocations: 16.75 kB / 6.044 GB, free: 7.188 MB / 0.9948 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.03488/12.17, allocations: 10.51 MB / 6.054 GB, free: 12.59 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.007772/12.18, allocations: 23.14 MB / 6.077 GB, free: 3.191 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001645/12.18, allocations: 48 kB / 6.077 GB, free: 3.145 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005273/12.18, allocations: 164.3 kB / 6.077 GB, free: 2.984 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009197/12.19, allocations: 1.669 MB / 6.079 GB, free: 1.316 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008841/12.19, allocations: 0.755 MB / 6.08 GB, free: 0.5352 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.7826/12.97, allocations: 0.8923 MB / 6.08 GB, free: 229.1 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001864/12.97, allocations: 316.9 kB / 6.081 GB, free: 229.1 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/12.97, allocations: 3.938 kB / 6.081 GB, free: 229.1 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02627/13, allocations: 9.705 MB / 6.09 GB, free: 229 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.255e-05/13, allocations: 44.41 kB / 6.09 GB, free: 229 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003145/13, allocations: 167.2 kB / 6.09 GB, free: 229 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006914/13.01, allocations: 1.665 MB / 6.092 GB, free: 229 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005456/13.01, allocations: 0.7444 MB / 6.093 GB, free: 228.5 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008728/13.02, allocations: 0.7787 MB / 6.094 GB, free: 228.5 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007323/13.02, allocations: 311.4 kB / 6.094 GB, free: 228.5 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.001662/13.02, allocations: 279.7 kB / 6.094 GB, free: 228.3 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00188/13.02, allocations: 0.7269 MB / 6.095 GB, free: 228.3 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01789/13.04, allocations: 8.338 MB / 6.103 GB, free: 228 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-05/13.04, allocations: 56.36 kB / 6.103 GB, free: 228 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/13.04, allocations: 0 / 6.103 GB, free: 228 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01308/13.05, allocations: 6.629 MB / 6.109 GB, free: 227.6 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03744/13.09, allocations: 16.72 MB / 6.126 GB, free: 227 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/13.09, allocations: 3.375 kB / 6.126 GB, free: 227 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006085/13.09, allocations: 1.149 MB / 6.127 GB, free: 227 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003107/13.09, allocations: 93.47 kB / 6.127 GB, free: 227 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007329/13.1, allocations: 91.81 kB / 6.127 GB, free: 227 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000486/13.1, allocations: 0.6571 MB / 6.128 GB, free: 226.5 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/13.1, allocations: 3.594 kB / 6.128 GB, free: 226.5 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02356/13.12, allocations: 11.85 MB / 6.139 GB, free: 225.7 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0291/13.15, allocations: 16.61 MB / 6.156 GB, free: 224.3 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006024/13.15, allocations: 1.982 MB / 6.157 GB, free: 223.8 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003021/13.16, allocations: 26.92 kB / 6.158 GB, free: 223.8 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007915/13.17, allocations: 465.4 kB / 6.158 GB, free: 223.8 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006425/13.17, allocations: 279.6 kB / 6.158 GB, free: 223.8 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008541/13.17, allocations: 227.4 kB / 6.158 GB, free: 223.8 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.0102/13.18, allocations: 4.917 MB / 6.163 GB, free: 223.6 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.02531/13.2, allocations: 5.697 MB / 6.169 GB, free: 223.2 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.005935/13.21, allocations: 2.214 MB / 6.171 GB, free: 222.8 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.01964/13.23, allocations: 11.68 MB / 6.182 GB, free: 222.6 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/13.23, allocations: 5.781 kB / 6.182 GB, free: 222.6 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.005466/13.23, allocations: 3.195 MB / 6.186 GB, free: 222.6 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01894/13.25, allocations: 3.439 MB / 6.189 GB, free: 222.5 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04183/13.29, allocations: 17.1 MB / 6.206 GB, free: 219.7 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01182/13.31, allocations: 7.054 MB / 6.212 GB, free: 218.8 MB / 1.026 GB Notification: Performance of SimCode: time 9.32e-07/13.31, allocations: 0 / 6.212 GB, free: 218.8 MB / 1.026 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)