Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.547/1.547, allocations: 289.8 MB / 297.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001267/0.001267, allocations: 184 kB / 366.3 MB, free: 1.938 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.1 MB / 0.6256 GB, free: 5.785 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008863/0.0008864, allocations: 96.84 kB / 0.7395 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.043e-06/7.063e-06, allocations: 0 / 0.859 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7002/0.7002, allocations: 116.3 MB / 0.9726 GB, free: 68.42 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2028/0.9031, allocations: 143 MB / 1.112 GB, free: 5.418 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.9034, allocations: 100.5 kB / 1.112 GB, free: 5.32 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01661/0.92, allocations: 5.049 MB / 1.117 GB, free: 264 kB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.9201, allocations: 4 kB / 1.117 GB, free: 260 kB / 0.7136 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.0008854/0.921, allocations: 0.5318 MB / 1.118 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.9211, allocations: 8.219 kB / 1.118 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.387e-05/0.9211, allocations: 23.72 kB / 1.118 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.9216, allocations: 301.8 kB / 1.118 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.9216, allocations: 4 kB / 1.118 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.489e-05/0.9217, allocations: 19.98 kB / 1.118 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001692/0.9219, allocations: 64.3 kB / 1.118 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.9221, allocations: 164.9 kB / 1.118 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.9222, allocations: 4 kB / 1.118 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.9222, allocations: 11.98 kB / 1.118 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.9222, allocations: 7.938 kB / 1.118 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.9233, allocations: 0.8455 MB / 1.119 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.9236, allocations: 167 kB / 1.119 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.9237, allocations: 62.67 kB / 1.119 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.9238, allocations: 8.031 kB / 1.119 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.924, allocations: 160.4 kB / 1.12 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=23): time 1.924e-06/0.924, allocations: 0 / 1.12 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of matching and sorting (n=23): time 0.0005064/0.9245, allocations: 193.4 kB / 1.12 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/0.9246, allocations: 118.8 kB / 1.12 GB, free: 13.33 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.9248, allocations: 204 kB / 1.12 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.9249, allocations: 37.7 kB / 1.12 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.766e-05/0.9249, allocations: 116.5 kB / 1.12 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.468e-05/0.925, allocations: 55.27 kB / 1.12 GB, free: 12.9 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/0.925, allocations: 0 / 1.12 GB, free: 12.9 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.9252, allocations: 342.8 kB / 1.121 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.9253, allocations: 48.81 kB / 1.121 GB, free: 12.51 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002764/0.9256, allocations: 227.9 kB / 1.121 GB, free: 12.2 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.9257, allocations: 77.12 kB / 1.121 GB, free: 12.13 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.9257, allocations: 4 kB / 1.121 GB, free: 12.12 MB / 0.7292 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004438/0.9262, allocations: 277.4 kB / 1.121 GB, free: 11.85 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.9262, allocations: 4 kB / 1.121 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.9262, allocations: 8 kB / 1.121 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.9263, allocations: 8 kB / 1.121 GB, free: 11.83 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.9265, allocations: 68.09 kB / 1.121 GB, free: 11.76 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.953e-05/0.9265, allocations: 19.92 kB / 1.121 GB, free: 11.74 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.9268, allocations: 47.58 kB / 1.121 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.56e-05/0.9268, allocations: 16 kB / 1.121 GB, free: 11.68 MB / 0.7292 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.0001184/0.9269, allocations: 135.5 kB / 1.122 GB, free: 11.54 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.838e-05/0.927, allocations: 27.7 kB / 1.122 GB, free: 11.52 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.037e-05/0.927, allocations: 17.72 kB / 1.122 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.927, allocations: 5.375 kB / 1.122 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.9271, allocations: 11.94 kB / 1.122 GB, free: 11.49 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.9271, allocations: 3.984 kB / 1.122 GB, free: 11.48 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.9273, allocations: 237.9 kB / 1.122 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.9274, allocations: 0 / 1.122 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.9275, allocations: 35.97 kB / 1.122 GB, free: 11.18 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.9275, allocations: 0 / 1.122 GB, free: 11.18 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.9275, allocations: 7.984 kB / 1.122 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.9275, allocations: 4 kB / 1.122 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.9276, allocations: 0 / 1.122 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005751/0.9281, allocations: 332.3 kB / 1.122 GB, free: 10.81 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.428e-05/0.9282, allocations: 104.7 kB / 1.122 GB, free: 10.69 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.962e-05/0.9283, allocations: 4 kB / 1.122 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.9285, allocations: 32.62 kB / 1.122 GB, free: 10.65 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.406e-05/0.9286, allocations: 19.97 kB / 1.122 GB, free: 10.63 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.9286, allocations: 11.98 kB / 1.122 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001194/0.9287, allocations: 148.5 kB / 1.122 GB, free: 10.48 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004127/0.9291, allocations: 83.88 kB / 1.123 GB, free: 10.39 MB / 0.7292 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.0004937/0.9296, allocations: 181.3 kB / 1.123 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003302/0.93, allocations: 206.8 kB / 1.123 GB, free: 10 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.93, allocations: 1.25 kB / 1.123 GB, free: 10 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.9301, allocations: 87.92 kB / 1.123 GB, free: 9.918 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.9305, allocations: 53.44 kB / 1.123 GB, free: 9.867 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.9319, allocations: 0.5868 MB / 1.124 GB, free: 9.254 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004034/0.9323, allocations: 0.7665 MB / 1.124 GB, free: 8.461 MB / 0.7292 GB Notification: Performance of SimCode: time 2.6e-07/0.9323, allocations: 0 / 1.124 GB, free: 8.461 MB / 0.7292 GB Notification: Performance of Templates: time 0.008209/0.9406, allocations: 3.766 MB / 1.128 GB, free: 4.754 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)