Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.FlatPlate,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.374/2.374, allocations: 284.8 MB / 292.1 MB, free: 10.77 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.001607/0.001607, allocations: 173.3 kB / 360.3 MB, free: 7.551 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.999/1.999, allocations: 205.1 MB / 0.6187 GB, free: 13.23 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.001281/0.001281, allocations: 95.11 kB / 0.7317 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2774/0.2787, allocations: 121.4 MB / 0.8502 GB, free: 3.945 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6134/0.8921, allocations: 115.2 MB / 0.9627 GB, free: 78.59 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.123/6.015, allocations: 2.109 GB / 3.072 GB, free: 262.6 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003298/6.015, allocations: 92.22 kB / 3.072 GB, free: 262.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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 8.811/14.83, allocations: 1.909 GB / 4.981 GB, free: 138.9 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.052e-05/14.83, allocations: 10.59 kB / 4.981 GB, free: 138.9 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03061/14.86, allocations: 1.628 MB / 4.982 GB, free: 138.7 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03309/14.89, allocations: 5.498 MB / 4.988 GB, free: 137.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004993/14.89, allocations: 123.6 kB / 4.988 GB, free: 137.9 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002729/14.89, allocations: 221.4 kB / 4.988 GB, free: 137.9 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02255/14.92, allocations: 4.55 MB / 4.992 GB, free: 137.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02344/14.94, allocations: 4.707 MB / 4.997 GB, free: 136.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001148/14.94, allocations: 6.375 kB / 4.997 GB, free: 136.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001048/14.94, allocations: 5.25 kB / 4.997 GB, free: 136.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001749/14.94, allocations: 166.8 kB / 4.997 GB, free: 136.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06764/15.01, allocations: 19.1 MB / 5.016 GB, free: 125.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01071/15.02, allocations: 3.185 MB / 5.019 GB, free: 124.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008109/15.03, allocations: 1.666 MB / 5.021 GB, free: 123.5 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006064/15.03, allocations: 3.062 MB / 5.024 GB, free: 120 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00941/15.04, allocations: 1.881 MB / 5.025 GB, free: 118.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=284): time 1.446e-05/15.04, allocations: 0 / 5.025 GB, free: 118.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=284): time 0.03684/15.08, allocations: 4.595 MB / 5.03 GB, free: 114 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/15.08, allocations: 291.2 kB / 5.03 GB, free: 113.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00896/15.09, allocations: 2.936 MB / 5.033 GB, free: 110.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001073/15.09, allocations: 29.7 kB / 5.033 GB, free: 110.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002703/15.09, allocations: 1.357 MB / 5.034 GB, free: 109.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003159/15.1, allocations: 0.9276 MB / 5.035 GB, free: 108.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004977/15.1, allocations: 6.344 kB / 5.035 GB, free: 108.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.00032/15.1, allocations: 432 kB / 5.036 GB, free: 107.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004208/15.1, allocations: 1.388 MB / 5.037 GB, free: 106.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005312/15.11, allocations: 2.007 MB / 5.039 GB, free: 104.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02916/15.14, allocations: 3.102 MB / 5.042 GB, free: 101.2 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-05/15.14, allocations: 8 kB / 5.042 GB, free: 101.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.04064/15.18, allocations: 5.371 MB / 5.047 GB, free: 95.84 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001321/15.18, allocations: 6.433 MB / 5.054 GB, free: 88.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.92e-05/15.18, allocations: 16 kB / 5.054 GB, free: 88.79 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/15.18, allocations: 112.4 kB / 5.054 GB, free: 88.68 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008956/15.19, allocations: 0.8199 MB / 5.055 GB, free: 87.86 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003275/15.19, allocations: 2.098 MB / 5.057 GB, free: 85.63 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00915/15.2, allocations: 438.7 kB / 5.057 GB, free: 85.22 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001297/15.2, allocations: 199.9 kB / 5.057 GB, free: 85.03 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/15.2, allocations: 4.625 kB / 5.057 GB, free: 85.02 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04081/15.24, allocations: 4.909 MB / 5.062 GB, free: 80.14 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.119e-05/15.24, allocations: 16 kB / 5.062 GB, free: 80.12 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/15.24, allocations: 116.2 kB / 5.062 GB, free: 80.01 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008429/15.25, allocations: 0.8086 MB / 5.063 GB, free: 79.21 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/15.26, allocations: 1.5 MB / 5.064 GB, free: 77.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009705/15.27, allocations: 400 kB / 5.065 GB, free: 77.23 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001901/15.27, allocations: 203.9 kB / 5.065 GB, free: 77.04 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.002373/15.27, allocations: 181.4 kB / 5.065 GB, free: 76.86 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005013/15.27, allocations: 427.5 kB / 5.066 GB, free: 76.43 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0366/15.31, allocations: 6.266 MB / 5.072 GB, free: 70.44 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.481e-05/15.31, allocations: 32 kB / 5.072 GB, free: 70.41 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/15.31, allocations: 0 / 5.072 GB, free: 70.41 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02595/15.34, allocations: 4.662 MB / 5.076 GB, free: 65.65 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04335/15.38, allocations: 10.03 MB / 5.086 GB, free: 55.58 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-05/15.38, allocations: 0 / 5.086 GB, free: 55.58 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00737/15.39, allocations: 0.6163 MB / 5.087 GB, free: 54.96 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002661/15.39, allocations: 492.2 kB / 5.087 GB, free: 54.45 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009594/15.39, allocations: 67.91 kB / 5.087 GB, free: 54.38 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008792/15.4, allocations: 7.71 MB / 5.095 GB, free: 46.31 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/15.4, allocations: 3.938 kB / 5.095 GB, free: 46.3 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03411/15.44, allocations: 7.424 MB / 5.102 GB, free: 38.77 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04009/15.48, allocations: 10.35 MB / 5.112 GB, free: 28.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004819/15.48, allocations: 1.151 MB / 5.113 GB, free: 27.12 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00205/15.48, allocations: 8 kB / 5.113 GB, free: 27.11 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01216/15.49, allocations: 271.5 kB / 5.114 GB, free: 26.85 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001263/15.5, allocations: 166 kB / 5.114 GB, free: 26.68 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001042/15.5, allocations: 139.8 kB / 5.114 GB, free: 26.55 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.008675/15.51, allocations: 2.253 MB / 5.116 GB, free: 24.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0261/15.53, allocations: 3.435 MB / 5.119 GB, free: 20.87 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (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) * 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 (274): * Single equations (assignments): 257 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01061/15.54, allocations: 2.135 MB / 5.121 GB, free: 18.98 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0254/15.57, allocations: 5.836 MB / 5.127 GB, free: 13.11 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.73e-05/15.57, allocations: 4.5 kB / 5.127 GB, free: 13.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.009138/15.58, allocations: 2.033 MB / 5.129 GB, free: 11.06 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01626/15.59, allocations: 1.615 MB / 5.131 GB, free: 9.492 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09979/15.69, allocations: 23.53 MB / 5.154 GB, free: 2.32 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4252/16.12, allocations: 3.747 MB / 5.157 GB, free: 227 MB / 0.9636 GB Notification: Performance of SimCode: time 1.813e-06/16.12, allocations: 0 / 5.157 GB, free: 227 MB / 0.9636 GB (rm -f Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.fmu > Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1)