Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.FlatPlate,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.455/1.455, allocations: 285.5 MB / 292.8 MB, free: 9.875 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.0009922/0.0009923, allocations: 189.2 kB / 361.1 MB, free: 356 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.168/1.168, allocations: 205.1 MB / 0.6195 GB, free: 2.863 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008718/0.0008718, allocations: 90.84 kB / 0.7326 GB, free: 1.043 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.4171/0.418, allocations: 121.4 MB / 0.8511 GB, free: 151.7 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.5978, allocations: 115.3 MB / 0.9638 GB, free: 56.29 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.466/4.064, allocations: 2.109 GB / 3.073 GB, free: 244.3 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/4.065, allocations: 92.45 kB / 3.073 GB, free: 244.3 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 5.288/9.353, allocations: 1.909 GB / 4.982 GB, free: 138.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/9.353, allocations: 10.69 kB / 4.982 GB, free: 138.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01219/9.365, allocations: 1.626 MB / 4.983 GB, free: 138.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01705/9.382, allocations: 5.497 MB / 4.989 GB, free: 136.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000253/9.382, allocations: 121.5 kB / 4.989 GB, free: 136.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001794/9.384, allocations: 216.9 kB / 4.989 GB, free: 136.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01046/9.395, allocations: 4.542 MB / 4.994 GB, free: 134.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0138/9.409, allocations: 4.725 MB / 4.998 GB, free: 131.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001852/9.409, allocations: 7.062 kB / 4.998 GB, free: 131.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001233/9.41, allocations: 6.469 kB / 4.998 GB, free: 131.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001891/9.41, allocations: 160.4 kB / 4.998 GB, free: 131.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03954/9.45, allocations: 19.11 MB / 5.017 GB, free: 115.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005219/9.455, allocations: 3.186 MB / 5.02 GB, free: 112.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0024/9.457, allocations: 1.663 MB / 5.022 GB, free: 110.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00239/9.46, allocations: 3.06 MB / 5.025 GB, free: 107.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003236/9.463, allocations: 1.882 MB / 5.027 GB, free: 105.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=284): time 6.742e-06/9.463, allocations: 2.969 kB / 5.027 GB, free: 105.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=284): time 0.01667/9.48, allocations: 4.595 MB / 5.031 GB, free: 100.7 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/9.48, allocations: 291.2 kB / 5.031 GB, free: 100.4 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005407/9.485, allocations: 2.929 MB / 5.034 GB, free: 97.45 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007246/9.486, allocations: 25.7 kB / 5.034 GB, free: 97.42 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001539/9.488, allocations: 1.368 MB / 5.036 GB, free: 96.03 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00192/9.49, allocations: 0.9275 MB / 5.037 GB, free: 95.09 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004952/9.49, allocations: 0 / 5.037 GB, free: 95.09 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002307/9.49, allocations: 431.5 kB / 5.037 GB, free: 94.66 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002271/9.493, allocations: 1.388 MB / 5.038 GB, free: 93.27 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/9.495, allocations: 2.01 MB / 5.04 GB, free: 91.03 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0148/9.51, allocations: 3.103 MB / 5.043 GB, free: 87.97 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.789e-05/9.51, allocations: 4 kB / 5.043 GB, free: 87.97 MB / 0.948 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.02128/9.531, allocations: 5.371 MB / 5.049 GB, free: 82.61 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001208/9.533, allocations: 6.441 MB / 5.055 GB, free: 75.57 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-05/9.533, allocations: 16 kB / 5.055 GB, free: 75.55 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006653/9.533, allocations: 108.7 kB / 5.055 GB, free: 75.45 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004283/9.538, allocations: 0.8296 MB / 5.056 GB, free: 74.63 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/9.54, allocations: 2.097 MB / 5.058 GB, free: 72.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004949/9.545, allocations: 438.2 kB / 5.058 GB, free: 71.99 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008258/9.545, allocations: 199.9 kB / 5.058 GB, free: 71.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.997e-06/9.545, allocations: 4 kB / 5.058 GB, free: 71.79 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02035/9.566, allocations: 4.911 MB / 5.063 GB, free: 66.91 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.347e-05/9.566, allocations: 16 kB / 5.063 GB, free: 66.89 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005911/9.567, allocations: 108.2 kB / 5.063 GB, free: 66.79 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004181/9.571, allocations: 0.8101 MB / 5.064 GB, free: 65.98 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/9.572, allocations: 1.501 MB / 5.066 GB, free: 64.37 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005025/9.577, allocations: 400.6 kB / 5.066 GB, free: 64 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007523/9.578, allocations: 203.9 kB / 5.066 GB, free: 63.8 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.001273/9.579, allocations: 175 kB / 5.066 GB, free: 63.62 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002124/9.582, allocations: 427.5 kB / 5.067 GB, free: 63.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01946/9.601, allocations: 6.273 MB / 5.073 GB, free: 57.15 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.034e-05/9.601, allocations: 32 kB / 5.073 GB, free: 57.12 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/9.601, allocations: 0 / 5.073 GB, free: 57.12 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01356/9.615, allocations: 4.655 MB / 5.077 GB, free: 52.36 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02502/9.64, allocations: 10.05 MB / 5.087 GB, free: 42.26 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.909e-06/9.64, allocations: 4.062 kB / 5.087 GB, free: 42.25 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003506/9.643, allocations: 0.6046 MB / 5.088 GB, free: 41.65 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001358/9.645, allocations: 490.2 kB / 5.088 GB, free: 41.14 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004757/9.645, allocations: 67.91 kB / 5.088 GB, free: 41.07 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005292/9.651, allocations: 7.705 MB / 5.096 GB, free: 33 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/9.651, allocations: 8.062 kB / 5.096 GB, free: 33 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01907/9.67, allocations: 7.426 MB / 5.103 GB, free: 25.46 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02168/9.691, allocations: 10.35 MB / 5.113 GB, free: 14.99 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002998/9.694, allocations: 1.151 MB / 5.114 GB, free: 13.81 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/9.696, allocations: 7.984 kB / 5.114 GB, free: 13.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00437/9.7, allocations: 275.4 kB / 5.115 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003728/9.701, allocations: 166.1 kB / 5.115 GB, free: 13.37 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004636/9.701, allocations: 131.9 kB / 5.115 GB, free: 13.24 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.003912/9.705, allocations: 2.257 MB / 5.117 GB, free: 11 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01291/9.718, allocations: 3.434 MB / 5.121 GB, free: 7.559 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.005852/9.724, allocations: 2.138 MB / 5.123 GB, free: 5.68 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01003/9.734, allocations: 5.835 MB / 5.128 GB, free: 15.8 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/9.734, allocations: 0.5 kB / 5.128 GB, free: 15.8 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.004508/9.738, allocations: 2.024 MB / 5.13 GB, free: 13.77 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0096/9.748, allocations: 1.62 MB / 5.132 GB, free: 12.2 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4276/10.18, allocations: 23.53 MB / 5.155 GB, free: 219 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005597/10.18, allocations: 3.751 MB / 5.158 GB, free: 218.2 MB / 0.9636 GB Notification: Performance of SimCode: time 8.51e-07/10.18, allocations: 3.375 kB / 5.158 GB, free: 218.2 MB / 0.9636 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.fmu > Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1)