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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_9_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.005036/0.005036, allocations: 102.8 kB / 15.73 MB, free: 5.992 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.001056/0.001056, allocations: 193.2 kB / 16.67 MB, free: 5.914 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.285/2.285, allocations: 390.3 MB / 0.6648 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 64.05 kB / 0.9504 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9557/0.957, allocations: 140.4 MB / 1.087 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.004047/0.9611, allocations: 2.332 MB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001961/0.9631, allocations: 1.016 MB / 1.091 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.9632, allocations: 8.594 kB / 1.091 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.9635, allocations: 46.28 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.9637, allocations: 79.94 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.0006744/0.9644, allocations: 165.3 kB / 1.091 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004728/0.9649, allocations: 293.7 kB / 1.091 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.9651, allocations: 33.53 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.9653, allocations: 109.7 kB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.9655, allocations: 113.8 kB / 1.092 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.191e-05/0.9655, allocations: 17.56 kB / 1.092 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003855/0.9659, allocations: 114.5 kB / 1.092 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.942e-05/0.966, allocations: 48.3 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.9662, allocations: 117.9 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000547/0.9667, allocations: 315.1 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.9667, allocations: 1.672 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9667, allocations: 0 / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.9667, allocations: 0 / 1.092 GB, free: 2.234 MB / 0.8575 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.00124/0.968, allocations: 0.5929 MB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.968, allocations: 10.47 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.483e-05/0.9681, allocations: 42.92 kB / 1.093 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.962e-05/0.9682, allocations: 27.23 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005122/0.9687, allocations: 295.5 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.9687, allocations: 18.12 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.599e-05/0.9688, allocations: 23.97 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004578/0.9693, allocations: 209.7 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.9693, allocations: 0.6562 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.9693, allocations: 3.438 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/0.9694, allocations: 7.594 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004051/0.9698, allocations: 114 kB / 1.093 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.971, allocations: 0.8692 MB / 1.094 GB, free: 468 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005306/0.9716, allocations: 214.3 kB / 1.094 GB, free: 340 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.9718, allocations: 79.48 kB / 1.095 GB, free: 300 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.9718, allocations: 1.906 kB / 1.095 GB, free: 300 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004826/0.9723, allocations: 200.3 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=23): time 1.884e-06/0.9723, allocations: 0 / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.001069/0.9734, allocations: 361.7 kB / 1.095 GB, free: 60 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001821/0.9736, allocations: 116.6 kB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000435/0.9741, allocations: 241 kB / 1.095 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.84e-05/0.9741, allocations: 40.09 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.9743, allocations: 141.6 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.398e-05/0.9743, allocations: 62.28 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.9745, allocations: 73.53 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001836/0.9747, allocations: 343.9 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.975, allocations: 79.77 kB / 1.096 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/0.9754, allocations: 252.3 kB / 1.096 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006617/0.976, allocations: 393.9 kB / 1.097 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.9761, allocations: 2.406 kB / 1.097 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001041/0.9771, allocations: 399.1 kB / 1.097 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/0.9772, allocations: 35.06 kB / 1.097 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.9772, allocations: 11.19 kB / 1.097 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.9772, allocations: 8.125 kB / 1.097 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.9775, allocations: 67.41 kB / 1.097 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.618e-05/0.9775, allocations: 14.45 kB / 1.097 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.9778, allocations: 45.19 kB / 1.097 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.496e-05/0.9778, allocations: 20.72 kB / 1.097 GB, free: 14.32 MB / 0.8731 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.0001608/0.978, allocations: 166.1 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.364e-05/0.978, allocations: 29.11 kB / 1.098 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.611e-05/0.9781, allocations: 23.53 kB / 1.098 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.9781, allocations: 3.281 kB / 1.098 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.9781, allocations: 5.672 kB / 1.098 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.9781, allocations: 2.125 kB / 1.098 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003231/0.9785, allocations: 262.5 kB / 1.098 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.9785, allocations: 0 / 1.098 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.9786, allocations: 23.05 kB / 1.098 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.9786, allocations: 10.33 kB / 1.098 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.9787, allocations: 11.12 kB / 1.098 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.9787, allocations: 1.031 kB / 1.098 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.9787, allocations: 9.781 kB / 1.098 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.9797, allocations: 407.8 kB / 1.098 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.148e-05/0.9798, allocations: 101.2 kB / 1.098 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.309e-05/0.9799, allocations: 10.66 kB / 1.098 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.98, allocations: 18.34 kB / 1.098 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.361e-05/0.9801, allocations: 32.66 kB / 1.098 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.9802, allocations: 9.875 kB / 1.098 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001794/0.9804, allocations: 168.3 kB / 1.099 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9804, allocations: 0 / 1.099 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00047/0.9808, allocations: 91.44 kB / 1.099 GB, free: 13.45 MB / 0.8731 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.001468/0.9823, allocations: 1.012 MB / 1.1 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008223/0.9831, allocations: 296.4 kB / 1.1 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.9832, allocations: 0 / 1.1 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.9834, allocations: 104.1 kB / 1.1 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003971/0.9838, allocations: 75.5 kB / 1.1 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005127/0.989, allocations: 2.992 MB / 1.103 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.9894, allocations: 0.7419 MB / 1.104 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002052/0.9896, allocations: 52.42 kB / 1.104 GB, free: 9.566 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.9897, allocations: 70.28 kB / 1.104 GB, free: 9.52 MB / 0.8731 GB Notification: Performance of SimCode: time 4.11e-07/0.9897, allocations: 0.625 kB / 1.104 GB, free: 9.52 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/1.018, allocations: 6.546 MB / 1.11 GB, free: 8.848 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.157/9.174, allocations: 9.047 kB / 1.11 GB, free: 8.844 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)