Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 2.025/2.025, allocations: 390.4 MB / 397.7 MB, free: 11.32 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.001008/0.001008, allocations: 183.8 kB / 490.8 MB, free: 1.941 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.34/1.34, allocations: 221.4 MB / 0.7863 GB, free: 13.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009458/0.0009458, allocations: 96.72 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.458e-06/9.488e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2496, allocations: 143 MB / 1.212 GB, free: 40.15 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.655/4.904, allocations: 2.201 GB / 3.413 GB, free: 102.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/4.905, allocations: 91.84 kB / 3.413 GB, free: 102.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 14.72/19.63, allocations: 4.248 GB / 7.661 GB, free: 146.2 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.003297/19.63, allocations: 0.6001 MB / 7.662 GB, free: 146.1 MB / 1.214 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.05766/19.69, allocations: 18.41 MB / 7.68 GB, free: 139.5 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/19.69, allocations: 11.12 kB / 7.68 GB, free: 139.5 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02711/19.71, allocations: 4.223 MB / 7.684 GB, free: 138.3 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08261/19.8, allocations: 30.26 MB / 7.713 GB, free: 135.8 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001196/19.8, allocations: 0.5329 MB / 7.714 GB, free: 135.8 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009412/19.81, allocations: 0.985 MB / 7.715 GB, free: 135.7 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0579/19.87, allocations: 20.16 MB / 7.734 GB, free: 135.7 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06987/19.93, allocations: 22.9 MB / 7.757 GB, free: 133.1 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001039/19.94, allocations: 62.3 kB / 7.757 GB, free: 133.1 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007014/19.94, allocations: 39.89 kB / 7.757 GB, free: 133.1 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008526/19.94, allocations: 0.913 MB / 7.758 GB, free: 133.1 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1915/20.14, allocations: 97.36 MB / 7.853 GB, free: 90.08 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03063/20.17, allocations: 13.77 MB / 7.866 GB, free: 85.25 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01761/20.18, allocations: 7.849 MB / 7.874 GB, free: 79.58 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003004/20.19, allocations: 2.03 MB / 7.876 GB, free: 77.32 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01689/20.2, allocations: 7.35 MB / 7.883 GB, free: 71.46 MB / 1.214 GB Notification: Performance of pre-optimization done (n=1037): time 1.784e-05/20.2, allocations: 0 / 7.883 GB, free: 71.46 MB / 1.214 GB Notification: Performance of matching and sorting (n=1037): time 0.05086/20.25, allocations: 15.38 MB / 7.898 GB, free: 58.57 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001794/20.25, allocations: 420.6 kB / 7.898 GB, free: 58.09 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04311/20.3, allocations: 15.48 MB / 7.914 GB, free: 44.75 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.004118/20.3, allocations: 41.7 kB / 7.914 GB, free: 44.71 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.02428/20.33, allocations: 6.728 MB / 7.92 GB, free: 38.89 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.02336/20.35, allocations: 3.491 MB / 7.924 GB, free: 35.67 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003702/20.35, allocations: 0 / 7.924 GB, free: 35.67 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.00213/20.36, allocations: 0.8378 MB / 7.924 GB, free: 34.98 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01348/20.37, allocations: 6.328 MB / 7.931 GB, free: 29.4 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0169/20.39, allocations: 9.89 MB / 7.94 GB, free: 18.91 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04026/20.43, allocations: 11.74 MB / 7.952 GB, free: 9.836 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001312/20.43, allocations: 28 kB / 7.952 GB, free: 9.809 MB / 1.214 GB Notification: Performance of matching and sorting (n=1659) (initialization): time 0.06899/20.5, allocations: 20.92 MB / 7.972 GB, free: 8.363 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.5723/21.07, allocations: 69.09 MB / 8.04 GB, free: 196.9 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003574/21.07, allocations: 106.8 kB / 8.04 GB, free: 196.9 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002091/21.07, allocations: 188.2 kB / 8.04 GB, free: 196.9 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01928/21.09, allocations: 3.542 MB / 8.043 GB, free: 196.9 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002762/21.09, allocations: 241.8 kB / 8.044 GB, free: 196.9 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02318/21.11, allocations: 1.9 MB / 8.046 GB, free: 196.9 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003582/21.12, allocations: 0.6294 MB / 8.046 GB, free: 196.9 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/21.12, allocations: 3.688 kB / 8.046 GB, free: 196.9 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05383/21.17, allocations: 19.34 MB / 8.065 GB, free: 196.7 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000278/21.17, allocations: 110.4 kB / 8.065 GB, free: 196.7 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001902/21.17, allocations: 185 kB / 8.065 GB, free: 196.7 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01821/21.19, allocations: 3.548 MB / 8.069 GB, free: 196.7 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002435/21.19, allocations: 246.2 kB / 8.069 GB, free: 196.7 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02359/21.21, allocations: 1.658 MB / 8.071 GB, free: 196.7 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004128/21.22, allocations: 0.624 MB / 8.071 GB, free: 196.7 MB / 1.229 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.005639/21.22, allocations: 474.9 kB / 8.072 GB, free: 196.6 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009802/21.23, allocations: 1.559 MB / 8.073 GB, free: 196.6 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06072/21.29, allocations: 17.46 MB / 8.09 GB, free: 196.1 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/21.29, allocations: 105.7 kB / 8.09 GB, free: 196.1 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.978e-05/21.29, allocations: 0 / 8.09 GB, free: 196.1 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0442/21.34, allocations: 14.06 MB / 8.104 GB, free: 195.8 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1039/21.44, allocations: 37.66 MB / 8.141 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.48e-05/21.44, allocations: 7.219 kB / 8.141 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0154/21.46, allocations: 2.475 MB / 8.143 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001932/21.46, allocations: 37.25 kB / 8.143 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003139/21.46, allocations: 221.2 kB / 8.144 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00015/21.46, allocations: 39.41 kB / 8.144 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/21.46, allocations: 9.156 kB / 8.144 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05876/21.52, allocations: 25.17 MB / 8.168 GB, free: 192 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01689/21.54, allocations: 4.457 MB / 8.172 GB, free: 191.1 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00826/21.54, allocations: 68.2 kB / 8.173 GB, free: 191.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02143/21.56, allocations: 1.122 MB / 8.174 GB, free: 191 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00287/21.57, allocations: 0.5215 MB / 8.174 GB, free: 191 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005135/21.57, allocations: 0.5389 MB / 8.175 GB, free: 191 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.02822/21.6, allocations: 11.92 MB / 8.186 GB, free: 190.6 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.05525/21.66, allocations: 10.4 MB / 8.196 GB, free: 189.5 MB / 1.229 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.007641/21.66, allocations: 1.567 MB / 8.198 GB, free: 189.3 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.04899/21.71, allocations: 24.06 MB / 8.222 GB, free: 189 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 3.07e-05/21.71, allocations: 17.58 kB / 8.222 GB, free: 189 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.01404/21.73, allocations: 6.677 MB / 8.228 GB, free: 189 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05148/21.78, allocations: 8.896 MB / 8.237 GB, free: 188.9 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1103/21.89, allocations: 39.62 MB / 8.275 GB, free: 182.1 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03585/21.93, allocations: 15.23 MB / 8.29 GB, free: 180.7 MB / 1.229 GB Notification: Performance of SimCode: time 7.71e-07/21.93, allocations: 0 / 8.29 GB, free: 180.7 MB / 1.229 GB Notification: Performance of Templates: time 1.723/23.65, allocations: 433.8 MB / 8.714 GB, free: 254 MB / 1.229 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Validation_FlatPlateNPanels.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches