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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001625/0.001625, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001378/0.001378, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.327/1.327, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.442/2.442, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 69.7 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2264, allocations: 157.4 MB / 1.052 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003382/0.2298, allocations: 2.404 MB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001572/0.2314, allocations: 0.997 MB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.2316, allocations: 15.88 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.2318, allocations: 43.75 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.232, allocations: 71.45 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.2324, allocations: 150.7 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000272/0.2327, allocations: 290.8 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2328, allocations: 40.59 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.2329, allocations: 115.5 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.2331, allocations: 107.4 kB / 1.057 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.2331, allocations: 16 kB / 1.057 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002279/0.2333, allocations: 119.9 kB / 1.057 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.787e-05/0.2334, allocations: 47.77 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.699e-05/0.2335, allocations: 115.5 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.2338, allocations: 311 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2338, allocations: 4 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.143e-06/0.2338, allocations: 0 / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.2338, allocations: 0 / 1.057 GB, free: 3.789 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.0008606/0.2347, allocations: 0.5918 MB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.2347, allocations: 12.03 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.253e-05/0.2348, allocations: 46.73 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.403e-05/0.2349, allocations: 24.66 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.2352, allocations: 295 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.2353, allocations: 8.609 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.2353, allocations: 20.38 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.2357, allocations: 213.1 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.2357, allocations: 0 / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.2357, allocations: 4 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2357, allocations: 7.984 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.2361, allocations: 107.8 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008819/0.2369, allocations: 0.8723 MB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004571/0.2374, allocations: 203.9 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.2376, allocations: 78.53 kB / 1.06 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.2376, allocations: 4 kB / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/0.238, allocations: 209.7 kB / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.238, allocations: 0 / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.0007706/0.2388, allocations: 349.3 kB / 1.06 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.266e-05/0.2389, allocations: 126.7 kB / 1.06 GB, free: 380 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001936/0.2391, allocations: 246.5 kB / 1.06 GB, free: 132 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.2391, allocations: 37.7 kB / 1.06 GB, free: 88 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.324e-05/0.2392, allocations: 140.6 kB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.2393, allocations: 63.14 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.272e-05/0.2394, allocations: 74.06 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2395, allocations: 342.8 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.2397, allocations: 76.77 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.24, allocations: 263.1 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004877/0.2405, allocations: 388.5 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2405, allocations: 0 / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006565/0.2411, allocations: 398.5 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.2412, allocations: 37.69 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.2412, allocations: 4 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.2412, allocations: 8.625 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.2414, allocations: 63.91 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2414, allocations: 15.88 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.2417, allocations: 39.73 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.2417, allocations: 27.98 kB / 1.062 GB, free: 13.98 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.0001313/0.2418, allocations: 161.4 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.076e-05/0.2419, allocations: 23.72 kB / 1.062 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.2419, allocations: 29.7 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2419, allocations: 4 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2419, allocations: 3.938 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.242, allocations: 7.984 kB / 1.063 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002408/0.2422, allocations: 261.4 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2422, allocations: 3.938 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.2423, allocations: 19.97 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.2423, allocations: 4 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.2424, allocations: 7.984 kB / 1.063 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2424, allocations: 3.938 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2424, allocations: 11.94 kB / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007594/0.2431, allocations: 409 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.241e-05/0.2432, allocations: 101.1 kB / 1.063 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.499e-05/0.2433, allocations: 12 kB / 1.063 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.2434, allocations: 23.97 kB / 1.063 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.332e-05/0.2435, allocations: 23.92 kB / 1.063 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.2435, allocations: 15.92 kB / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00012/0.2436, allocations: 166 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2437, allocations: 96 / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003567/0.244, allocations: 91.86 kB / 1.064 GB, free: 12.52 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.001171/0.2452, allocations: 0.9998 MB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005489/0.2458, allocations: 303.8 kB / 1.065 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2458, allocations: 0 / 1.065 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.246, allocations: 103.9 kB / 1.065 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.2463, allocations: 61.34 kB / 1.065 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.2498, allocations: 3.068 MB / 1.068 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.2501, allocations: 0.7446 MB / 1.069 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001328/0.2502, allocations: 50.89 kB / 1.069 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.498e-05/0.2503, allocations: 75.41 kB / 1.069 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2503, allocations: 0 / 1.069 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.56/2.81, allocations: 6.333 MB / 1.075 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002687/2.81, allocations: 254.4 kB / 1.075 GB, free: 476 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/4.743, allocations: 0 / 1.075 GB, free: 476 kB / 0.8262 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=50 --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)