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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_latest_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.004739/0.004739, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001297/0.001297, allocations: 197.5 kB / 16.68 MB, free: 5.969 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.704/2.704, allocations: 482.6 MB / 0.755 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 64.48 kB / 1.083 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3118, allocations: 162.3 MB / 1.242 GB, free: 8.793 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003741/0.3156, allocations: 2.355 MB / 1.244 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001552/0.3172, allocations: 0.9932 MB / 1.245 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.986e-05/0.3173, allocations: 8 kB / 1.245 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.3175, allocations: 59.5 kB / 1.245 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.3177, allocations: 71.34 kB / 1.245 GB, free: 5.289 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.0004222/0.3181, allocations: 171.5 kB / 1.245 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002855/0.3184, allocations: 290.8 kB / 1.246 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.3185, allocations: 40.61 kB / 1.246 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.3186, allocations: 107.5 kB / 1.246 GB, free: 4.691 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.3188, allocations: 107.5 kB / 1.246 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.356e-05/0.3188, allocations: 20 kB / 1.246 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002629/0.3191, allocations: 119.8 kB / 1.246 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.326e-05/0.3192, allocations: 51.81 kB / 1.246 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.3193, allocations: 111.4 kB / 1.246 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000583/0.3199, allocations: 322.7 kB / 1.247 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3199, allocations: 0 / 1.247 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3199, allocations: 4 kB / 1.247 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.3199, allocations: 0 / 1.247 GB, free: 3.969 MB / 0.9669 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.0009097/0.3208, allocations: 0.594 MB / 1.247 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.3208, allocations: 8.031 kB / 1.247 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.329e-05/0.3209, allocations: 50.73 kB / 1.247 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.483e-05/0.321, allocations: 28.8 kB / 1.247 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.3214, allocations: 303 kB / 1.248 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.3214, allocations: 12.61 kB / 1.248 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.299e-05/0.3215, allocations: 20.38 kB / 1.248 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003873/0.3219, allocations: 205.6 kB / 1.248 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3219, allocations: 7.938 kB / 1.248 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.3219, allocations: 7.984 kB / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3219, allocations: 4 kB / 1.248 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.3223, allocations: 103.8 kB / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009693/0.3233, allocations: 0.8645 MB / 1.249 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004796/0.3238, allocations: 215.8 kB / 1.249 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.324, allocations: 78.55 kB / 1.249 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.324, allocations: 4 kB / 1.249 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000385/0.3244, allocations: 199.6 kB / 1.249 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.3244, allocations: 3.938 kB / 1.249 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23): time 0.001024/0.3255, allocations: 357.2 kB / 1.25 GB, free: 0.6797 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.215e-05/0.3256, allocations: 126.7 kB / 1.25 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.3258, allocations: 238.6 kB / 1.25 GB, free: 296 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.3258, allocations: 41.69 kB / 1.25 GB, free: 248 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.534e-05/0.3259, allocations: 140.6 kB / 1.25 GB, free: 104 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.606e-05/0.326, allocations: 63.58 kB / 1.25 GB, free: 40 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.3261, allocations: 74.08 kB / 1.25 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3262, allocations: 342.8 kB / 1.25 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.3265, allocations: 80.75 kB / 1.251 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003171/0.3268, allocations: 255.1 kB / 1.251 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005902/0.3274, allocations: 384.8 kB / 1.251 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3274, allocations: 4 kB / 1.251 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007925/0.3282, allocations: 407.2 kB / 1.252 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/0.3282, allocations: 37.69 kB / 1.252 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.3283, allocations: 8 kB / 1.252 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3283, allocations: 11.94 kB / 1.252 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.3285, allocations: 63.91 kB / 1.252 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.3285, allocations: 23.8 kB / 1.252 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002121/0.3287, allocations: 39.77 kB / 1.252 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.754e-05/0.3288, allocations: 20.25 kB / 1.252 GB, free: 14.12 MB / 0.9825 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.0001402/0.3289, allocations: 159.9 kB / 1.252 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/0.329, allocations: 31.81 kB / 1.252 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.854e-05/0.329, allocations: 25.7 kB / 1.252 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.329, allocations: 4 kB / 1.252 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.329, allocations: 7.938 kB / 1.252 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.329, allocations: 3.984 kB / 1.252 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002671/0.3293, allocations: 253.5 kB / 1.252 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.3293, allocations: 7.984 kB / 1.252 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.3295, allocations: 19.98 kB / 1.252 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3295, allocations: 0 / 1.252 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.3295, allocations: 11.98 kB / 1.252 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3295, allocations: 4 kB / 1.252 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.3295, allocations: 3.938 kB / 1.252 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008164/0.3303, allocations: 414.3 kB / 1.253 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.778e-05/0.3304, allocations: 100.9 kB / 1.253 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.215e-05/0.3305, allocations: 8.375 kB / 1.253 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.3306, allocations: 20.02 kB / 1.253 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.3307, allocations: 23.91 kB / 1.253 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.3307, allocations: 8 kB / 1.253 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002501/0.331, allocations: 173.9 kB / 1.253 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of sort global known variables: time 5.681e-06/0.331, allocations: 0 / 1.253 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003659/0.3314, allocations: 95.75 kB / 1.253 GB, free: 12.67 MB / 0.9825 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.001312/0.3327, allocations: 1.022 MB / 1.254 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005668/0.3333, allocations: 303 kB / 1.254 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3333, allocations: 1.625 kB / 1.254 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.3335, allocations: 99.88 kB / 1.254 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.334, allocations: 67.69 kB / 1.255 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003898/0.3379, allocations: 3.006 MB / 1.257 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.3382, allocations: 0.7446 MB / 1.258 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001222/0.3384, allocations: 46.94 kB / 1.258 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.3385, allocations: 71.41 kB / 1.258 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.3385, allocations: 0 / 1.258 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.366/2.705, allocations: 6.551 MB / 1.265 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.88/18.58, allocations: 16.14 kB / 1.265 GB, free: 0.6523 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)