Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.30..T|solCol1.vol.30..T|solCol.heaGai.30..Q_flow|solCol1.heaGai.30..Q_flow|solCol.heaLos.QLos.30.|solCol1.heaLos.QLos.30.|difHeaGai.y|difHeaLos.y",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels") translateModel(Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.30..T|solCol1.vol.30..T|solCol.heaGai.30..Q_flow|solCol1.heaGai.30..Q_flow|solCol.heaLos.QLos.30.|solCol1.heaLos.QLos.30.|difHeaGai.y|difHeaLos.y",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels") [: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 9.1.1-maint.9.1.x/package.mo): time 2.076/2.076, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 181.3 kB / 487 MB, free: 5.387 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 221.3 MB / 0.7819 GB, free: 1.367 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 105.5 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.695e-06/7.725e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2958, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.234/5.53, allocations: 2.201 GB / 3.406 GB, free: 109.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/5.531, allocations: 95.77 kB / 3.406 GB, free: 109.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 15.04/20.57, allocations: 4.248 GB / 7.654 GB, free: 137.8 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.004544/20.57, allocations: 0.5976 MB / 7.655 GB, free: 137.7 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4528 * Number of variables: 4528 Notification: Performance of Generate backend data structure: time 0.07331/20.64, allocations: 18.41 MB / 7.673 GB, free: 131.2 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/20.65, allocations: 9.781 kB / 7.673 GB, free: 131.2 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03371/20.68, allocations: 4.223 MB / 7.677 GB, free: 130 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08631/20.77, allocations: 30.27 MB / 7.707 GB, free: 127.4 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001232/20.77, allocations: 0.5341 MB / 7.707 GB, free: 127.4 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008601/20.77, allocations: 0.9859 MB / 7.708 GB, free: 127.4 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05611/20.83, allocations: 20.16 MB / 7.728 GB, free: 127.4 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07575/20.91, allocations: 22.89 MB / 7.75 GB, free: 124.8 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00134/20.91, allocations: 69.7 kB / 7.75 GB, free: 124.8 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007975/20.92, allocations: 34.88 kB / 7.75 GB, free: 124.8 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008995/20.92, allocations: 0.9162 MB / 7.751 GB, free: 124.8 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1904/21.11, allocations: 97.35 MB / 7.846 GB, free: 82.51 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02738/21.14, allocations: 13.78 MB / 7.86 GB, free: 77.7 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01527/21.15, allocations: 7.848 MB / 7.867 GB, free: 72.09 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003387/21.15, allocations: 2.03 MB / 7.869 GB, free: 69.82 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01716/21.17, allocations: 7.351 MB / 7.877 GB, free: 63.96 MB / 1.198 GB Notification: Performance of pre-optimization done (n=1037): time 2.225e-05/21.17, allocations: 0 / 7.877 GB, free: 63.96 MB / 1.198 GB Notification: Performance of matching and sorting (n=1037): time 0.05181/21.22, allocations: 15.37 MB / 7.892 GB, free: 51.08 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002461/21.22, allocations: 419.7 kB / 7.892 GB, free: 50.6 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04231/21.27, allocations: 15.48 MB / 7.907 GB, free: 37.26 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.00428/21.27, allocations: 47.95 kB / 7.907 GB, free: 37.21 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.02337/21.29, allocations: 6.73 MB / 7.914 GB, free: 31.39 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.02074/21.31, allocations: 3.483 MB / 7.917 GB, free: 28.18 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002436/21.32, allocations: 0 / 7.917 GB, free: 28.18 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.001504/21.32, allocations: 0.8368 MB / 7.918 GB, free: 27.48 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01215/21.33, allocations: 6.334 MB / 7.924 GB, free: 21.9 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01585/21.35, allocations: 9.888 MB / 7.934 GB, free: 11.41 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04063/21.39, allocations: 11.73 MB / 7.945 GB, free: 2.348 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001327/21.39, allocations: 32 kB / 7.945 GB, free: 2.316 MB / 1.198 GB Notification: Performance of matching and sorting (n=1659) (initialization): time 0.08806/21.47, allocations: 22.18 MB / 7.967 GB, free: 2.207 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.6413/22.12, allocations: 69.08 MB / 8.034 GB, free: 178.4 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003625/22.12, allocations: 108.4 kB / 8.035 GB, free: 178.4 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002246/22.12, allocations: 188.2 kB / 8.035 GB, free: 178.4 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02005/22.14, allocations: 3.549 MB / 8.038 GB, free: 178.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003482/22.14, allocations: 241 kB / 8.038 GB, free: 178.4 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02737/22.16, allocations: 1.892 MB / 8.04 GB, free: 178.4 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004396/22.17, allocations: 0.631 MB / 8.041 GB, free: 178.4 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/22.17, allocations: 3.719 kB / 8.041 GB, free: 178.4 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06683/22.24, allocations: 19.34 MB / 8.06 GB, free: 178.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004348/22.24, allocations: 104.8 kB / 8.06 GB, free: 178.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002443/22.24, allocations: 193.3 kB / 8.06 GB, free: 178.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01991/22.26, allocations: 3.549 MB / 8.063 GB, free: 178.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003374/22.26, allocations: 244 kB / 8.064 GB, free: 178.1 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02393/22.28, allocations: 1.654 MB / 8.065 GB, free: 178.1 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00433/22.29, allocations: 0.6306 MB / 8.066 GB, free: 178.1 MB / 1.214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 484 * 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 (1659): * Single equations (assignments): 1659 * 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.006562/22.29, allocations: 474.4 kB / 8.066 GB, free: 178 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008962/22.3, allocations: 1.56 MB / 8.068 GB, free: 178 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06164/22.36, allocations: 17.47 MB / 8.085 GB, free: 177.5 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001575/22.36, allocations: 99.41 kB / 8.085 GB, free: 177.5 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.83e-05/22.36, allocations: 2.656 kB / 8.085 GB, free: 177.5 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04547/22.41, allocations: 14.05 MB / 8.099 GB, free: 177.2 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1121/22.52, allocations: 37.67 MB / 8.136 GB, free: 175.5 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.668e-05/22.52, allocations: 0 / 8.136 GB, free: 175.5 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01601/22.54, allocations: 2.477 MB / 8.138 GB, free: 175.5 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/22.54, allocations: 36.23 kB / 8.138 GB, free: 175.5 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002861/22.54, allocations: 223.2 kB / 8.138 GB, free: 175.5 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.812e-05/22.54, allocations: 32.47 kB / 8.138 GB, free: 175.5 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/22.54, allocations: 7.75 kB / 8.138 GB, free: 175.5 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05939/22.6, allocations: 25.17 MB / 8.163 GB, free: 173.4 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01872/22.62, allocations: 4.46 MB / 8.167 GB, free: 172.5 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008641/22.63, allocations: 64.11 kB / 8.167 GB, free: 172.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02446/22.65, allocations: 1.121 MB / 8.168 GB, free: 172.4 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003186/22.65, allocations: 0.521 MB / 8.169 GB, free: 172.4 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003983/22.66, allocations: 0.5322 MB / 8.169 GB, free: 172.4 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.02731/22.69, allocations: 11.93 MB / 8.181 GB, free: 172 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.05305/22.74, allocations: 10.41 MB / 8.191 GB, free: 170.9 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 60 (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,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,solCol1.vol[28].dynBal.U,solCol1.vol[29].dynBal.U,solCol1.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 (1062): * Single equations (assignments): 1054 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.007328/22.75, allocations: 1.572 MB / 8.193 GB, free: 170.7 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.04957/22.8, allocations: 24.06 MB / 8.216 GB, free: 170.4 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 3.067e-05/22.8, allocations: 21.08 kB / 8.216 GB, free: 170.4 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.01378/22.81, allocations: 6.673 MB / 8.223 GB, free: 170.4 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05437/22.86, allocations: 8.875 MB / 8.231 GB, free: 170.2 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1091/22.97, allocations: 39.63 MB / 8.27 GB, free: 163.4 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03213/23.01, allocations: 15.23 MB / 8.285 GB, free: 162 MB / 1.214 GB Notification: Performance of SimCode: time 1.583e-06/23.01, allocations: 0 / 8.285 GB, free: 162 MB / 1.214 GB Notification: Performance of Templates: time 1.808/24.81, allocations: 433.7 MB / 8.709 GB, free: 237.4 MB / 1.214 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Validation_FlatPlateNPanels.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches