Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.259/2.259, allocations: 248.6 MB / 255.9 MB, free: 7.188 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.002558/0.002558, allocations: 181.2 kB / 315.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.179/2.179, allocations: 205.1 MB / 0.5658 GB, free: 288 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001801/0.001801, allocations: 91.34 kB / 0.67 GB, free: 5.477 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.488/0.4898, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.6914, allocations: 106.2 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.864/6.555, allocations: 2.228 GB / 3.112 GB, free: 138.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003669/6.556, allocations: 91.19 kB / 3.112 GB, free: 138.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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 9.249/15.8, allocations: 1.909 GB / 5.02 GB, free: 131.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/15.8, allocations: 10 kB / 5.02 GB, free: 131.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01901/15.82, allocations: 1.636 MB / 5.022 GB, free: 131.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0258/15.85, allocations: 5.496 MB / 5.027 GB, free: 130.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005204/15.85, allocations: 121.1 kB / 5.027 GB, free: 130.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002852/15.85, allocations: 221.1 kB / 5.028 GB, free: 130.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01824/15.87, allocations: 4.548 MB / 5.032 GB, free: 130.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02411/15.9, allocations: 4.71 MB / 5.037 GB, free: 130.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002061/15.9, allocations: 7.125 kB / 5.037 GB, free: 130.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002155/15.9, allocations: 10.92 kB / 5.037 GB, free: 130.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005637/15.9, allocations: 160.8 kB / 5.037 GB, free: 130 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05687/15.96, allocations: 19.11 MB / 5.055 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009946/15.97, allocations: 3.19 MB / 5.059 GB, free: 124.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004827/15.97, allocations: 1.667 MB / 5.06 GB, free: 124.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004639/15.97, allocations: 3.051 MB / 5.063 GB, free: 120.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006409/15.98, allocations: 1.887 MB / 5.065 GB, free: 120.7 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=284): time 8.656e-06/15.98, allocations: 0 / 5.065 GB, free: 120.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=284): time 0.03018/16.01, allocations: 4.595 MB / 5.07 GB, free: 120.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/16.01, allocations: 295.7 kB / 5.07 GB, free: 120 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009777/16.02, allocations: 2.928 MB / 5.073 GB, free: 119.4 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.001277/16.02, allocations: 28.89 kB / 5.073 GB, free: 119.4 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.004188/16.03, allocations: 1.357 MB / 5.074 GB, free: 118.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.003445/16.03, allocations: 0.9245 MB / 5.075 GB, free: 117.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000835/16.03, allocations: 2.562 kB / 5.075 GB, free: 117.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0004314/16.03, allocations: 432 kB / 5.075 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004923/16.04, allocations: 1.388 MB / 5.077 GB, free: 116.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007438/16.04, allocations: 2.014 MB / 5.079 GB, free: 115.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.032/16.08, allocations: 3.098 MB / 5.082 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.845e-05/16.08, allocations: 4.031 kB / 5.082 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.04724/16.12, allocations: 5.376 MB / 5.087 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.00155/16.13, allocations: 6.439 MB / 5.093 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/16.13, allocations: 18.23 kB / 5.093 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/16.13, allocations: 110.1 kB / 5.093 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009157/16.14, allocations: 0.8221 MB / 5.094 GB, free: 106.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004606/16.14, allocations: 2.102 MB / 5.096 GB, free: 104.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009471/16.15, allocations: 432.9 kB / 5.097 GB, free: 104.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001529/16.15, allocations: 208.1 kB / 5.097 GB, free: 104.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/16.15, allocations: 3.156 kB / 5.097 GB, free: 104.2 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04207/16.19, allocations: 4.903 MB / 5.102 GB, free: 102.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001409/16.19, allocations: 14.75 kB / 5.102 GB, free: 102.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001817/16.2, allocations: 109.4 kB / 5.102 GB, free: 102.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01326/16.21, allocations: 0.8134 MB / 5.103 GB, free: 102.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/16.21, allocations: 1.493 MB / 5.104 GB, free: 101.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01262/16.23, allocations: 401.4 kB / 5.104 GB, free: 101.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002013/16.23, allocations: 201.4 kB / 5.105 GB, free: 101.3 MB / 0.8698 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.003036/16.23, allocations: 177.8 kB / 5.105 GB, free: 101.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005178/16.24, allocations: 433.4 kB / 5.105 GB, free: 100.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0594/16.3, allocations: 6.267 MB / 5.111 GB, free: 99.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001451/16.3, allocations: 34.02 kB / 5.111 GB, free: 99.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.581e-05/16.3, allocations: 0.9062 kB / 5.111 GB, free: 99.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04261/16.34, allocations: 4.658 MB / 5.116 GB, free: 97.66 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06344/16.4, allocations: 10.02 MB / 5.126 GB, free: 89.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.448e-05/16.4, allocations: 0 / 5.126 GB, free: 89.91 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00732/16.41, allocations: 0.6109 MB / 5.126 GB, free: 89.43 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002696/16.41, allocations: 495.8 kB / 5.127 GB, free: 89.02 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009277/16.41, allocations: 64.95 kB / 5.127 GB, free: 88.98 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009134/16.42, allocations: 7.712 MB / 5.134 GB, free: 81.22 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/16.42, allocations: 0 / 5.134 GB, free: 81.22 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03766/16.46, allocations: 7.43 MB / 5.142 GB, free: 74.79 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04289/16.5, allocations: 10.35 MB / 5.152 GB, free: 65.63 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004894/16.51, allocations: 1.147 MB / 5.153 GB, free: 64.66 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002362/16.51, allocations: 17.55 kB / 5.153 GB, free: 64.64 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00838/16.52, allocations: 268.6 kB / 5.153 GB, free: 64.48 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001003/16.52, allocations: 166.7 kB / 5.153 GB, free: 64.38 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006925/16.52, allocations: 133.2 kB / 5.153 GB, free: 64.28 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.007098/16.53, allocations: 2.258 MB / 5.156 GB, free: 62.31 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.02051/16.55, allocations: 3.433 MB / 5.159 GB, free: 58.92 MB / 0.8698 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.007912/16.56, allocations: 2.14 MB / 5.161 GB, free: 57.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.02484/16.58, allocations: 5.839 MB / 5.167 GB, free: 52.03 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.922e-05/16.58, allocations: 0.5 kB / 5.167 GB, free: 52.03 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.009408/16.59, allocations: 2.033 MB / 5.169 GB, free: 50.19 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01575/16.61, allocations: 1.615 MB / 5.17 GB, free: 49.03 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1006/16.71, allocations: 23.53 MB / 5.193 GB, free: 28.02 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01343/16.72, allocations: 3.755 MB / 5.197 GB, free: 24.23 MB / 0.8698 GB Notification: Performance of SimCode: time 1.663e-06/16.72, allocations: 0 / 5.197 GB, free: 24.23 MB / 0.8698 GB