Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_10_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.001468/0.001468, 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.001511/0.001511, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.417/1.417, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.56/2.56, allocations: 437 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 67.89 kB / 0.8694 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7572/0.7588, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.005068/0.764, allocations: 2.344 MB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001987/0.766, allocations: 1.002 MB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.7663, allocations: 7.938 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003416/0.7667, allocations: 59.62 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004755/0.7672, allocations: 75.28 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.0006416/0.7679, allocations: 167.5 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003996/0.7683, allocations: 286.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.7684, allocations: 42.62 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.7687, allocations: 107.5 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.7688, allocations: 107.5 kB / 1.022 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.364e-05/0.7689, allocations: 23.94 kB / 1.022 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003497/0.7692, allocations: 123.8 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.163e-05/0.7693, allocations: 47.77 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.7695, allocations: 111.5 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004803/0.7699, allocations: 314.9 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.77, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.864e-06/0.77, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.82e-05/0.77, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 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.001272/0.7713, allocations: 0.5904 MB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.7713, allocations: 12.03 kB / 1.023 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.5e-05/0.7714, allocations: 46.73 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.021e-05/0.7715, allocations: 28.66 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.772, allocations: 294.9 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.7721, allocations: 12.61 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.667e-05/0.7721, allocations: 24.36 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004415/0.7726, allocations: 202.5 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.7726, allocations: 0 / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.7726, allocations: 11.98 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.7726, allocations: 4 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000399/0.773, allocations: 107.8 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.7743, allocations: 0.8683 MB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005135/0.7749, allocations: 199.9 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.7751, allocations: 86.59 kB / 1.025 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.7751, allocations: 7.984 kB / 1.025 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004684/0.7756, allocations: 201.6 kB / 1.025 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.7756, allocations: 0 / 1.025 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.001002/0.7766, allocations: 353 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/0.7767, allocations: 126.7 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.7769, allocations: 242.5 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.669e-05/0.777, allocations: 41.69 kB / 1.025 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.7771, allocations: 140.5 kB / 1.026 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.536e-05/0.7772, allocations: 59.62 kB / 1.026 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.7773, allocations: 74 kB / 1.026 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.7774, allocations: 342.8 kB / 1.026 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/0.7777, allocations: 76.75 kB / 1.026 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/0.778, allocations: 263.1 kB / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005762/0.7786, allocations: 388.5 kB / 1.027 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.7786, allocations: 4 kB / 1.027 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009132/0.7795, allocations: 398.6 kB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.337e-05/0.7796, allocations: 37.7 kB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.7796, allocations: 8.25 kB / 1.027 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.7796, allocations: 8 kB / 1.027 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.7798, allocations: 68.34 kB / 1.027 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/0.7799, allocations: 19.92 kB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.7801, allocations: 43.67 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.952e-05/0.7802, allocations: 20 kB / 1.027 GB, free: 7.871 MB / 0.7794 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.0001445/0.7803, allocations: 157.4 kB / 1.027 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.686e-05/0.7804, allocations: 27.7 kB / 1.027 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.075e-05/0.7804, allocations: 25.72 kB / 1.027 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.7805, allocations: 8 kB / 1.028 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.7805, allocations: 7.922 kB / 1.028 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.7805, allocations: 0 / 1.028 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002862/0.7808, allocations: 265.4 kB / 1.028 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.7808, allocations: 0 / 1.028 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.7809, allocations: 19.92 kB / 1.028 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.7809, allocations: 4 kB / 1.028 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.781, allocations: 7.984 kB / 1.028 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.781, allocations: 0 / 1.028 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.781, allocations: 3.938 kB / 1.028 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008454/0.7818, allocations: 427 kB / 1.028 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.042e-05/0.7819, allocations: 100.8 kB / 1.028 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/0.782, allocations: 12.03 kB / 1.028 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.7821, allocations: 19.98 kB / 1.028 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.7822, allocations: 23.91 kB / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.821e-05/0.7823, allocations: 8 kB / 1.028 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001833/0.7825, allocations: 174 kB / 1.029 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7825, allocations: 0 / 1.029 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000437/0.783, allocations: 76 kB / 1.029 GB, free: 6.438 MB / 0.7794 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.001387/0.7844, allocations: 1.024 MB / 1.03 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006247/0.785, allocations: 308.3 kB / 1.03 GB, free: 5.074 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.785, allocations: 0 / 1.03 GB, free: 5.074 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.7854, allocations: 107.8 kB / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.7858, allocations: 64.83 kB / 1.03 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004505/0.7904, allocations: 3.009 MB / 1.033 GB, free: 1.648 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.7907, allocations: 0.7409 MB / 1.034 GB, free: 0.8828 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001638/0.7909, allocations: 46.89 kB / 1.034 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.791, allocations: 79.41 kB / 1.034 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.791, allocations: 0 / 1.034 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7568/1.548, allocations: 6.459 MB / 1.04 GB, free: 10.51 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.61/11.16, allocations: 8.391 kB / 1.04 GB, free: 10.5 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.fmu > Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)