Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.247/1.247, allocations: 249.4 MB / 256.7 MB, free: 6.984 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.001164/0.001164, allocations: 184.4 kB / 316 MB, free: 3.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.156/1.156, allocations: 205.2 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008317/0.0008317, allocations: 86.28 kB / 0.671 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.364/0.3648, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.5436, allocations: 106.3 MB / 0.8846 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.108/4.652, allocations: 2.475 GB / 3.36 GB, free: 287 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003798/4.652, allocations: 91.83 kB / 3.36 GB, free: 286.9 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: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 8.153/12.81, allocations: 2.779 GB / 6.138 GB, free: 77.41 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/12.81, allocations: 11.44 kB / 6.138 GB, free: 77.41 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02042/12.83, allocations: 3.225 MB / 6.142 GB, free: 76.59 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04603/12.87, allocations: 18.29 MB / 6.159 GB, free: 74.99 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006152/12.87, allocations: 356.3 kB / 6.16 GB, free: 74.99 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004402/12.88, allocations: 0.6446 MB / 6.16 GB, free: 74.98 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02958/12.91, allocations: 13.13 MB / 6.173 GB, free: 74.94 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03555/12.94, allocations: 14.47 MB / 6.187 GB, free: 73.3 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003195/12.94, allocations: 40.56 kB / 6.187 GB, free: 73.3 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001472/12.94, allocations: 21.92 kB / 6.187 GB, free: 73.3 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003438/12.94, allocations: 0.5756 MB / 6.188 GB, free: 73.27 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1106/13.05, allocations: 61.91 MB / 6.248 GB, free: 50.21 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01595/13.07, allocations: 8.794 MB / 6.257 GB, free: 50 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00824/13.08, allocations: 5.057 MB / 6.262 GB, free: 49.92 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002854/13.08, allocations: 2.386 MB / 6.264 GB, free: 47.48 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0103/13.09, allocations: 5.046 MB / 6.269 GB, free: 47.29 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=704): time 1.918e-05/13.09, allocations: 0 / 6.269 GB, free: 47.29 MB / 0.9167 GB Notification: Performance of matching and sorting (n=704): time 0.03594/13.13, allocations: 10.46 MB / 6.279 GB, free: 46.55 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/13.13, allocations: 355.2 kB / 6.28 GB, free: 46.2 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02584/13.15, allocations: 9.693 MB / 6.289 GB, free: 45.33 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.002619/13.16, allocations: 35.36 kB / 6.289 GB, free: 45.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.01113/13.17, allocations: 4.322 MB / 6.294 GB, free: 42.36 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.009071/13.18, allocations: 2.353 MB / 6.296 GB, free: 40.52 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009428/13.18, allocations: 0 / 6.296 GB, free: 40.52 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0007505/13.18, allocations: 0.6497 MB / 6.296 GB, free: 40.06 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007858/13.19, allocations: 4.121 MB / 6.3 GB, free: 38.52 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009925/13.2, allocations: 6.344 MB / 6.307 GB, free: 34.29 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03325/13.23, allocations: 8.232 MB / 6.315 GB, free: 32.17 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/13.23, allocations: 19 kB / 6.315 GB, free: 32.17 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1097) (initialization): time 0.04817/13.28, allocations: 14.34 MB / 6.329 GB, free: 22.5 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.009883/13.29, allocations: 35.44 MB / 6.363 GB, free: 16.74 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004052/13.29, allocations: 68 kB / 6.363 GB, free: 16.67 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/13.29, allocations: 197.8 kB / 6.364 GB, free: 16.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01314/13.3, allocations: 2.353 MB / 6.366 GB, free: 14.68 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/13.31, allocations: 1.609 MB / 6.367 GB, free: 13.07 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01512/13.32, allocations: 1.264 MB / 6.369 GB, free: 12 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002436/13.32, allocations: 424 kB / 6.369 GB, free: 11.63 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/13.32, allocations: 4 kB / 6.369 GB, free: 11.63 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04353/13.37, allocations: 13.3 MB / 6.382 GB, free: 0.9531 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001484/13.37, allocations: 64.19 kB / 6.382 GB, free: 0.8906 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006885/13.37, allocations: 200.2 kB / 6.382 GB, free: 0.7148 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.7203/14.09, allocations: 2.737 MB / 6.385 GB, free: 173.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/14.09, allocations: 1.611 MB / 6.387 GB, free: 172.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01527/14.1, allocations: 1.099 MB / 6.388 GB, free: 172.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002488/14.11, allocations: 429.4 kB / 6.388 GB, free: 172.6 MB / 0.948 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.003992/14.11, allocations: 330.4 kB / 6.388 GB, free: 172.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00436/14.12, allocations: 1.003 MB / 6.389 GB, free: 172.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03551/14.15, allocations: 12.25 MB / 6.401 GB, free: 172.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.357e-05/14.15, allocations: 73 kB / 6.401 GB, free: 172.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/14.15, allocations: 0 / 6.401 GB, free: 172.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02538/14.18, allocations: 9.915 MB / 6.411 GB, free: 171.6 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06195/14.24, allocations: 25.42 MB / 6.436 GB, free: 170.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.44e-05/14.24, allocations: 12.16 kB / 6.436 GB, free: 170.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01011/14.25, allocations: 1.698 MB / 6.438 GB, free: 170.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006461/14.25, allocations: 116.5 kB / 6.438 GB, free: 170.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001291/14.25, allocations: 168 kB / 6.438 GB, free: 170.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/14.25, allocations: 1.525 MB / 6.439 GB, free: 169 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.958e-06/14.25, allocations: 15.91 kB / 6.439 GB, free: 169 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03708/14.29, allocations: 19.57 MB / 6.458 GB, free: 164.7 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04659/14.34, allocations: 25.94 MB / 6.484 GB, free: 159.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01001/14.35, allocations: 2.891 MB / 6.487 GB, free: 158.9 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005217/14.35, allocations: 47.56 kB / 6.487 GB, free: 158.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01429/14.37, allocations: 0.6772 MB / 6.487 GB, free: 158.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002045/14.37, allocations: 398.9 kB / 6.488 GB, free: 158.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002386/14.37, allocations: 348.6 kB / 6.488 GB, free: 158.9 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.01695/14.39, allocations: 7.435 MB / 6.495 GB, free: 158.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.03335/14.42, allocations: 7.327 MB / 6.502 GB, free: 158 MB / 0.948 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.00618/14.43, allocations: 2.021 MB / 6.504 GB, free: 157.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.02922/14.46, allocations: 15.97 MB / 6.52 GB, free: 157.3 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.888e-05/14.46, allocations: 9.75 kB / 6.52 GB, free: 157.3 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.008005/14.46, allocations: 4.573 MB / 6.525 GB, free: 157.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02894/14.49, allocations: 5.558 MB / 6.53 GB, free: 157.1 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0582/14.55, allocations: 25.43 MB / 6.555 GB, free: 152.8 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01738/14.57, allocations: 9.968 MB / 6.565 GB, free: 151.8 MB / 0.948 GB Notification: Performance of SimCode: time 8.52e-07/14.57, allocations: 0 / 6.565 GB, free: 151.8 MB / 0.948 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe 2>&1)