Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 117.2 kB / 16.37 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.001201, allocations: 193.2 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.45/2.45, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 55.28 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.255, allocations: 153 MB / 1.027 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003431/0.2585, allocations: 2.362 MB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001354/0.2599, allocations: 1.002 MB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.658e-05/0.26, allocations: 7.938 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.2602, allocations: 55.62 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.2604, allocations: 79.28 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-109:20:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.temperatureDrop' contains a call to impure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.exchangeValues'. Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.2608, allocations: 155.6 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002692/0.2611, allocations: 294.7 kB / 1.031 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.2612, allocations: 44.31 kB / 1.031 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.2613, allocations: 103.6 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.2615, allocations: 115.4 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.124e-05/0.2615, allocations: 16 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.2618, allocations: 119.9 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.658e-05/0.2618, allocations: 51.83 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.2619, allocations: 115.3 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003493/0.2623, allocations: 315 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2623, allocations: 4 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2623, allocations: 0 / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.2623, allocations: 0 / 1.031 GB, free: 13.21 MB / 0.8106 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.0008966/0.2632, allocations: 0.5865 MB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.2633, allocations: 16.03 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.091e-05/0.2634, allocations: 28.64 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.2638, allocations: 291 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.2638, allocations: 16.59 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.198e-05/0.2639, allocations: 16.38 kB / 1.032 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.2643, allocations: 210 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.2643, allocations: 0 / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.2643, allocations: 4 kB / 1.033 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.2643, allocations: 4 kB / 1.033 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.2647, allocations: 111.8 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009393/0.2656, allocations: 0.8721 MB / 1.034 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004542/0.2661, allocations: 207.8 kB / 1.034 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.2663, allocations: 78.58 kB / 1.034 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.2663, allocations: 7.984 kB / 1.034 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003812/0.2667, allocations: 207.2 kB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.2667, allocations: 0 / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.0008357/0.2676, allocations: 353.1 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/0.2676, allocations: 114.8 kB / 1.034 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002119/0.2678, allocations: 250.4 kB / 1.035 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.2679, allocations: 41.7 kB / 1.035 GB, free: 9.555 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.406e-05/0.268, allocations: 144.6 kB / 1.035 GB, free: 9.41 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.998e-05/0.268, allocations: 55.27 kB / 1.035 GB, free: 9.355 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.07e-05/0.2681, allocations: 74.06 kB / 1.035 GB, free: 9.273 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2682, allocations: 334.8 kB / 1.035 GB, free: 8.938 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.2685, allocations: 81 kB / 1.035 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003352/0.2688, allocations: 263.1 kB / 1.036 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006175/0.2694, allocations: 384.5 kB / 1.036 GB, free: 8.055 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2694, allocations: 4 kB / 1.036 GB, free: 8.051 MB / 0.8106 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007223/0.2702, allocations: 402.7 kB / 1.036 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.2702, allocations: 37.7 kB / 1.036 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.2702, allocations: 4 kB / 1.036 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.2703, allocations: 12 kB / 1.036 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2705, allocations: 59.89 kB / 1.036 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.2705, allocations: 15.88 kB / 1.037 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.2707, allocations: 55.98 kB / 1.037 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.2708, allocations: 20 kB / 1.037 GB, free: 7.438 MB / 0.8106 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 (TBouSte.QAve_flow,$PRE.TBouSte.QAve_flow,TBouSte.UOld,$PRE.TBouSte.UOld,TBouSte.port.T,$PRE.TBouSte.port.T,TBouSte.iSam,$PRE.TBouSte.iSam,$whenCondition4,TBouCon.QAve_flow,$PRE.TBouCon.QAve_flow,TBouCon.UOld,$PRE.TBouCon.UOld,TBouCon.port.T,$PRE.TBouCon.port.T,TBouCon.iSam,$PRE.TBouCon.iSam,$whenCondition3,TBouPul.QAve_flow,$PRE.TBouPul.QAve_flow,TBouPul.UOld,$PRE.TBouPul.UOld,TBouPul.port.T,$PRE.TBouPul.port.T,TBouPul.iSam,$PRE.TBouPul.iSam,$whenCondition1,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001388/0.2709, allocations: 167.8 kB / 1.037 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.271, allocations: 23.72 kB / 1.037 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.819e-05/0.271, allocations: 21.7 kB / 1.037 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.271, allocations: 4 kB / 1.037 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.271, allocations: 7.938 kB / 1.037 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2711, allocations: 4 kB / 1.037 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002624/0.2713, allocations: 265.7 kB / 1.037 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2713, allocations: 0 / 1.037 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.2715, allocations: 23.98 kB / 1.037 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2715, allocations: 0 / 1.037 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.2715, allocations: 11.92 kB / 1.037 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.2715, allocations: 3.938 kB / 1.037 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.2715, allocations: 7.938 kB / 1.037 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000811/0.2723, allocations: 413.4 kB / 1.037 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.142e-05/0.2724, allocations: 96.83 kB / 1.038 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.2725, allocations: 12.03 kB / 1.038 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.2726, allocations: 15.98 kB / 1.038 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.865e-05/0.2727, allocations: 31.91 kB / 1.038 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.2727, allocations: 15.92 kB / 1.038 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000136/0.2729, allocations: 166 kB / 1.038 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2729, allocations: 0 / 1.038 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003896/0.2733, allocations: 83.92 kB / 1.038 GB, free: 5.996 MB / 0.8106 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002905/0.2736, allocations: 167 kB / 1.038 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005646/0.2741, allocations: 304.1 kB / 1.038 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2742, allocations: 0 / 1.038 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.2744, allocations: 103.9 kB / 1.038 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.2748, allocations: 65.77 kB / 1.039 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.2759, allocations: 0.6131 MB / 1.039 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.2761, allocations: 0.7368 MB / 1.04 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001162/0.2762, allocations: 42.95 kB / 1.04 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.003e-05/0.2763, allocations: 35.42 kB / 1.04 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.2763, allocations: 0 / 1.04 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of Templates: time 0.007647/0.284, allocations: 3.96 MB / 1.044 GB, free: 15.99 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)