Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|solCol.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|solCol.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate") [: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.139/2.139, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001697/0.001697, allocations: 175.6 kB / 490.8 MB, free: 1.957 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.461/1.461, allocations: 221.3 MB / 0.7863 GB, free: 13.68 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.001023/0.001023, allocations: 95.8 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.224e-06/7.234e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2928, allocations: 143 MB / 1.212 GB, free: 40.15 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.513/4.805, allocations: 2.12 GB / 3.331 GB, free: 210 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/4.806, allocations: 91.94 kB / 3.331 GB, free: 209.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 5.44/10.25, allocations: 1.871 GB / 5.202 GB, free: 92.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0008465/10.25, allocations: 135.9 kB / 5.202 GB, free: 92.37 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 993 * Number of variables: 993 Notification: Performance of Generate backend data structure: time 0.01579/10.26, allocations: 4.889 MB / 5.207 GB, free: 87.42 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/10.26, allocations: 8.031 kB / 5.207 GB, free: 87.41 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01213/10.27, allocations: 1.667 MB / 5.209 GB, free: 85.73 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0359/10.31, allocations: 16.97 MB / 5.225 GB, free: 68.68 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/10.31, allocations: 124 kB / 5.226 GB, free: 68.55 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001794/10.31, allocations: 223.9 kB / 5.226 GB, free: 68.34 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0105/10.32, allocations: 4.595 MB / 5.23 GB, free: 63.74 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/10.34, allocations: 4.765 MB / 5.235 GB, free: 58.82 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001353/10.34, allocations: 7.938 kB / 5.235 GB, free: 58.81 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009428/10.34, allocations: 8 kB / 5.235 GB, free: 58.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/10.34, allocations: 159.4 kB / 5.235 GB, free: 58.64 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03018/10.37, allocations: 19.32 MB / 5.254 GB, free: 38.84 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004121/10.37, allocations: 3.186 MB / 5.257 GB, free: 35.66 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001904/10.37, allocations: 1.671 MB / 5.259 GB, free: 33.98 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002343/10.38, allocations: 3.354 MB / 5.262 GB, free: 29.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002711/10.38, allocations: 1.894 MB / 5.264 GB, free: 27.96 MB / 1.151 GB Notification: Performance of pre-optimization done (n=285): time 5.039e-06/10.38, allocations: 7.938 kB / 5.264 GB, free: 27.95 MB / 1.151 GB Notification: Performance of matching and sorting (n=285): time 0.01482/10.39, allocations: 4.605 MB / 5.268 GB, free: 23.27 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.95e-05/10.39, allocations: 287.3 kB / 5.269 GB, free: 22.93 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00441/10.4, allocations: 2.966 MB / 5.271 GB, free: 19.96 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0005642/10.4, allocations: 29.7 kB / 5.272 GB, free: 19.93 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001402/10.4, allocations: 1.38 MB / 5.273 GB, free: 18.52 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001728/10.4, allocations: 0.9392 MB / 5.274 GB, free: 17.57 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002013/10.4, allocations: 3.938 kB / 5.274 GB, free: 17.57 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000148/10.4, allocations: 424.2 kB / 5.274 GB, free: 17.14 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001871/10.4, allocations: 1.392 MB / 5.276 GB, free: 15.75 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002054/10.41, allocations: 2.021 MB / 5.278 GB, free: 13.49 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01426/10.42, allocations: 3.102 MB / 5.281 GB, free: 10.37 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.758e-05/10.42, allocations: 4 kB / 5.281 GB, free: 10.36 MB / 1.151 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.02022/10.44, allocations: 5.392 MB / 5.286 GB, free: 4.926 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.477/10.92, allocations: 6.44 MB / 5.292 GB, free: 341.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.009e-05/10.92, allocations: 19.72 kB / 5.292 GB, free: 341.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000781/10.92, allocations: 115.4 kB / 5.292 GB, free: 341.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004969/10.92, allocations: 0.8292 MB / 5.293 GB, free: 341.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001977/10.93, allocations: 2.093 MB / 5.295 GB, free: 339.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005335/10.93, allocations: 440.4 kB / 5.296 GB, free: 339.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006516/10.93, allocations: 202.1 kB / 5.296 GB, free: 339.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/10.93, allocations: 3.688 kB / 5.296 GB, free: 339.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01803/10.95, allocations: 4.921 MB / 5.301 GB, free: 339.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.352e-05/10.95, allocations: 15.09 kB / 5.301 GB, free: 339.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/10.95, allocations: 110.1 kB / 5.301 GB, free: 339.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00397/10.95, allocations: 0.8186 MB / 5.301 GB, free: 339.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00164/10.96, allocations: 1.508 MB / 5.303 GB, free: 338 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005347/10.96, allocations: 404.8 kB / 5.303 GB, free: 338 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008356/10.96, allocations: 200.4 kB / 5.303 GB, free: 338 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (379): * Single equations (assignments): 377 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.001561/10.96, allocations: 172 kB / 5.304 GB, free: 337.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002716/10.97, allocations: 438.6 kB / 5.304 GB, free: 337.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0194/10.99, allocations: 6.171 MB / 5.31 GB, free: 337.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.274e-05/10.99, allocations: 36.41 kB / 5.31 GB, free: 337.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.799e-05/10.99, allocations: 0 / 5.31 GB, free: 337.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01372/11, allocations: 4.657 MB / 5.315 GB, free: 337.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02584/11.03, allocations: 10.02 MB / 5.324 GB, free: 336.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/11.03, allocations: 3.281 kB / 5.324 GB, free: 336.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003607/11.03, allocations: 0.62 MB / 5.325 GB, free: 336.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/11.03, allocations: 496.1 kB / 5.326 GB, free: 336.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004157/11.03, allocations: 67.67 kB / 5.326 GB, free: 336.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005877/11.04, allocations: 7.676 MB / 5.333 GB, free: 330.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/11.04, allocations: 0.8438 kB / 5.333 GB, free: 330.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0211/11.06, allocations: 7.449 MB / 5.34 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003745/11.06, allocations: 1.128 MB / 5.341 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001692/11.06, allocations: 10.56 kB / 5.341 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004741/11.07, allocations: 277.7 kB / 5.342 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004316/11.07, allocations: 165.6 kB / 5.342 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00051/11.07, allocations: 134.2 kB / 5.342 GB, free: 329.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.005075/11.07, allocations: 2.288 MB / 5.344 GB, free: 329.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0121/11.09, allocations: 2.689 MB / 5.347 GB, free: 329 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (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) * 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 (276): * Single equations (assignments): 259 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.006485/11.09, allocations: 1.881 MB / 5.349 GB, free: 328.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01199/11.11, allocations: 5.867 MB / 5.354 GB, free: 328.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/11.11, allocations: 7.234 kB / 5.354 GB, free: 328.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004061/11.11, allocations: 2.027 MB / 5.356 GB, free: 328.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00932/11.12, allocations: 1.634 MB / 5.358 GB, free: 328.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05141/11.17, allocations: 22.16 MB / 5.38 GB, free: 326.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005542/11.18, allocations: 3.765 MB / 5.383 GB, free: 326.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.513e-06/11.18, allocations: 0 / 5.383 GB, free: 326.1 MB / 1.151 GB Notification: Performance of Templates: time 0.1629/11.34, allocations: 111.4 MB / 5.492 GB, free: 315.3 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Examples_FlatPlate.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches