Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.243/1.243, allocations: 249.4 MB / 256.7 MB, free: 7.039 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 173.3 kB / 316 MB, free: 3.543 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.247/1.247, allocations: 205.2 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009331/0.0009331, allocations: 90.27 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3874/0.3884, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.5743, allocations: 106.3 MB / 0.8846 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.231/4.805, allocations: 2.528 GB / 3.413 GB, free: 174.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/4.805, allocations: 93.27 kB / 3.413 GB, free: 174.4 MB / 0.8698 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.497/12.3, allocations: 2.47 GB / 5.883 GB, free: 73.63 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/12.3, allocations: 10.12 kB / 5.883 GB, free: 73.63 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01405/12.32, allocations: 2.18 MB / 5.885 GB, free: 73.04 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03335/12.35, allocations: 11.86 MB / 5.897 GB, free: 71.61 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004854/12.35, allocations: 251.6 kB / 5.897 GB, free: 71.61 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003288/12.35, allocations: 476.9 kB / 5.897 GB, free: 71.61 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01991/12.37, allocations: 9.293 MB / 5.906 GB, free: 71.57 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0297/12.4, allocations: 9.712 MB / 5.916 GB, free: 69.66 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004229/12.4, allocations: 38.06 kB / 5.916 GB, free: 69.64 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002554/12.41, allocations: 10.91 kB / 5.916 GB, free: 69.64 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002618/12.41, allocations: 336.3 kB / 5.916 GB, free: 69.62 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08464/12.49, allocations: 44.36 MB / 5.96 GB, free: 41.75 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01446/12.51, allocations: 6.753 MB / 5.966 GB, free: 39.38 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007763/12.51, allocations: 3.658 MB / 5.97 GB, free: 37.97 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04182/12.56, allocations: 17.76 MB / 5.987 GB, free: 27.96 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007842/12.56, allocations: 3.196 MB / 5.99 GB, free: 26.64 MB / 0.948 GB Notification: Performance of pre-optimization done (n=509): time 9.478e-06/12.56, allocations: 1.219 kB / 5.99 GB, free: 26.64 MB / 0.948 GB Notification: Performance of matching and sorting (n=509): time 0.02074/12.58, allocations: 7.083 MB / 5.997 GB, free: 20.73 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/12.58, allocations: 364.4 kB / 5.997 GB, free: 20.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01476/12.6, allocations: 6.451 MB / 6.004 GB, free: 13.89 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001694/12.6, allocations: 33.7 kB / 6.004 GB, free: 13.85 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00494/12.61, allocations: 2.998 MB / 6.007 GB, free: 10.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004076/12.61, allocations: 1.698 MB / 6.008 GB, free: 9.082 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00141/12.61, allocations: 0 / 6.008 GB, free: 9.082 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0006181/12.61, allocations: 0.555 MB / 6.009 GB, free: 8.52 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005798/12.62, allocations: 3.07 MB / 6.012 GB, free: 5.441 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006578/12.62, allocations: 4.76 MB / 6.017 GB, free: 15.96 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02148/12.65, allocations: 5.887 MB / 6.022 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.212e-05/12.65, allocations: 16 kB / 6.022 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.03831/12.68, allocations: 10.53 MB / 6.033 GB, free: 15.42 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.8979/13.58, allocations: 23.14 MB / 6.055 GB, free: 99.61 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000169/13.58, allocations: 47.94 kB / 6.055 GB, free: 99.61 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005383/13.58, allocations: 170 kB / 6.055 GB, free: 99.6 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009135/13.59, allocations: 1.674 MB / 6.057 GB, free: 99.6 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007617/13.59, allocations: 0.7399 MB / 6.058 GB, free: 99.09 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01093/13.6, allocations: 0.8864 MB / 6.059 GB, free: 99.09 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002271/13.61, allocations: 315.2 kB / 6.059 GB, free: 99.09 MB / 0.9793 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/13.61, allocations: 3.969 kB / 6.059 GB, free: 99.09 MB / 0.9793 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02899/13.64, allocations: 9.708 MB / 6.068 GB, free: 98.91 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001317/13.64, allocations: 48.23 kB / 6.068 GB, free: 98.91 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000356/13.64, allocations: 167.5 kB / 6.069 GB, free: 98.91 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00846/13.64, allocations: 1.667 MB / 6.07 GB, free: 98.91 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006864/13.65, allocations: 0.7446 MB / 6.071 GB, free: 98.39 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01069/13.66, allocations: 0.78 MB / 6.072 GB, free: 98.39 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00198/13.66, allocations: 306.9 kB / 6.072 GB, free: 98.39 MB / 0.9793 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.002118/13.66, allocations: 275.6 kB / 6.072 GB, free: 98.29 MB / 0.9793 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002911/13.66, allocations: 0.7234 MB / 6.073 GB, free: 98.29 MB / 0.9793 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01968/13.68, allocations: 8.337 MB / 6.081 GB, free: 97.98 MB / 0.9793 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.694e-05/13.68, allocations: 54.91 kB / 6.081 GB, free: 97.98 MB / 0.9793 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/13.68, allocations: 2.656 kB / 6.081 GB, free: 97.98 MB / 0.9793 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0135/13.7, allocations: 6.633 MB / 6.088 GB, free: 97.56 MB / 0.9793 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03635/13.73, allocations: 16.64 MB / 6.104 GB, free: 96.97 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/13.73, allocations: 2.656 kB / 6.104 GB, free: 96.97 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005792/13.74, allocations: 1.149 MB / 6.105 GB, free: 96.97 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002637/13.74, allocations: 94.75 kB / 6.105 GB, free: 96.96 MB / 0.9793 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004684/13.74, allocations: 99.23 kB / 6.105 GB, free: 96.96 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004992/13.74, allocations: 0.6534 MB / 6.106 GB, free: 96.45 MB / 0.9793 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/13.74, allocations: 2.656 kB / 6.106 GB, free: 96.45 MB / 0.9793 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02071/13.76, allocations: 11.83 MB / 6.117 GB, free: 95.48 MB / 0.9793 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02789/13.79, allocations: 16.61 MB / 6.134 GB, free: 94.04 MB / 0.9793 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006046/13.79, allocations: 1.945 MB / 6.136 GB, free: 93.56 MB / 0.9793 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002069/13.8, allocations: 25.02 kB / 6.136 GB, free: 93.56 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006064/13.8, allocations: 464.1 kB / 6.136 GB, free: 93.55 MB / 0.9793 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004619/13.8, allocations: 277.1 kB / 6.136 GB, free: 93.54 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004981/13.8, allocations: 216.1 kB / 6.137 GB, free: 93.54 MB / 0.9793 GB Notification: Performance of sort global known variables: time 0.007438/13.81, allocations: 4.909 MB / 6.141 GB, free: 93.32 MB / 0.9793 GB Notification: Performance of remove unused functions: time 0.02503/13.84, allocations: 5.684 MB / 6.147 GB, free: 92.93 MB / 0.9793 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.0053/13.84, allocations: 2.207 MB / 6.149 GB, free: 92.56 MB / 0.9793 GB Notification: Performance of simCode: created initialization part: time 0.01834/13.86, allocations: 11.67 MB / 6.16 GB, free: 92.33 MB / 0.9793 GB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/13.86, allocations: 4.156 kB / 6.16 GB, free: 92.33 MB / 0.9793 GB Notification: Performance of simCode: created simulation system equations: time 0.004447/13.86, allocations: 3.197 MB / 6.164 GB, free: 92.31 MB / 0.9793 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01725/13.88, allocations: 3.435 MB / 6.167 GB, free: 92.23 MB / 0.9793 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03634/13.92, allocations: 17.09 MB / 6.184 GB, free: 89.35 MB / 0.9793 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01181/13.93, allocations: 7.056 MB / 6.19 GB, free: 88.45 MB / 0.9793 GB Notification: Performance of SimCode: time 1.192e-06/13.93, allocations: 0 / 6.19 GB, free: 88.45 MB / 0.9793 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)