Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") [: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 7.0.3-maint.7.0.x/package.mo): time 1.206/1.206, allocations: 249.4 MB / 256.7 MB, free: 7.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009232/0.0009232, allocations: 184.1 kB / 316 MB, free: 3.621 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.053/1.053, allocations: 205.2 MB / 0.5667 GB, free: 15.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007879/0.0007879, allocations: 91.27 kB / 0.671 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.353e-06/7.394e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1442, allocations: 106.3 MB / 0.8846 GB, free: 12.7 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4238/0.5681, allocations: 136.8 MB / 1.018 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/0.5683, allocations: 90.25 kB / 1.018 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01482/0.5831, allocations: 5.043 MB / 1.023 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.5832, allocations: 8 kB / 1.023 GB, free: 13.62 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0007555/0.5839, allocations: 0.5289 MB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.584, allocations: 8.031 kB / 1.024 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.967e-05/0.5841, allocations: 27.72 kB / 1.024 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.5845, allocations: 299.2 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.5845, allocations: 11.88 kB / 1.024 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.5845, allocations: 12 kB / 1.024 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001664/0.5847, allocations: 65.25 kB / 1.024 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002496/0.585, allocations: 167.3 kB / 1.024 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.585, allocations: 0 / 1.024 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.585, allocations: 3.562 kB / 1.024 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.585, allocations: 8 kB / 1.024 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009865/0.586, allocations: 0.8558 MB / 1.025 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.5863, allocations: 166.6 kB / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.5864, allocations: 55.73 kB / 1.025 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.5864, allocations: 7.938 kB / 1.025 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.5866, allocations: 166.5 kB / 1.026 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=23): time 1.392e-06/0.5866, allocations: 4 kB / 1.026 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=23): time 0.0004724/0.5871, allocations: 192 kB / 1.026 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.5872, allocations: 114.3 kB / 1.026 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.5874, allocations: 203.4 kB / 1.026 GB, free: 10.8 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.5874, allocations: 37.64 kB / 1.026 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.753e-05/0.5875, allocations: 111.8 kB / 1.026 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.06e-05/0.5875, allocations: 70.83 kB / 1.026 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.016e-05/0.5875, allocations: 0 / 1.026 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5877, allocations: 340.7 kB / 1.027 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.152e-05/0.5878, allocations: 51.44 kB / 1.027 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.588, allocations: 224.2 kB / 1.027 GB, free: 9.965 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.5881, allocations: 80.97 kB / 1.027 GB, free: 9.906 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5881, allocations: 4 kB / 1.027 GB, free: 9.902 MB / 0.6511 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0003948/0.5885, allocations: 273.6 kB / 1.027 GB, free: 9.668 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.5885, allocations: 8 kB / 1.027 GB, free: 9.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.5885, allocations: 8.766 kB / 1.027 GB, free: 9.652 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.5886, allocations: 12.06 kB / 1.027 GB, free: 9.641 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.5888, allocations: 67.84 kB / 1.027 GB, free: 9.574 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.5888, allocations: 16.16 kB / 1.027 GB, free: 9.559 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.5891, allocations: 39.42 kB / 1.027 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.5891, allocations: 16 kB / 1.027 GB, free: 9.508 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.TBouSte.QAve_flow,TBouSte.QAve_flow,$PRE.TBouSte.UOld,TBouSte.UOld,$PRE.TBouSte.port.T,TBouSte.port.T,$PRE.TBouSte.iSam,TBouSte.iSam,$whenCondition4,$PRE.TBouCon.QAve_flow,TBouCon.QAve_flow,$PRE.TBouCon.UOld,TBouCon.UOld,$PRE.TBouCon.port.T,TBouCon.port.T,$PRE.TBouCon.iSam,TBouCon.iSam,$whenCondition3,$PRE.TBouPul.QAve_flow,TBouPul.QAve_flow,$PRE.TBouPul.UOld,TBouPul.UOld,$PRE.TBouPul.port.T,TBouPul.port.T,$PRE.TBouPul.iSam,TBouPul.iSam,$whenCondition1,$whenCondition2,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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 9.879e-05/0.5892, allocations: 142 kB / 1.027 GB, free: 9.371 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.495e-05/0.5893, allocations: 27.62 kB / 1.027 GB, free: 9.344 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.388e-05/0.5893, allocations: 25.02 kB / 1.027 GB, free: 9.332 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.5893, allocations: 4 kB / 1.028 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5893, allocations: 0 / 1.028 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.5893, allocations: 0 / 1.028 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002286/0.5896, allocations: 249.4 kB / 1.028 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.5896, allocations: 0 / 1.028 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.5897, allocations: 23.98 kB / 1.028 GB, free: 9.051 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.5897, allocations: 4 kB / 1.028 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.5898, allocations: 11.23 kB / 1.028 GB, free: 9.039 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.5898, allocations: 3.906 kB / 1.028 GB, free: 9.035 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5898, allocations: 0 / 1.028 GB, free: 9.035 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005132/0.5903, allocations: 335 kB / 1.028 GB, free: 8.742 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.5904, allocations: 100.9 kB / 1.028 GB, free: 8.625 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.5904, allocations: 11.12 kB / 1.028 GB, free: 8.617 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.5906, allocations: 19.98 kB / 1.028 GB, free: 8.598 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.393e-05/0.5907, allocations: 31.06 kB / 1.028 GB, free: 8.574 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.5907, allocations: 8 kB / 1.028 GB, free: 8.566 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001013/0.5908, allocations: 151.8 kB / 1.028 GB, free: 8.441 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003517/0.5912, allocations: 83.92 kB / 1.028 GB, free: 8.359 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0003193/0.5915, allocations: 187.3 kB / 1.029 GB, free: 8.176 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002897/0.5918, allocations: 204.1 kB / 1.029 GB, free: 8.012 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.5918, allocations: 3.938 kB / 1.029 GB, free: 8.008 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.5919, allocations: 83.48 kB / 1.029 GB, free: 7.949 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.5922, allocations: 46.84 kB / 1.029 GB, free: 7.914 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.5934, allocations: 0.5929 MB / 1.03 GB, free: 7.344 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003274/0.5937, allocations: 0.7665 MB / 1.03 GB, free: 6.551 MB / 0.6511 GB Notification: Performance of SimCode: time 2.61e-07/0.5937, allocations: 0 / 1.03 GB, free: 6.551 MB / 0.6511 GB Notification: Performance of Templates: time 0.006931/0.6007, allocations: 3.764 MB / 1.034 GB, free: 2.867 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches