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.001734/0.001733, 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.001414/0.001413, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.582/2.582, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 67.83 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2606, allocations: 157.4 MB / 1.053 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003466/0.2641, allocations: 2.35 MB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.2655, allocations: 1.001 MB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2657, allocations: 7.938 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002064/0.2659, allocations: 59.56 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.2661, allocations: 79.27 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0004803/0.2666, allocations: 163.5 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.2669, allocations: 286.8 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.267, allocations: 36.61 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.2671, allocations: 115.5 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.2673, allocations: 111.5 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.463e-05/0.2673, allocations: 16 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.2676, allocations: 115.8 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.2676, allocations: 47.83 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.2677, allocations: 111.5 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003328/0.2681, allocations: 311 kB / 1.058 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2681, allocations: 0 / 1.058 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2681, allocations: 0 / 1.058 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.2681, allocations: 4 kB / 1.058 GB, free: 3.402 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.0008471/0.269, allocations: 0.5942 MB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.269, allocations: 8.031 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.269, allocations: 50.67 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.39e-05/0.2691, allocations: 28.66 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.2695, allocations: 287 kB / 1.059 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.2695, allocations: 16.61 kB / 1.059 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.843e-05/0.2696, allocations: 20.36 kB / 1.059 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003518/0.2699, allocations: 201.1 kB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2699, allocations: 0 / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.27, allocations: 11.98 kB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.27, allocations: 8 kB / 1.059 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003416/0.2703, allocations: 111.8 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008512/0.2712, allocations: 0.8683 MB / 1.06 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/0.2716, allocations: 207.9 kB / 1.06 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.2718, allocations: 78.61 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.2718, allocations: 0 / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003538/0.2722, allocations: 205.7 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.2722, allocations: 0 / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.000781/0.273, allocations: 361 kB / 1.061 GB, free: 124 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.2731, allocations: 122.7 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.2733, allocations: 246.5 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.2733, allocations: 37.7 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.553e-05/0.2734, allocations: 136.6 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.025e-05/0.2735, allocations: 71.11 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-05/0.2736, allocations: 74.06 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.2737, allocations: 338.8 kB / 1.062 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.2739, allocations: 81 kB / 1.062 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002816/0.2742, allocations: 259.1 kB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004866/0.2747, allocations: 388.8 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.2747, allocations: 4 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006503/0.2753, allocations: 399 kB / 1.063 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.2754, allocations: 41.8 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.2754, allocations: 8 kB / 1.063 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2754, allocations: 8 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.2756, allocations: 63.84 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.2756, allocations: 19.86 kB / 1.063 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.2758, allocations: 39.73 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.2759, allocations: 20 kB / 1.063 GB, free: 13.57 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.0001214/0.276, allocations: 156 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.2761, allocations: 27.7 kB / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.812e-05/0.2761, allocations: 25.7 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2761, allocations: 4 kB / 1.063 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2761, allocations: 3.938 kB / 1.063 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2761, allocations: 0 / 1.063 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002242/0.2764, allocations: 269.3 kB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.2764, allocations: 7.938 kB / 1.063 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.2765, allocations: 23.98 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.2765, allocations: 3.938 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.2765, allocations: 7.984 kB / 1.063 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.2765, allocations: 4 kB / 1.063 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2765, allocations: 3.938 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007634/0.2773, allocations: 420.9 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.211e-05/0.2774, allocations: 96.92 kB / 1.064 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.2774, allocations: 12.41 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.2776, allocations: 15.97 kB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.555e-05/0.2777, allocations: 27.91 kB / 1.064 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.2777, allocations: 11.98 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001279/0.2778, allocations: 173.9 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2778, allocations: 0 / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004043/0.2782, allocations: 83.94 kB / 1.064 GB, free: 12.12 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.001198/0.2794, allocations: 0.9981 MB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005567/0.28, allocations: 306.9 kB / 1.065 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.28, allocations: 1.625 kB / 1.065 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002402/0.2803, allocations: 107.9 kB / 1.065 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.2806, allocations: 64.97 kB / 1.066 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/0.284, allocations: 3.016 MB / 1.068 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.2842, allocations: 0.7407 MB / 1.069 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001328/0.2844, allocations: 54.92 kB / 1.069 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.828e-05/0.2845, allocations: 71.42 kB / 1.069 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2845, allocations: 0 / 1.069 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.071/2.356, allocations: 6.472 MB / 1.076 GB, free: 192 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.459/11.82, allocations: 3.25 kB / 1.076 GB, free: 192 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)