Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.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.FlatPlateTotalArea,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",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.41/1.41, 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.0009725/0.0009728, allocations: 193 kB / 361.1 MB, free: 368 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.21/1.21, allocations: 205.1 MB / 0.6195 GB, free: 2.875 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.0008045/0.0008047, allocations: 83.05 kB / 0.7325 GB, free: 1.027 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.4405/0.4413, allocations: 121.4 MB / 0.8511 GB, free: 151.9 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1908/0.6321, allocations: 115.3 MB / 0.9638 GB, free: 56.27 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.009/4.641, allocations: 2.357 GB / 3.321 GB, free: 351 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/4.641, allocations: 89.2 kB / 3.321 GB, free: 351 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: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 8.492/13.13, allocations: 2.844 GB / 6.165 GB, free: 108.2 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/13.13, allocations: 9.219 kB / 6.165 GB, free: 108.2 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0233/13.16, allocations: 3.228 MB / 6.169 GB, free: 106.7 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05073/13.21, allocations: 18.38 MB / 6.187 GB, free: 89.14 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007909/13.21, allocations: 356 kB / 6.187 GB, free: 88.8 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005033/13.21, allocations: 0.6443 MB / 6.188 GB, free: 88.15 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02996/13.24, allocations: 13.13 MB / 6.2 GB, free: 75.01 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04119/13.28, allocations: 14.66 MB / 6.215 GB, free: 59.84 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005815/13.29, allocations: 43.7 kB / 6.215 GB, free: 59.79 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004764/13.29, allocations: 20 kB / 6.215 GB, free: 59.77 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003796/13.29, allocations: 0.5796 MB / 6.215 GB, free: 59.19 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/13.4, allocations: 62.13 MB / 6.276 GB, free: 11.66 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01791/13.42, allocations: 8.787 MB / 6.285 GB, free: 2.969 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.7334/14.15, allocations: 5.052 MB / 6.289 GB, free: 207.7 MB / 0.9949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002364/14.15, allocations: 2.397 MB / 6.292 GB, free: 205.2 MB / 0.9949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008624/14.16, allocations: 5.156 MB / 6.297 GB, free: 205.1 MB / 0.9949 GB Notification: Performance of pre-optimization done (n=704): time 1.075e-05/14.16, allocations: 0 / 6.297 GB, free: 205.1 MB / 0.9949 GB Notification: Performance of matching and sorting (n=704): time 0.03093/14.19, allocations: 10.47 MB / 6.307 GB, free: 204.9 MB / 0.9949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/14.19, allocations: 355.5 kB / 6.307 GB, free: 204.5 MB / 0.9949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01817/14.21, allocations: 9.697 MB / 6.317 GB, free: 204 MB / 0.9949 GB Notification: Performance of collectPreVariables (initialization): time 0.002097/14.21, allocations: 36.08 kB / 6.317 GB, free: 203.9 MB / 0.9949 GB Notification: Performance of collectInitialEqns (initialization): time 0.009942/14.22, allocations: 4.318 MB / 6.321 GB, free: 202.9 MB / 0.9949 GB Notification: Performance of collectInitialBindings (initialization): time 0.008905/14.23, allocations: 2.356 MB / 6.323 GB, free: 201.6 MB / 0.9949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001794/14.24, allocations: 0 / 6.323 GB, free: 201.6 MB / 0.9949 GB Notification: Performance of setup shared object (initialization): time 0.001063/14.24, allocations: 0.6475 MB / 6.324 GB, free: 201.3 MB / 0.9949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009405/14.25, allocations: 4.121 MB / 6.328 GB, free: 201.3 MB / 0.9949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00967/14.26, allocations: 6.342 MB / 6.334 GB, free: 198.8 MB / 0.9949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03208/14.29, allocations: 8.225 MB / 6.342 GB, free: 198.7 MB / 0.9949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001277/14.29, allocations: 22.53 kB / 6.342 GB, free: 198.7 MB / 0.9949 GB Notification: Performance of matching and sorting (n=1097) (initialization): time 0.04959/14.34, allocations: 14.33 MB / 6.356 GB, free: 198 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 0.006462/14.34, allocations: 35.44 MB / 6.391 GB, free: 161.1 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002496/14.34, allocations: 66.12 kB / 6.391 GB, free: 161.1 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009064/14.34, allocations: 198.7 kB / 6.391 GB, free: 161.1 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01316/14.36, allocations: 2.354 MB / 6.394 GB, free: 161.1 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/14.36, allocations: 1.602 MB / 6.395 GB, free: 159.9 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01502/14.38, allocations: 1.272 MB / 6.396 GB, free: 159.5 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002692/14.38, allocations: 421.8 kB / 6.397 GB, free: 159.5 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/14.38, allocations: 6.969 kB / 6.397 GB, free: 159.5 MB / 0.9949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04559/14.42, allocations: 13.3 MB / 6.41 GB, free: 159.3 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002208/14.42, allocations: 70.34 kB / 6.41 GB, free: 159.3 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007233/14.42, allocations: 201.8 kB / 6.41 GB, free: 159.3 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01211/14.44, allocations: 2.354 MB / 6.412 GB, free: 159.3 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001791/14.44, allocations: 1.606 MB / 6.414 GB, free: 158.1 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01483/14.45, allocations: 1.103 MB / 6.415 GB, free: 157.7 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002952/14.46, allocations: 422.7 kB / 6.415 GB, free: 157.7 MB / 0.9949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 293 * 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 (1095): * Single equations (assignments): 1094 * 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: 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.003889/14.46, allocations: 341.2 kB / 6.416 GB, free: 157.6 MB / 0.9949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00442/14.46, allocations: 1.008 MB / 6.417 GB, free: 157 MB / 0.9949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0327/14.5, allocations: 12.24 MB / 6.429 GB, free: 156.7 MB / 0.9949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.403e-05/14.5, allocations: 74.19 kB / 6.429 GB, free: 156.7 MB / 0.9949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/14.5, allocations: 0 / 6.429 GB, free: 156.7 MB / 0.9949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02435/14.52, allocations: 9.914 MB / 6.438 GB, free: 156.1 MB / 0.9949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06829/14.59, allocations: 25.56 MB / 6.463 GB, free: 154.4 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.607e-05/14.59, allocations: 9.656 kB / 6.463 GB, free: 154.4 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009905/14.6, allocations: 1.696 MB / 6.465 GB, free: 154.4 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005802/14.6, allocations: 116.5 kB / 6.465 GB, free: 154.4 MB / 0.9949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001149/14.6, allocations: 165.8 kB / 6.465 GB, free: 154.4 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/14.6, allocations: 1.535 MB / 6.467 GB, free: 153.2 MB / 0.9949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/14.6, allocations: 16.28 kB / 6.467 GB, free: 153.2 MB / 0.9949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03941/14.64, allocations: 19.58 MB / 6.486 GB, free: 148.5 MB / 0.9949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04679/14.69, allocations: 25.95 MB / 6.511 GB, free: 143.4 MB / 0.9949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01072/14.7, allocations: 2.952 MB / 6.514 GB, free: 142.6 MB / 0.9949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004729/14.71, allocations: 51.16 kB / 6.514 GB, free: 142.6 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0133/14.72, allocations: 0.6753 MB / 6.515 GB, free: 142.6 MB / 0.9949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001756/14.72, allocations: 402.5 kB / 6.515 GB, free: 142.6 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001387/14.72, allocations: 380.5 kB / 6.516 GB, free: 142.5 MB / 0.9949 GB Notification: Performance of sort global known variables: time 0.01275/14.73, allocations: 7.435 MB / 6.523 GB, free: 139.8 MB / 0.9949 GB Notification: Performance of remove unused functions: time 0.03157/14.77, allocations: 7.343 MB / 6.53 GB, free: 138.1 MB / 0.9949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * Number of states: 40 (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,solCol1.vol[1].dynBal.U,solCol1.vol[2].dynBal.U,solCol1.vol[3].dynBal.U,solCol1.vol[4].dynBal.U,solCol1.vol[5].dynBal.U,solCol1.vol[6].dynBal.U,solCol1.vol[7].dynBal.U,solCol1.vol[8].dynBal.U,solCol1.vol[9].dynBal.U,solCol1.vol[10].dynBal.U,solCol1.vol[11].dynBal.U,solCol1.vol[12].dynBal.U,solCol1.vol[13].dynBal.U,solCol1.vol[14].dynBal.U,solCol1.vol[15].dynBal.U,solCol1.vol[16].dynBal.U,solCol1.vol[17].dynBal.U,solCol1.vol[18].dynBal.U,solCol1.vol[19].dynBal.U,solCol1.vol[20].dynBal.U,solCol1.vol[21].dynBal.U,solCol1.vol[22].dynBal.U,solCol1.vol[23].dynBal.U,solCol1.vol[24].dynBal.U,solCol1.vol[25].dynBal.U,solCol1.vol[26].dynBal.U,solCol1.vol[27].dynBal.U,TOut1.T,TIn1.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 (729): * Single equations (assignments): 716 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004939/14.77, allocations: 2.02 MB / 6.532 GB, free: 137.7 MB / 0.9949 GB Notification: Performance of simCode: created initialization part: time 0.02659/14.8, allocations: 15.96 MB / 6.548 GB, free: 132 MB / 0.9949 GB Notification: Performance of simCode: created event and clocks part: time 2.556e-05/14.8, allocations: 14.11 kB / 6.548 GB, free: 132 MB / 0.9949 GB Notification: Performance of simCode: created simulation system equations: time 0.007452/14.81, allocations: 4.574 MB / 6.552 GB, free: 130.3 MB / 0.9949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02897/14.83, allocations: 5.587 MB / 6.557 GB, free: 129.4 MB / 0.9949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05439/14.89, allocations: 25.44 MB / 6.582 GB, free: 120.2 MB / 0.9949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01428/14.9, allocations: 9.968 MB / 6.592 GB, free: 112.8 MB / 0.9949 GB Notification: Performance of SimCode: time 6.61e-07/14.9, allocations: 0 / 6.592 GB, free: 112.8 MB / 0.9949 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea.fmu > Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe 2>&1)