Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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.0009843/0.0009845, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001202/0.001202, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.426/2.426, allocations: 409.4 MB / 0.684 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004729/0.0004732, allocations: 12 kB / 0.8378 GB, free: 6.449 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7021/0.7026, allocations: 146.8 MB / 0.9812 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.001626/0.7043, allocations: 1.139 MB / 0.9823 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00584/0.7102, allocations: 3.919 MB / 0.9861 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.001e-05/0.7102, allocations: 0 / 0.9861 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.7103, allocations: 11.92 kB / 0.9861 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002128/0.7106, allocations: 27.84 kB / 0.9862 GB, free: 1.105 MB / 0.7325 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.003086/0.7137, allocations: 1.126 MB / 0.9873 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.7138, allocations: 103.7 kB / 0.9874 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 5.079e-05/0.7139, allocations: 8 kB / 0.9874 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 6.801e-05/0.7139, allocations: 43.84 kB / 0.9874 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.7142, allocations: 175.7 kB / 0.9876 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 3.382e-05/0.7142, allocations: 12 kB / 0.9876 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00277/0.717, allocations: 1.942 MB / 0.9895 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.7172, allocations: 267.2 kB / 0.9897 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.7173, allocations: 113.2 kB / 0.9898 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001596/0.7189, allocations: 1.405 MB / 0.9912 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.7189, allocations: 0 / 0.9912 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.493e-06/0.719, allocations: 0 / 0.9912 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.719, allocations: 0 / 0.9912 GB, free: 11.91 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.006824/0.7258, allocations: 1.246 MB / 0.9924 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.7258, allocations: 11.98 kB / 0.9924 GB, free: 10.61 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.84e-05/0.7259, allocations: 46.55 kB / 0.9925 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003319/0.7262, allocations: 82.75 kB / 0.9926 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.7267, allocations: 363.7 kB / 0.9929 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.7267, allocations: 0 / 0.9929 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.7267, allocations: 11.98 kB / 0.9929 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004376/0.7272, allocations: 395.1 kB / 0.9933 GB, free: 9.652 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.7272, allocations: 0 / 0.9933 GB, free: 9.652 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.7272, allocations: 8 kB / 0.9933 GB, free: 9.645 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.7272, allocations: 3.938 kB / 0.9933 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004269/0.7276, allocations: 435.7 kB / 0.9937 GB, free: 9.215 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005993/0.7283, allocations: 0.6327 MB / 0.9943 GB, free: 8.531 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000515/0.7288, allocations: 0.5594 MB / 0.9949 GB, free: 7.953 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.7291, allocations: 337.7 kB / 0.9952 GB, free: 7.617 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00101/0.7301, allocations: 1.036 MB / 0.9962 GB, free: 6.359 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003983/0.7305, allocations: 408.8 kB / 0.9966 GB, free: 5.941 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=8): time 2.935e-06/0.7305, allocations: 0 / 0.9966 GB, free: 5.941 MB / 0.7481 GB Notification: Performance of matching and sorting (n=8): time 0.001321/0.7319, allocations: 1.296 MB / 0.9979 GB, free: 4.637 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.7319, allocations: 85.09 kB / 0.998 GB, free: 4.535 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/0.7331, allocations: 1.206 MB / 0.9991 GB, free: 3.312 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.7331, allocations: 29.7 kB / 0.9992 GB, free: 3.277 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.7333, allocations: 257.4 kB / 0.9994 GB, free: 3.02 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.7334, allocations: 23.83 kB / 0.9994 GB, free: 2.996 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.7334, allocations: 8 kB / 0.9994 GB, free: 2.988 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001846/0.7336, allocations: 415.9 kB / 0.9998 GB, free: 2.574 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.7348, allocations: 1.369 MB / 1.001 GB, free: 1.203 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.7361, allocations: 1.503 MB / 1.003 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.7377, allocations: 1.922 MB / 1.005 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.7378, allocations: 0 / 1.005 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004111/0.7419, allocations: 3.975 MB / 1.008 GB, free: 9.738 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.7419, allocations: 4 kB / 1.008 GB, free: 9.734 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.7419, allocations: 4 kB / 1.008 GB, free: 9.73 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.742, allocations: 3.953 kB / 1.008 GB, free: 9.727 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.7421, allocations: 19.92 kB / 1.008 GB, free: 9.707 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.7421, allocations: 4 kB / 1.008 GB, free: 9.703 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004427/0.7426, allocations: 236.2 kB / 1.009 GB, free: 9.469 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.7426, allocations: 27.89 kB / 1.009 GB, free: 9.445 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002829/0.7429, allocations: 241.7 kB / 1.009 GB, free: 9.199 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.163e-05/0.743, allocations: 62.78 kB / 1.009 GB, free: 9.137 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002531/0.7432, allocations: 79.02 kB / 1.009 GB, free: 9.047 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.7432, allocations: 3.953 kB / 1.009 GB, free: 9.043 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.7432, allocations: 0 / 1.009 GB, free: 9.043 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.7433, allocations: 3.984 kB / 1.009 GB, free: 9.039 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004226/0.7437, allocations: 0.4891 MB / 1.01 GB, free: 8.504 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.7437, allocations: 0 / 1.01 GB, free: 8.504 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.521e-05/0.7438, allocations: 4 kB / 1.01 GB, free: 8.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.7438, allocations: 3.938 kB / 1.01 GB, free: 8.496 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.7438, allocations: 7.984 kB / 1.01 GB, free: 8.488 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.7438, allocations: 0 / 1.01 GB, free: 8.488 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.7438, allocations: 7.953 kB / 1.01 GB, free: 8.48 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000934/0.7448, allocations: 1.013 MB / 1.011 GB, free: 7.445 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.7449, allocations: 151.9 kB / 1.011 GB, free: 7.277 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.518e-05/0.7449, allocations: 4 kB / 1.011 GB, free: 7.273 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.7451, allocations: 4 kB / 1.011 GB, free: 7.27 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.734e-05/0.7451, allocations: 11.94 kB / 1.011 GB, free: 7.258 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.7451, allocations: 15.98 kB / 1.011 GB, free: 7.242 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006902/0.7458, allocations: 0.665 MB / 1.011 GB, free: 6.57 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7459, allocations: 0 / 1.011 GB, free: 6.57 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001386/0.7472, allocations: 0.5701 MB / 1.012 GB, free: 6 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003/0.7502, allocations: 2.126 MB / 1.014 GB, free: 3.859 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002367/0.7526, allocations: 2.554 MB / 1.017 GB, free: 1.293 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7526, allocations: 0 / 1.017 GB, free: 1.293 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000345/0.753, allocations: 343.9 kB / 1.017 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.7533, allocations: 32.59 kB / 1.017 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.7636, allocations: 9.743 MB / 1.026 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000525/0.7642, allocations: 0.976 MB / 1.027 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001788/0.7643, allocations: 28.56 kB / 1.027 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002984/0.7646, allocations: 263.3 kB / 1.028 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of SimCode: time 7.12e-07/0.7647, allocations: 3.938 kB / 1.028 GB, free: 5.793 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03873/0.8034, allocations: 22.8 MB / 1.05 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/0.8036, allocations: 318.2 kB / 1.05 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.599/3.402, allocations: 0.8125 kB / 1.05 GB, free: 14.86 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) Environment - environmentSimulation: