Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_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.001208/0.001208, allocations: 101.2 kB / 16.27 MB, free: 5.969 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.001321/0.001321, allocations: 192 kB / 17.2 MB, free: 5.598 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.243/1.243, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.688/0.688, allocations: 122.8 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 67.89 kB / 0.4912 GB, free: 7.305 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3228, allocations: 77.91 MB / 0.5673 GB, free: 32.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002271/0.3251, allocations: 1.42 MB / 0.5687 GB, free: 31.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005035/0.3301, allocations: 4.192 MB / 0.5728 GB, free: 28.89 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.701e-05/0.3302, allocations: 0 / 0.5728 GB, free: 28.89 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.894e-05/0.3304, allocations: 13.56 kB / 0.5728 GB, free: 28.89 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001998/0.3306, allocations: 33.45 kB / 0.5728 GB, free: 28.87 MB / 446.1 MB [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.003881/0.3345, allocations: 1.498 MB / 0.5743 GB, free: 28.31 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.3346, allocations: 95.77 kB / 0.5744 GB, free: 28.28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.964e-05/0.3347, allocations: 5.031 kB / 0.5744 GB, free: 28.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.403e-05/0.3347, allocations: 54.11 kB / 0.5745 GB, free: 28.26 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.335, allocations: 144.8 kB / 0.5746 GB, free: 28.22 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.079e-05/0.335, allocations: 13.81 kB / 0.5746 GB, free: 28.22 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003286/0.3383, allocations: 2.154 MB / 0.5767 GB, free: 27.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.3385, allocations: 272.2 kB / 0.577 GB, free: 27.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.3387, allocations: 278.8 kB / 0.5772 GB, free: 27.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002406/0.3411, allocations: 2.104 MB / 0.5793 GB, free: 26.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.3411, allocations: 0 / 0.5793 GB, free: 26.19 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3411, allocations: 1.469 kB / 0.5793 GB, free: 26.19 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.3412, allocations: 0.8438 kB / 0.5793 GB, free: 26.19 MB / 446.1 MB 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.009685/0.3509, allocations: 1.302 MB / 0.5806 GB, free: 25.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.3509, allocations: 9.406 kB / 0.5806 GB, free: 25.16 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.686e-05/0.3509, allocations: 32.12 kB / 0.5806 GB, free: 25.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003659/0.3513, allocations: 94.7 kB / 0.5807 GB, free: 25.06 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.3517, allocations: 359.4 kB / 0.581 GB, free: 24.74 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3517, allocations: 10.97 kB / 0.581 GB, free: 24.73 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.3517, allocations: 10.92 kB / 0.5811 GB, free: 24.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004631/0.3522, allocations: 396.6 kB / 0.5814 GB, free: 24.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3522, allocations: 0 / 0.5814 GB, free: 24.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.3522, allocations: 0.9688 kB / 0.5814 GB, free: 24.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3523, allocations: 3.281 kB / 0.5814 GB, free: 24.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.3527, allocations: 429.8 kB / 0.5819 GB, free: 24.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004785/0.3531, allocations: 0.637 MB / 0.5825 GB, free: 24.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.3536, allocations: 0.5679 MB / 0.583 GB, free: 23.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002825/0.3539, allocations: 335 kB / 0.5833 GB, free: 23.83 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007356/0.3547, allocations: 1.025 MB / 0.5843 GB, free: 22.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004385/0.3551, allocations: 421.4 kB / 0.5848 GB, free: 22.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.3551, allocations: 0 / 0.5848 GB, free: 22.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.00137/0.3565, allocations: 1.286 MB / 0.586 GB, free: 22.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.3566, allocations: 79.48 kB / 0.5861 GB, free: 22.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.3578, allocations: 1.213 MB / 0.5873 GB, free: 21.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.3e-05/0.3578, allocations: 31.02 kB / 0.5873 GB, free: 21.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002362/0.3581, allocations: 261.2 kB / 0.5875 GB, free: 21.17 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.91e-05/0.3581, allocations: 31.41 kB / 0.5876 GB, free: 21.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003471/0.3585, allocations: 351.2 kB / 0.5879 GB, free: 20.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.175e-05/0.3586, allocations: 311.9 kB / 0.5882 GB, free: 20.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009863/0.3596, allocations: 1.372 MB / 0.5895 GB, free: 19.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008766/0.3604, allocations: 1.507 MB / 0.591 GB, free: 18.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005731/0.3662, allocations: 3.563 MB / 0.5945 GB, free: 14.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3662, allocations: 0 / 0.5945 GB, free: 14.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003003/0.3692, allocations: 4.003 MB / 0.5984 GB, free: 10.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.3692, allocations: 4 kB / 0.5984 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.3692, allocations: 5.719 kB / 0.5984 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.3693, allocations: 0 / 0.5984 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.3694, allocations: 19.92 kB / 0.5984 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.3694, allocations: 0 / 0.5984 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005093/0.3699, allocations: 229.1 kB / 0.5987 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.37, allocations: 29.27 kB / 0.5987 GB, free: 10.04 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002463/0.3702, allocations: 241.7 kB / 0.5989 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.3703, allocations: 67.69 kB / 0.599 GB, free: 9.727 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002447/0.3705, allocations: 76.27 kB / 0.5991 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3705, allocations: 1.344 kB / 0.5991 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3705, allocations: 4 kB / 0.5991 GB, free: 9.641 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3706, allocations: 3.984 kB / 0.5991 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003056/0.3709, allocations: 0.4891 MB / 0.5995 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3709, allocations: 4.562 kB / 0.5995 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-05/0.3709, allocations: 8.656 kB / 0.5996 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.371, allocations: 3.938 kB / 0.5996 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.371, allocations: 10.08 kB / 0.5996 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.371, allocations: 0 / 0.5996 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.371, allocations: 0 / 0.5996 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005764/0.3716, allocations: 0.9954 MB / 0.6005 GB, free: 8.062 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.22e-05/0.3716, allocations: 160.4 kB / 0.6007 GB, free: 7.887 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.622e-05/0.3717, allocations: 4 kB / 0.6007 GB, free: 7.883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.3718, allocations: 4.688 kB / 0.6007 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.3719, allocations: 9.172 kB / 0.6007 GB, free: 7.871 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.3719, allocations: 11.98 kB / 0.6007 GB, free: 7.859 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000477/0.3724, allocations: 0.6734 MB / 0.6014 GB, free: 7.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3724, allocations: 1.75 kB / 0.6014 GB, free: 7.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001407/0.3738, allocations: 0.574 MB / 0.6019 GB, free: 6.605 MB / 446.1 MB 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 (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.002266/0.3761, allocations: 2.154 MB / 0.604 GB, free: 4.453 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.3776, allocations: 2.549 MB / 0.6065 GB, free: 1.891 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3776, allocations: 0 / 0.6065 GB, free: 1.891 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.3778, allocations: 341.2 kB / 0.6069 GB, free: 1.559 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.3781, allocations: 33.75 kB / 0.6069 GB, free: 1.527 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01329/0.3914, allocations: 15.15 MB / 0.6217 GB, free: 2.215 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.3919, allocations: 0.9607 MB / 0.6226 GB, free: 1.227 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001624/0.3921, allocations: 40.55 kB / 0.6227 GB, free: 1.188 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/0.3923, allocations: 267.3 kB / 0.6229 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3923, allocations: 0 / 0.6229 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9973/1.39, allocations: 23.65 MB / 0.646 GB, free: 9.453 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/12.05, allocations: 11.41 kB / 0.646 GB, free: 9.445 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)