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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.611/1.611, allocations: 289.8 MB / 297 MB, free: 6.602 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.001737/0.001737, allocations: 181.3 kB / 366.3 MB, free: 1.949 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.499/1.499, allocations: 205.1 MB / 0.6256 GB, free: 5.797 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.001064/0.001064, allocations: 83.77 kB / 0.7395 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2965/0.2976, allocations: 122.4 MB / 0.8591 GB, free: 13.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.72/1.018, allocations: 116.3 MB / 0.9726 GB, free: 68.41 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.932/5.949, allocations: 2.412 GB / 3.384 GB, free: 37.38 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/5.95, allocations: 96.47 kB / 3.384 GB, free: 37.29 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 9.617/15.57, allocations: 2.53 GB / 5.914 GB, free: 79.67 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/15.57, allocations: 12 kB / 5.914 GB, free: 79.66 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01517/15.58, allocations: 2.168 MB / 5.916 GB, free: 77.48 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03566/15.62, allocations: 11.92 MB / 5.928 GB, free: 65.71 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006826/15.62, allocations: 252 kB / 5.928 GB, free: 65.46 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003936/15.62, allocations: 483.9 kB / 5.929 GB, free: 64.99 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02374/15.65, allocations: 9.277 MB / 5.938 GB, free: 55.71 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03392/15.68, allocations: 9.813 MB / 5.947 GB, free: 45.57 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005898/15.68, allocations: 19.78 kB / 5.947 GB, free: 45.55 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003744/15.68, allocations: 12 kB / 5.947 GB, free: 45.54 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000332/15.69, allocations: 351 kB / 5.948 GB, free: 45.19 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09056/15.78, allocations: 44.49 MB / 5.991 GB, free: 15.04 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01553/15.79, allocations: 6.741 MB / 5.998 GB, free: 8.332 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00827/15.8, allocations: 3.666 MB / 6.001 GB, free: 4.652 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05219/15.85, allocations: 17.85 MB / 6.019 GB, free: 1.973 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.9629/16.81, allocations: 3.274 MB / 6.022 GB, free: 204.1 MB / 1.026 GB Notification: Performance of pre-optimization done (n=509): time 1.015e-05/16.81, allocations: 0 / 6.022 GB, free: 204.1 MB / 1.026 GB Notification: Performance of matching and sorting (n=509): time 0.0219/16.84, allocations: 7.082 MB / 6.029 GB, free: 204 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001592/16.84, allocations: 370.2 kB / 6.029 GB, free: 203.6 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01467/16.85, allocations: 6.455 MB / 6.035 GB, free: 203.2 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.001842/16.85, allocations: 31.95 kB / 6.035 GB, free: 203.2 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.005083/16.86, allocations: 2.994 MB / 6.038 GB, free: 202.5 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.004963/16.86, allocations: 1.692 MB / 6.04 GB, free: 201.6 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001699/16.87, allocations: 0 / 6.04 GB, free: 201.6 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0008357/16.87, allocations: 0.5591 MB / 6.041 GB, free: 201.2 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006387/16.87, allocations: 3.071 MB / 6.044 GB, free: 201.2 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008377/16.88, allocations: 4.751 MB / 6.048 GB, free: 199.3 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02378/16.9, allocations: 5.893 MB / 6.054 GB, free: 199.3 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000132/16.9, allocations: 11.25 kB / 6.054 GB, free: 199.3 MB / 1.026 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.04057/16.95, allocations: 10.52 MB / 6.064 GB, free: 198.7 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.005834/16.95, allocations: 23.15 MB / 6.087 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002584/16.95, allocations: 46.66 kB / 6.087 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000696/16.95, allocations: 167.1 kB / 6.087 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009855/16.96, allocations: 1.675 MB / 6.089 GB, free: 173.9 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008184/16.96, allocations: 0.7471 MB / 6.089 GB, free: 173.4 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01202/16.98, allocations: 0.8902 MB / 6.09 GB, free: 173.2 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002468/16.98, allocations: 310.6 kB / 6.091 GB, free: 173.2 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/16.98, allocations: 3.906 kB / 6.091 GB, free: 173.2 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03734/17.02, allocations: 9.707 MB / 6.1 GB, free: 173 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00022/17.02, allocations: 53.89 kB / 6.1 GB, free: 173 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004692/17.02, allocations: 164.8 kB / 6.1 GB, free: 173 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009529/17.03, allocations: 1.661 MB / 6.102 GB, free: 173 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008003/17.03, allocations: 0.7459 MB / 6.103 GB, free: 172.5 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01129/17.04, allocations: 0.7785 MB / 6.103 GB, free: 172.3 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002322/17.04, allocations: 307.4 kB / 6.104 GB, free: 172.3 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.00369/17.04, allocations: 278.7 kB / 6.104 GB, free: 172.2 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004284/17.05, allocations: 0.7299 MB / 6.105 GB, free: 171.8 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02909/17.08, allocations: 8.345 MB / 6.113 GB, free: 171.4 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.625e-05/17.08, allocations: 58.38 kB / 6.113 GB, free: 171.4 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.878e-05/17.08, allocations: 3.281 kB / 6.113 GB, free: 171.4 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02031/17.1, allocations: 6.628 MB / 6.119 GB, free: 171 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05301/17.15, allocations: 16.73 MB / 6.136 GB, free: 170.3 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/17.15, allocations: 0 / 6.136 GB, free: 170.3 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007188/17.16, allocations: 1.149 MB / 6.137 GB, free: 170.3 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004028/17.16, allocations: 96.61 kB / 6.137 GB, free: 170.2 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001506/17.16, allocations: 93.09 kB / 6.137 GB, free: 170.2 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006532/17.16, allocations: 0.6564 MB / 6.138 GB, free: 169.7 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/17.16, allocations: 4.656 kB / 6.138 GB, free: 169.7 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03104/17.19, allocations: 11.84 MB / 6.149 GB, free: 168.7 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03815/17.23, allocations: 16.62 MB / 6.165 GB, free: 167.3 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00785/17.24, allocations: 1.974 MB / 6.167 GB, free: 166.7 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003909/17.24, allocations: 27.73 kB / 6.167 GB, free: 166.7 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009933/17.25, allocations: 457.8 kB / 6.168 GB, free: 166.7 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001358/17.25, allocations: 280.6 kB / 6.168 GB, free: 166.7 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001688/17.25, allocations: 230 kB / 6.168 GB, free: 166.7 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.0122/17.27, allocations: 4.914 MB / 6.173 GB, free: 166.5 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.02943/17.3, allocations: 5.702 MB / 6.179 GB, free: 165.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.006736/17.3, allocations: 2.211 MB / 6.181 GB, free: 165.3 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.02326/17.33, allocations: 11.68 MB / 6.192 GB, free: 165 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/17.33, allocations: 9.781 kB / 6.192 GB, free: 165 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.006082/17.33, allocations: 3.194 MB / 6.195 GB, free: 165 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02126/17.35, allocations: 3.443 MB / 6.199 GB, free: 165 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05216/17.41, allocations: 17.09 MB / 6.215 GB, free: 162.1 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01628/17.42, allocations: 7.058 MB / 6.222 GB, free: 161.2 MB / 1.026 GB Notification: Performance of SimCode: time 9.72e-07/17.42, allocations: 0 / 6.222 GB, free: 161.2 MB / 1.026 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)