Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.035/2.035, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001096/0.001096, allocations: 184.2 kB / 487 MB, free: 5.379 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.453/1.453, allocations: 221.3 MB / 0.7819 GB, free: 1.441 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.001106/0.001106, allocations: 101.4 kB / 0.9213 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.186e-05/1.188e-05, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2765, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7536/1.03, allocations: 153.3 MB / 1.355 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003141/1.031, allocations: 93.56 kB / 1.355 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01813/1.049, allocations: 5.17 MB / 1.36 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.178e-05/1.049, allocations: 4 kB / 1.36 GB, free: 15.18 MB / 0.8073 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.0009371/1.05, allocations: 0.5272 MB / 1.361 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/1.05, allocations: 8.031 kB / 1.361 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/1.05, allocations: 28.14 kB / 1.361 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/1.05, allocations: 301.4 kB / 1.361 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/1.05, allocations: 9.344 kB / 1.361 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.415e-05/1.051, allocations: 17.31 kB / 1.361 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001855/1.051, allocations: 61.69 kB / 1.361 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/1.051, allocations: 174.7 kB / 1.361 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/1.051, allocations: 4.562 kB / 1.361 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/1.051, allocations: 5.156 kB / 1.361 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/1.051, allocations: 4 kB / 1.361 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/1.052, allocations: 0.8551 MB / 1.362 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002671/1.052, allocations: 161.9 kB / 1.362 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.669e-05/1.052, allocations: 61.11 kB / 1.362 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/1.052, allocations: 8 kB / 1.362 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/1.053, allocations: 156.9 kB / 1.362 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=23): time 2.785e-06/1.053, allocations: 0 / 1.362 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23): time 0.0005452/1.053, allocations: 188.8 kB / 1.363 GB, free: 12.93 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/1.053, allocations: 123.7 kB / 1.363 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/1.054, allocations: 199.9 kB / 1.363 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/1.054, allocations: 31.16 kB / 1.363 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.477e-05/1.054, allocations: 116.9 kB / 1.363 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/1.054, allocations: 58.88 kB / 1.363 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.322e-05/1.054, allocations: 4 kB / 1.363 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.08e-05/1.054, allocations: 337.8 kB / 1.363 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/1.054, allocations: 56.69 kB / 1.363 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/1.054, allocations: 226.6 kB / 1.364 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/1.054, allocations: 85.53 kB / 1.364 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.054, allocations: 3.938 kB / 1.364 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004287/1.055, allocations: 275.2 kB / 1.364 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/1.055, allocations: 4.516 kB / 1.364 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/1.055, allocations: 8 kB / 1.364 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/1.055, allocations: 8 kB / 1.364 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/1.055, allocations: 73.53 kB / 1.364 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/1.055, allocations: 14.2 kB / 1.364 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/1.055, allocations: 43.39 kB / 1.364 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/1.055, allocations: 20.09 kB / 1.364 GB, free: 11.41 MB / 0.8073 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 0.0001031/1.055, allocations: 143.4 kB / 1.364 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.432e-05/1.055, allocations: 24.94 kB / 1.364 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.678e-05/1.055, allocations: 23.42 kB / 1.364 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/1.056, allocations: 3.906 kB / 1.364 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/1.056, allocations: 4.656 kB / 1.364 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/1.056, allocations: 1.219 kB / 1.364 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002777/1.056, allocations: 231.7 kB / 1.365 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/1.056, allocations: 8.766 kB / 1.365 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/1.056, allocations: 24.73 kB / 1.365 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/1.056, allocations: 4 kB / 1.365 GB, free: 11 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/1.056, allocations: 6.656 kB / 1.365 GB, free: 11 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.217e-06/1.056, allocations: 12.44 kB / 1.365 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.056, allocations: 0 / 1.365 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005505/1.057, allocations: 326.7 kB / 1.365 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.383e-05/1.057, allocations: 114.7 kB / 1.365 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/1.057, allocations: 5.828 kB / 1.365 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/1.057, allocations: 25.02 kB / 1.365 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.583e-05/1.057, allocations: 20.98 kB / 1.365 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/1.057, allocations: 11.14 kB / 1.365 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001145/1.057, allocations: 145.8 kB / 1.365 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0004689/1.058, allocations: 87.2 kB / 1.365 GB, free: 10.38 MB / 0.8073 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.0004547/1.058, allocations: 182.6 kB / 1.365 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000337/1.058, allocations: 210.2 kB / 1.366 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/1.058, allocations: 4 kB / 1.366 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000142/1.059, allocations: 83 kB / 1.366 GB, free: 9.992 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/1.059, allocations: 52.84 kB / 1.366 GB, free: 9.961 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/1.061, allocations: 0.5951 MB / 1.366 GB, free: 9.488 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/1.061, allocations: 0.7684 MB / 1.367 GB, free: 8.719 MB / 0.8073 GB Notification: Performance of SimCode: time 2.5e-07/1.061, allocations: 0 / 1.367 GB, free: 8.719 MB / 0.8073 GB Notification: Performance of Templates: time 0.007913/1.069, allocations: 3.751 MB / 1.371 GB, free: 5.137 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches