Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_11_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_11_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.639/2.639, allocations: 469.8 MB / 0.7424 GB, free: 7.508 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 65.88 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2569, allocations: 159.2 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003671/0.2606, allocations: 2.359 MB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.2621, allocations: 0.9894 MB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.968e-05/0.2622, allocations: 7.938 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.2624, allocations: 59.56 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.2625, allocations: 71.34 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.0004168/0.263, allocations: 168.6 kB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000273/0.2633, allocations: 298.8 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.2634, allocations: 32.62 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.2635, allocations: 107.5 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.2637, allocations: 111.5 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.2638, allocations: 24 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003339/0.2642, allocations: 119.8 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.05e-05/0.2642, allocations: 43.83 kB / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.2644, allocations: 115.5 kB / 1.068 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003583/0.2647, allocations: 315 kB / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2647, allocations: 0 / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.896e-06/0.2647, allocations: 0 / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.2648, allocations: 3.938 kB / 1.069 GB, free: 9.41 MB / 0.8262 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.0008994/0.2657, allocations: 0.5942 MB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.2657, allocations: 8.031 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.744e-05/0.2657, allocations: 46.73 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.155e-05/0.2658, allocations: 32.64 kB / 1.069 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003825/0.2662, allocations: 283 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.2662, allocations: 16.55 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.2663, allocations: 24.36 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.2667, allocations: 201.6 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.2667, allocations: 3.938 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.2667, allocations: 8 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2667, allocations: 4 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003554/0.2671, allocations: 107.8 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009595/0.2681, allocations: 0.8643 MB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000455/0.2686, allocations: 207.9 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.2688, allocations: 78.77 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.2688, allocations: 4 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003923/0.2692, allocations: 205.7 kB / 1.071 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=23): time 1.372e-06/0.2692, allocations: 0 / 1.071 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.000891/0.2701, allocations: 349.1 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.2702, allocations: 127.1 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.2705, allocations: 246.5 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.2705, allocations: 37.7 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.467e-05/0.2706, allocations: 144.6 kB / 1.072 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.337e-05/0.2707, allocations: 67.08 kB / 1.072 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.212e-05/0.2708, allocations: 70.06 kB / 1.072 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.2709, allocations: 346.8 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.2711, allocations: 80.75 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003228/0.2714, allocations: 251.2 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005371/0.272, allocations: 384.5 kB / 1.073 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.272, allocations: 4 kB / 1.073 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006766/0.2727, allocations: 398.6 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.2727, allocations: 37.7 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.2727, allocations: 8.781 kB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.2728, allocations: 8.25 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.273, allocations: 71.83 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.273, allocations: 23.94 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.2733, allocations: 39.73 kB / 1.074 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.2733, allocations: 20 kB / 1.074 GB, free: 3.59 MB / 0.8262 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.0001325/0.2735, allocations: 156 kB / 1.074 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.79e-05/0.2735, allocations: 35.61 kB / 1.074 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.869e-05/0.2736, allocations: 33.64 kB / 1.074 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.2736, allocations: 4 kB / 1.074 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.2736, allocations: 3.938 kB / 1.074 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2736, allocations: 0 / 1.074 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.2739, allocations: 261.5 kB / 1.074 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2739, allocations: 4 kB / 1.074 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.274, allocations: 15.98 kB / 1.074 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.274, allocations: 4 kB / 1.074 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.274, allocations: 11.92 kB / 1.074 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.274, allocations: 4 kB / 1.074 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2741, allocations: 3.938 kB / 1.074 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008092/0.2749, allocations: 420.9 kB / 1.075 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.163e-05/0.2749, allocations: 96.83 kB / 1.075 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.507e-05/0.275, allocations: 12.03 kB / 1.075 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.2751, allocations: 15.98 kB / 1.075 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/0.2752, allocations: 23.91 kB / 1.075 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.2752, allocations: 11.98 kB / 1.075 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001385/0.2754, allocations: 166 kB / 1.075 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2754, allocations: 4 kB / 1.075 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003461/0.2757, allocations: 83.92 kB / 1.075 GB, free: 2.148 MB / 0.8262 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.00144/0.2772, allocations: 1.014 MB / 1.076 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005651/0.2778, allocations: 307.4 kB / 1.077 GB, free: 0.793 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2778, allocations: 0 / 1.077 GB, free: 0.793 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.278, allocations: 99.89 kB / 1.077 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.2784, allocations: 65.7 kB / 1.077 GB, free: 0.6328 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003864/0.2822, allocations: 3.023 MB / 1.08 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.2827, allocations: 0.7407 MB / 1.08 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001253/0.2828, allocations: 46.94 kB / 1.08 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.388e-05/0.2829, allocations: 75.42 kB / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.2829, allocations: 0 / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.09/6.373, allocations: 6.463 MB / 1.087 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/17.26, allocations: 8.188 kB / 1.087 GB, free: 6.203 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.fmu > Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)