Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.005642/0.005642, allocations: 101.7 kB / 15.73 MB, free: 6.047 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.001284/0.001284, allocations: 193.9 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.1 MB / 222.6 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.551/1.551, allocations: 251.7 MB / 0.5094 GB, free: 3.023 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 70.25 kB / 0.7258 GB, free: 8.996 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2308, allocations: 104.7 MB / 0.828 GB, free: 192 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003612/0.2345, allocations: 2.341 MB / 0.8303 GB, free: 13.83 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.2361, allocations: 1.045 MB / 0.8314 GB, free: 12.78 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.2362, allocations: 7.938 kB / 0.8314 GB, free: 12.77 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.2365, allocations: 55.62 kB / 0.8314 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.2367, allocations: 79.28 kB / 0.8315 GB, free: 12.64 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-107: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.0004933/0.2372, allocations: 165.9 kB / 0.8317 GB, free: 12.48 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.2375, allocations: 290.8 kB / 0.8319 GB, free: 12.19 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.2376, allocations: 32.3 kB / 0.832 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.2378, allocations: 123.5 kB / 0.8321 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.238, allocations: 107.5 kB / 0.8322 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.366e-05/0.238, allocations: 20 kB / 0.8322 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003026/0.2383, allocations: 119.8 kB / 0.8323 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 5.62e-05/0.2384, allocations: 51.77 kB / 0.8324 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.2385, allocations: 115.5 kB / 0.8325 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003937/0.2389, allocations: 315 kB / 0.8328 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2389, allocations: 0 / 0.8328 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2389, allocations: 0 / 0.8328 GB, free: 11.32 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.2389, allocations: 0 / 0.8328 GB, free: 11.32 MB / 0.6544 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.001028/0.24, allocations: 0.602 MB / 0.8334 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.24, allocations: 8.031 kB / 0.8334 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.97e-05/0.2401, allocations: 28.66 kB / 0.8334 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004719/0.2406, allocations: 287 kB / 0.8337 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.2406, allocations: 12.61 kB / 0.8337 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/0.2407, allocations: 24.38 kB / 0.8337 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.2411, allocations: 208.6 kB / 0.8339 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.2411, allocations: 4 kB / 0.8339 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.2411, allocations: 3.984 kB / 0.8339 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.2411, allocations: 7.938 kB / 0.8339 GB, free: 10.04 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.2415, allocations: 111.8 kB / 0.834 GB, free: 9.93 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.2425, allocations: 0.8643 MB / 0.8349 GB, free: 8.996 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004667/0.243, allocations: 208 kB / 0.8351 GB, free: 8.766 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.2432, allocations: 78.59 kB / 0.8351 GB, free: 8.68 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.2432, allocations: 4 kB / 0.8351 GB, free: 8.676 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003799/0.2436, allocations: 203.2 kB / 0.8353 GB, free: 8.457 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=23): time 1.854e-06/0.2436, allocations: 0 / 0.8353 GB, free: 8.457 MB / 0.6544 GB Notification: Performance of matching and sorting (n=23): time 0.0008464/0.2445, allocations: 353.1 kB / 0.8357 GB, free: 8.105 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.2445, allocations: 122.8 kB / 0.8358 GB, free: 7.961 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.2448, allocations: 250.3 kB / 0.836 GB, free: 7.711 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.2448, allocations: 41.69 kB / 0.8361 GB, free: 7.664 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.2449, allocations: 136.6 kB / 0.8362 GB, free: 7.527 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.369e-05/0.245, allocations: 67.12 kB / 0.8363 GB, free: 7.461 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.2451, allocations: 74.06 kB / 0.8363 GB, free: 7.379 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2452, allocations: 338.8 kB / 0.8367 GB, free: 7.039 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.2455, allocations: 80.75 kB / 0.8367 GB, free: 6.961 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.2458, allocations: 259.1 kB / 0.837 GB, free: 6.621 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000548/0.2463, allocations: 388.8 kB / 0.8374 GB, free: 6.152 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2464, allocations: 4 kB / 0.8374 GB, free: 6.148 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007043/0.2471, allocations: 398.3 kB / 0.8377 GB, free: 5.746 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.2471, allocations: 42.5 kB / 0.8378 GB, free: 5.699 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.2471, allocations: 4 kB / 0.8378 GB, free: 5.695 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.2472, allocations: 12 kB / 0.8378 GB, free: 5.684 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.2474, allocations: 67.84 kB / 0.8379 GB, free: 5.617 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.941e-05/0.2474, allocations: 19.86 kB / 0.8379 GB, free: 5.598 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.2476, allocations: 39.67 kB / 0.8379 GB, free: 5.559 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.2477, allocations: 20 kB / 0.8379 GB, free: 5.539 MB / 0.6544 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.2478, allocations: 152 kB / 0.8381 GB, free: 5.383 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.2479, allocations: 39.69 kB / 0.8381 GB, free: 5.344 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.89e-05/0.2479, allocations: 21.72 kB / 0.8381 GB, free: 5.324 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.2479, allocations: 4.375 kB / 0.8381 GB, free: 5.32 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.248, allocations: 3.938 kB / 0.8381 GB, free: 5.316 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.248, allocations: 3.984 kB / 0.8381 GB, free: 5.312 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.2482, allocations: 269.4 kB / 0.8384 GB, free: 5 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2483, allocations: 3.938 kB / 0.8384 GB, free: 4.996 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.2484, allocations: 15.98 kB / 0.8384 GB, free: 4.98 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.2484, allocations: 4 kB / 0.8384 GB, free: 4.977 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.2484, allocations: 19.92 kB / 0.8384 GB, free: 4.957 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2484, allocations: 0 / 0.8384 GB, free: 4.957 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2484, allocations: 3.938 kB / 0.8385 GB, free: 4.953 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008464/0.2493, allocations: 413.2 kB / 0.8388 GB, free: 4.527 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.086e-05/0.2494, allocations: 100.8 kB / 0.8389 GB, free: 4.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.321e-05/0.2494, allocations: 8.25 kB / 0.839 GB, free: 4.402 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.2496, allocations: 24.02 kB / 0.839 GB, free: 4.379 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.171e-05/0.2497, allocations: 23.91 kB / 0.839 GB, free: 4.355 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.2497, allocations: 8 kB / 0.839 GB, free: 4.348 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000142/0.2498, allocations: 170 kB / 0.8392 GB, free: 4.18 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2498, allocations: 0 / 0.8392 GB, free: 4.18 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000392/0.2502, allocations: 83.89 kB / 0.8392 GB, free: 4.098 MB / 0.6544 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.0003391/0.2506, allocations: 174.5 kB / 0.8394 GB, free: 3.922 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005863/0.2512, allocations: 291.2 kB / 0.8397 GB, free: 3.625 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2512, allocations: 0 / 0.8397 GB, free: 3.625 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002516/0.2515, allocations: 113.3 kB / 0.8398 GB, free: 3.516 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003553/0.2518, allocations: 57.03 kB / 0.8399 GB, free: 3.461 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.2529, allocations: 0.5937 MB / 0.8404 GB, free: 2.828 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.2532, allocations: 0.7407 MB / 0.8412 GB, free: 2.059 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001288/0.2533, allocations: 46.95 kB / 0.8412 GB, free: 2.016 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.856e-05/0.2534, allocations: 27.42 kB / 0.8412 GB, free: 1.988 MB / 0.6544 GB Notification: Performance of SimCode: time 3.3e-07/0.2534, allocations: 0 / 0.8412 GB, free: 1.988 MB / 0.6544 GB Notification: Performance of Templates: time 0.008208/0.2616, allocations: 3.999 MB / 0.8451 GB, free: 14.07 MB / 0.67 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)