Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.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.Examples.FlatPlateTotalArea,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|solCol1.vol.9..T|solCol1.vol.18..T|solCol1.vol.27..T|solCol.m_flow|solCol.m_flow_nominal|solCol1.m_flow|solCol1.m_flow_nominal",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|solCol1.vol.9..T|solCol1.vol.18..T|solCol1.vol.27..T|solCol.m_flow|solCol.m_flow_nominal|solCol1.m_flow|solCol1.m_flow_nominal",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea") [: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.039/2.039, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001308/0.001308, allocations: 177.2 kB / 490.8 MB, free: 1.918 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.467/1.467, allocations: 221.3 MB / 0.7863 GB, free: 13.71 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.000972/0.0009721, allocations: 86.61 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.477e-06/9.888e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2951, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.556/4.851, allocations: 2.199 GB / 3.411 GB, free: 103.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/4.851, allocations: 95.8 kB / 3.411 GB, free: 103.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 10.11/14.96, allocations: 2.888 GB / 6.299 GB, free: 148.5 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.002683/14.97, allocations: 401.1 kB / 6.3 GB, free: 148.5 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: 2975 * Number of variables: 2975 Notification: Performance of Generate backend data structure: time 0.04475/15.01, allocations: 12.25 MB / 6.312 GB, free: 144 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/15.01, allocations: 7.719 kB / 6.312 GB, free: 144 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02298/15.03, allocations: 3.313 MB / 6.315 GB, free: 143.1 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0537/15.09, allocations: 19 MB / 6.334 GB, free: 141.5 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000769/15.09, allocations: 367 kB / 6.334 GB, free: 141.5 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005292/15.09, allocations: 0.6459 MB / 6.335 GB, free: 141.5 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03083/15.12, allocations: 13.22 MB / 6.347 GB, free: 141.4 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04003/15.16, allocations: 14.75 MB / 6.362 GB, free: 139.8 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004269/15.16, allocations: 36.7 kB / 6.362 GB, free: 139.8 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002763/15.17, allocations: 23.84 kB / 6.362 GB, free: 139.8 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000409/15.17, allocations: 0.587 MB / 6.363 GB, free: 139.8 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.12/15.29, allocations: 62.79 MB / 6.424 GB, free: 116.4 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01757/15.31, allocations: 8.789 MB / 6.432 GB, free: 116.2 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01039/15.32, allocations: 5.068 MB / 6.437 GB, free: 116.1 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002981/15.32, allocations: 2.393 MB / 6.44 GB, free: 113.6 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01134/15.33, allocations: 5.184 MB / 6.445 GB, free: 113.4 MB / 1.198 GB Notification: Performance of pre-optimization done (n=706): time 1.478e-05/15.33, allocations: 1.188 kB / 6.445 GB, free: 113.4 MB / 1.198 GB Notification: Performance of matching and sorting (n=706): time 0.03094/15.36, allocations: 10.53 MB / 6.455 GB, free: 112.7 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/15.36, allocations: 361.6 kB / 6.455 GB, free: 112.3 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02/15.38, allocations: 9.858 MB / 6.465 GB, free: 110.4 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.002488/15.38, allocations: 34.36 kB / 6.465 GB, free: 110.4 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.01034/15.39, allocations: 4.36 MB / 6.469 GB, free: 107.4 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.01103/15.41, allocations: 2.363 MB / 6.472 GB, free: 105.6 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/15.41, allocations: 0 / 6.472 GB, free: 105.6 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0007064/15.41, allocations: 0.6561 MB / 6.472 GB, free: 105.1 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00772/15.41, allocations: 4.137 MB / 6.476 GB, free: 103.6 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009695/15.42, allocations: 6.362 MB / 6.483 GB, free: 99.32 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03318/15.46, allocations: 8.256 MB / 6.491 GB, free: 97.2 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001131/15.46, allocations: 17.88 kB / 6.491 GB, free: 97.2 MB / 1.198 GB Notification: Performance of matching and sorting (n=1099) (initialization): time 0.04689/15.5, allocations: 14.4 MB / 6.505 GB, free: 93.19 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.006263/15.51, allocations: 35.77 MB / 6.54 GB, free: 55.77 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002355/15.51, allocations: 66.09 kB / 6.54 GB, free: 55.77 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009667/15.51, allocations: 195.2 kB / 6.54 GB, free: 55.75 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01361/15.53, allocations: 2.368 MB / 6.542 GB, free: 55.68 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/15.53, allocations: 1.614 MB / 6.544 GB, free: 54.36 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0175/15.55, allocations: 1.281 MB / 6.545 GB, free: 53.88 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002655/15.55, allocations: 420.7 kB / 6.545 GB, free: 53.82 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/15.55, allocations: 4.219 kB / 6.545 GB, free: 53.82 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05082/15.6, allocations: 13.36 MB / 6.558 GB, free: 49.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001824/15.6, allocations: 64 kB / 6.559 GB, free: 49.43 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006672/15.6, allocations: 196.3 kB / 6.559 GB, free: 49.26 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01296/15.61, allocations: 2.372 MB / 6.561 GB, free: 47.34 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/15.61, allocations: 1.603 MB / 6.563 GB, free: 45.7 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01677/15.63, allocations: 1.116 MB / 6.564 GB, free: 44.78 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003041/15.63, allocations: 426.2 kB / 6.564 GB, free: 44.41 MB / 1.198 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 (1097): * Single equations (assignments): 1096 * 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.004882/15.64, allocations: 340.8 kB / 6.564 GB, free: 44.07 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005811/15.65, allocations: 1.03 MB / 6.565 GB, free: 43.03 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03917/15.68, allocations: 12.33 MB / 6.577 GB, free: 33.29 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.318e-05/15.68, allocations: 71.94 kB / 6.578 GB, free: 33.23 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/15.68, allocations: 7.656 kB / 6.578 GB, free: 33.22 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02694/15.71, allocations: 9.985 MB / 6.587 GB, free: 24.96 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06739/15.78, allocations: 25.72 MB / 6.612 GB, free: 4.832 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.279e-05/15.78, allocations: 15.42 kB / 6.612 GB, free: 4.82 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009544/15.79, allocations: 1.704 MB / 6.614 GB, free: 3.453 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005918/15.79, allocations: 119.3 kB / 6.614 GB, free: 3.355 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000852/15.79, allocations: 169 kB / 6.614 GB, free: 3.246 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00152/15.79, allocations: 1.52 MB / 6.616 GB, free: 1.664 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.679e-06/15.79, allocations: 15.94 kB / 6.616 GB, free: 1.648 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04097/15.83, allocations: 19.79 MB / 6.635 GB, free: 15.72 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009953/15.84, allocations: 2.971 MB / 6.638 GB, free: 13.21 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004167/15.85, allocations: 57.91 kB / 6.638 GB, free: 13.17 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01275/15.86, allocations: 0.6804 MB / 6.639 GB, free: 12.67 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001178/15.86, allocations: 405.7 kB / 6.639 GB, free: 12.43 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001584/15.86, allocations: 384.9 kB / 6.64 GB, free: 12.14 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.01523/15.88, allocations: 7.56 MB / 6.647 GB, free: 5.633 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.5673/16.45, allocations: 6.925 MB / 6.654 GB, free: 281 MB / 1.229 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 (732): * Single equations (assignments): 719 * 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.006062/16.45, allocations: 2.068 MB / 6.656 GB, free: 280.7 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.02912/16.48, allocations: 16.02 MB / 6.671 GB, free: 280.3 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.738e-05/16.48, allocations: 15.2 kB / 6.671 GB, free: 280.3 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.007643/16.49, allocations: 4.592 MB / 6.676 GB, free: 280.2 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02958/16.52, allocations: 5.593 MB / 6.681 GB, free: 280.1 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06096/16.58, allocations: 25.71 MB / 6.706 GB, free: 275.7 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01595/16.59, allocations: 9.998 MB / 6.716 GB, free: 274.7 MB / 1.229 GB Notification: Performance of SimCode: time 8.81e-07/16.59, allocations: 2.844 kB / 6.716 GB, free: 274.7 MB / 1.229 GB Notification: Performance of Templates: time 0.4486/17.04, allocations: 292.4 MB / 7.002 GB, free: 180.5 MB / 1.229 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches