Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Validation.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.Validation.FlatPlate,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Validation_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.238/2.238, allocations: 248.6 MB / 255.9 MB, free: 7.121 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.001691/0.001691, allocations: 188.2 kB / 315.1 MB, free: 4.238 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.001/2.001, allocations: 205.1 MB / 0.5658 GB, free: 268 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.001295/0.001294, allocations: 85.64 kB / 0.67 GB, free: 5.477 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4827/0.484, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.6884, allocations: 106.3 MB / 0.8835 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.127/7.816, allocations: 2.475 GB / 3.359 GB, free: 210.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003681/7.816, allocations: 90.7 kB / 3.359 GB, free: 210.7 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: 2330 * Number of variables: 2330 Notification: Performance of Generate backend data structure: time 10.25/18.06, allocations: 2.059 GB / 5.418 GB, free: 122.1 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.521e-05/18.06, allocations: 8.844 kB / 5.418 GB, free: 122.1 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03248/18.1, allocations: 2.143 MB / 5.42 GB, free: 121.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07918/18.18, allocations: 14.87 MB / 5.434 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008447/18.18, allocations: 281.2 kB / 5.435 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005046/18.18, allocations: 0.5111 MB / 5.435 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04127/18.22, allocations: 10.5 MB / 5.445 GB, free: 104.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05696/18.28, allocations: 11.55 MB / 5.457 GB, free: 92.65 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009419/18.28, allocations: 39.7 kB / 5.457 GB, free: 92.61 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006016/18.29, allocations: 16 kB / 5.457 GB, free: 92.59 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005047/18.29, allocations: 480.9 kB / 5.457 GB, free: 92.12 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.166/18.45, allocations: 49.28 MB / 5.505 GB, free: 41.64 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02884/18.48, allocations: 7.01 MB / 5.512 GB, free: 34.69 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01547/18.5, allocations: 4.022 MB / 5.516 GB, free: 30.65 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004314/18.5, allocations: 1.496 MB / 5.518 GB, free: 28.89 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01681/18.52, allocations: 3.743 MB / 5.521 GB, free: 25.09 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=553): time 1.661e-05/18.52, allocations: 4 kB / 5.521 GB, free: 25.08 MB / 0.8698 GB Notification: Performance of matching and sorting (n=553): time 0.05568/18.58, allocations: 7.93 MB / 5.529 GB, free: 17.06 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001883/18.58, allocations: 347.1 kB / 5.529 GB, free: 16.65 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03411/18.61, allocations: 7.879 MB / 5.537 GB, free: 8.781 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.002531/18.61, allocations: 33.7 kB / 5.537 GB, free: 8.742 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.01596/18.63, allocations: 3.441 MB / 5.54 GB, free: 5.254 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.01601/18.64, allocations: 1.857 MB / 5.542 GB, free: 3.371 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002193/18.65, allocations: 4 kB / 5.542 GB, free: 3.367 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.001152/18.65, allocations: 0.5753 MB / 5.543 GB, free: 2.785 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01467/18.66, allocations: 3.256 MB / 5.546 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01939/18.68, allocations: 5.078 MB / 5.551 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05596/18.74, allocations: 5.976 MB / 5.557 GB, free: 3.633 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/18.74, allocations: 16 kB / 5.557 GB, free: 3.617 MB / 0.8855 GB Notification: Performance of matching and sorting (n=866) (initialization): time 0.812/19.55, allocations: 10.71 MB / 5.567 GB, free: 226.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.005956/19.56, allocations: 27.45 MB / 5.594 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/19.56, allocations: 54.47 kB / 5.594 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/19.56, allocations: 93.72 kB / 5.594 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01807/19.57, allocations: 1.833 MB / 5.596 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001939/19.57, allocations: 124.9 kB / 5.596 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01922/19.59, allocations: 0.9686 MB / 5.597 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002444/19.6, allocations: 335.6 kB / 5.597 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/19.6, allocations: 3.781 kB / 5.597 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05282/19.65, allocations: 9.899 MB / 5.607 GB, free: 198 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001991/19.65, allocations: 54.16 kB / 5.607 GB, free: 198 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001563/19.65, allocations: 95.41 kB / 5.607 GB, free: 198 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01778/19.67, allocations: 1.836 MB / 5.609 GB, free: 198 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001803/19.67, allocations: 123.5 kB / 5.609 GB, free: 198 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01768/19.69, allocations: 0.8521 MB / 5.61 GB, free: 198 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002301/19.69, allocations: 334.5 kB / 5.61 GB, free: 198 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.datRea.nextTimeEvent,$whenCondition3,$whenCondition2,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,datRea.nextTimeEvent,$PRE.datRea.nextTimeEventScaled,datRea.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (866): * Single equations (assignments): 866 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003812/19.69, allocations: 297.8 kB / 5.611 GB, free: 197.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004899/19.7, allocations: 0.7997 MB / 5.611 GB, free: 197.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04398/19.74, allocations: 9.117 MB / 5.62 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.481e-05/19.74, allocations: 54.47 kB / 5.62 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/19.74, allocations: 0.5625 kB / 5.62 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03111/19.77, allocations: 7.294 MB / 5.627 GB, free: 197.1 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07063/19.84, allocations: 19.33 MB / 5.646 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.658e-05/19.84, allocations: 11.05 kB / 5.646 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0146/19.86, allocations: 1.302 MB / 5.648 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.259e-05/19.86, allocations: 23.98 kB / 5.648 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00142/19.86, allocations: 118.8 kB / 5.648 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.632e-05/19.86, allocations: 18.91 kB / 5.648 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/19.86, allocations: 0 / 5.648 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04588/19.91, allocations: 13.06 MB / 5.66 GB, free: 195 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0575/19.96, allocations: 18.24 MB / 5.678 GB, free: 193.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01009/19.97, allocations: 2.312 MB / 5.681 GB, free: 193 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004307/19.98, allocations: 33.52 kB / 5.681 GB, free: 193 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01748/19.99, allocations: 0.585 MB / 5.681 GB, free: 193 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001887/20, allocations: 289.1 kB / 5.681 GB, free: 193 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001583/20, allocations: 267.9 kB / 5.682 GB, free: 193 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.01709/20.02, allocations: 6.043 MB / 5.688 GB, free: 192.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.03218/20.05, allocations: 5.571 MB / 5.693 GB, free: 192.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 30 (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,solCol.vol[10].dynBal.U,solCol.vol[11].dynBal.U,solCol.vol[12].dynBal.U,solCol.vol[13].dynBal.U,solCol.vol[14].dynBal.U,solCol.vol[15].dynBal.U,solCol.vol[16].dynBal.U,solCol.vol[17].dynBal.U,solCol.vol[18].dynBal.U,solCol.vol[19].dynBal.U,solCol.vol[20].dynBal.U,solCol.vol[21].dynBal.U,solCol.vol[22].dynBal.U,solCol.vol[23].dynBal.U,solCol.vol[24].dynBal.U,solCol.vol[25].dynBal.U,solCol.vol[26].dynBal.U,solCol.vol[27].dynBal.U,solCol.vol[28].dynBal.U,solCol.vol[29].dynBal.U,solCol.vol[30].dynBal.U) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,datRea.nextTimeEvent,datRea.nextTimeEventScaled) * Number of discrete states: 4 (datRea.nextTimeEvent,datRea.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (573): * Single equations (assignments): 567 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005027/20.05, allocations: 1.147 MB / 5.694 GB, free: 192.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.04498/20.1, allocations: 12.43 MB / 5.706 GB, free: 192 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.849e-05/20.1, allocations: 6.562 kB / 5.706 GB, free: 192 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.01471/20.11, allocations: 3.525 MB / 5.71 GB, free: 192 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04736/20.16, allocations: 4.52 MB / 5.714 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07185/20.23, allocations: 19.95 MB / 5.734 GB, free: 187.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02289/20.25, allocations: 8.153 MB / 5.742 GB, free: 185 MB / 0.8855 GB Notification: Performance of SimCode: time 1.412e-06/20.25, allocations: 0 / 5.742 GB, free: 185 MB / 0.8855 GB