Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Validation_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.376/2.376, allocations: 284.8 MB / 292.1 MB, free: 10.81 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.001602/0.001602, allocations: 177.3 kB / 360.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.912/1.912, allocations: 205.1 MB / 0.6187 GB, free: 13.23 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001255/0.001254, allocations: 86.98 kB / 0.7317 GB, free: 45.15 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2684/0.2697, allocations: 121.4 MB / 0.8502 GB, free: 3.969 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6411/0.9109, allocations: 115.2 MB / 0.9627 GB, free: 78.5 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.756/6.667, allocations: 2.357 GB / 3.32 GB, free: 32.45 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/6.667, allocations: 91.08 kB / 3.32 GB, free: 32.41 MB / 0.9323 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.52/17.19, allocations: 2.107 GB / 5.427 GB, free: 81.48 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/17.19, allocations: 8.5 kB / 5.427 GB, free: 81.48 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02066/17.21, allocations: 2.149 MB / 5.429 GB, free: 79.31 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06124/17.27, allocations: 14.93 MB / 5.444 GB, free: 64.36 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006591/17.27, allocations: 280 kB / 5.444 GB, free: 64.09 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004423/17.27, allocations: 0.5077 MB / 5.445 GB, free: 63.58 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03694/17.31, allocations: 10.52 MB / 5.455 GB, free: 53.05 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04742/17.36, allocations: 11.72 MB / 5.466 GB, free: 40.88 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005902/17.36, allocations: 31.62 kB / 5.466 GB, free: 40.84 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004087/17.36, allocations: 20 kB / 5.466 GB, free: 40.82 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004664/17.36, allocations: 480.9 kB / 5.467 GB, free: 40.35 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9085/18.27, allocations: 49.44 MB / 5.515 GB, free: 213.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02175/18.29, allocations: 7.019 MB / 5.522 GB, free: 213.1 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01191/18.31, allocations: 4.024 MB / 5.526 GB, free: 213 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002961/18.31, allocations: 1.501 MB / 5.527 GB, free: 211.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0129/18.32, allocations: 3.832 MB / 5.531 GB, free: 211.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=553): time 1.119e-05/18.32, allocations: 0 / 5.531 GB, free: 211.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=553): time 0.03906/18.36, allocations: 7.938 MB / 5.539 GB, free: 211.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001752/18.36, allocations: 343.7 kB / 5.539 GB, free: 210.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02473/18.39, allocations: 7.881 MB / 5.547 GB, free: 210.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.002125/18.39, allocations: 36.05 kB / 5.547 GB, free: 210.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.01115/18.4, allocations: 3.443 MB / 5.55 GB, free: 209.4 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.01141/18.41, allocations: 1.86 MB / 5.552 GB, free: 208.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001934/18.41, allocations: 3.188 kB / 5.552 GB, free: 208.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.001135/18.41, allocations: 0.5777 MB / 5.553 GB, free: 208.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01035/18.43, allocations: 3.251 MB / 5.556 GB, free: 208.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01278/18.44, allocations: 5.076 MB / 5.561 GB, free: 206.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03735/18.48, allocations: 5.974 MB / 5.567 GB, free: 206 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-05/18.48, allocations: 14.91 kB / 5.567 GB, free: 206 MB / 0.948 GB Notification: Performance of matching and sorting (n=866) (initialization): time 0.05814/18.53, allocations: 10.72 MB / 5.577 GB, free: 205.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.006201/18.54, allocations: 27.45 MB / 5.604 GB, free: 176.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000261/18.54, allocations: 51.81 kB / 5.604 GB, free: 176.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001997/18.54, allocations: 97.91 kB / 5.604 GB, free: 176.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01822/18.56, allocations: 1.83 MB / 5.606 GB, free: 176.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002102/18.56, allocations: 127 kB / 5.606 GB, free: 176.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01916/18.58, allocations: 0.9663 MB / 5.607 GB, free: 176.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002489/18.58, allocations: 336.4 kB / 5.607 GB, free: 176.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/18.58, allocations: 3.969 kB / 5.607 GB, free: 176.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05441/18.64, allocations: 9.891 MB / 5.617 GB, free: 176.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002553/18.64, allocations: 54.78 kB / 5.617 GB, free: 176.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001593/18.64, allocations: 97.16 kB / 5.617 GB, free: 176.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01823/18.65, allocations: 1.829 MB / 5.619 GB, free: 176.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001917/18.65, allocations: 123.7 kB / 5.619 GB, free: 176.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01824/18.67, allocations: 0.8661 MB / 5.62 GB, free: 176.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002592/18.68, allocations: 337.9 kB / 5.62 GB, free: 176.1 MB / 0.948 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.004378/18.68, allocations: 287 kB / 5.62 GB, free: 175.9 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004726/18.68, allocations: 0.8076 MB / 5.621 GB, free: 175.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04535/18.73, allocations: 9.116 MB / 5.63 GB, free: 175.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-05/18.73, allocations: 61.38 kB / 5.63 GB, free: 175.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.97e-05/18.73, allocations: 0 / 5.63 GB, free: 175.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04382/18.77, allocations: 7.292 MB / 5.637 GB, free: 175 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07774/18.85, allocations: 19.44 MB / 5.656 GB, free: 173.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.807e-05/18.85, allocations: 6.828 kB / 5.656 GB, free: 173.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01525/18.87, allocations: 1.298 MB / 5.658 GB, free: 173.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/18.87, allocations: 19.22 kB / 5.658 GB, free: 173.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001714/18.87, allocations: 127.1 kB / 5.658 GB, free: 173.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.513e-05/18.87, allocations: 22.41 kB / 5.658 GB, free: 173.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/18.87, allocations: 0 / 5.658 GB, free: 173.9 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05053/18.92, allocations: 13.07 MB / 5.67 GB, free: 172.8 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0638/18.98, allocations: 18.25 MB / 5.688 GB, free: 171.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01077/18.99, allocations: 2.36 MB / 5.691 GB, free: 170.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005067/19, allocations: 36.98 kB / 5.691 GB, free: 170.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01758/19.02, allocations: 0.5923 MB / 5.691 GB, free: 170.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001798/19.02, allocations: 286.5 kB / 5.692 GB, free: 170.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001541/19.02, allocations: 291.8 kB / 5.692 GB, free: 170.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.01731/19.04, allocations: 6.041 MB / 5.698 GB, free: 170.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.03209/19.07, allocations: 5.581 MB / 5.703 GB, free: 169.5 MB / 0.948 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.005314/19.08, allocations: 1.15 MB / 5.704 GB, free: 169.4 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.03656/19.11, allocations: 12.43 MB / 5.716 GB, free: 169.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-05/19.11, allocations: 11.56 kB / 5.716 GB, free: 169.2 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.01035/19.12, allocations: 3.516 MB / 5.72 GB, free: 169.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04374/19.17, allocations: 4.541 MB / 5.724 GB, free: 168.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07803/19.24, allocations: 19.96 MB / 5.744 GB, free: 157.5 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02567/19.27, allocations: 8.155 MB / 5.752 GB, free: 151.5 MB / 0.948 GB Notification: Performance of SimCode: time 2.154e-06/19.27, allocations: 0 / 5.752 GB, free: 151.5 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Validation_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Validation_FlatPlate.fmu > Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe 2>&1)