Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001649/0.001655, allocations: 105.5 kB / 16.41 MB, free: 6.488 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.001924/0.001924, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.356/1.356, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002228/0.002229, allocations: 293.2 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9919/0.9919, allocations: 169.2 MB / 0.499 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002743/0.002743, allocations: 91.86 kB / 0.6822 GB, free: 6.918 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5773/0.58, allocations: 86.99 MB / 0.7671 GB, free: 4.086 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002822/0.5829, allocations: 1.421 MB / 0.7685 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00653/0.5894, allocations: 4.197 MB / 0.7726 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.958e-05/0.5896, allocations: 8 kB / 0.7726 GB, free: 14.43 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.5897, allocations: 11.86 kB / 0.7726 GB, free: 14.42 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002611/0.59, allocations: 31.84 kB / 0.7727 GB, free: 14.39 MB / 0.545 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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.004315/0.5943, allocations: 1.503 MB / 0.7741 GB, free: 12.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000172/0.5945, allocations: 87.73 kB / 0.7742 GB, free: 12.8 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.925e-05/0.5946, allocations: 8 kB / 0.7742 GB, free: 12.79 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.609e-05/0.5947, allocations: 55.81 kB / 0.7743 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.5949, allocations: 151.6 kB / 0.7744 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.595, allocations: 12 kB / 0.7744 GB, free: 12.57 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003592/0.5986, allocations: 2.2 MB / 0.7766 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002309/0.5988, allocations: 259.9 kB / 0.7768 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002589/0.5991, allocations: 286.2 kB / 0.7771 GB, free: 9.836 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003651/0.6027, allocations: 2.111 MB / 0.7792 GB, free: 7.723 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.6028, allocations: 0 / 0.7792 GB, free: 7.723 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6028, allocations: 0 / 0.7792 GB, free: 7.723 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.508e-05/0.6028, allocations: 0 / 0.7792 GB, free: 7.723 MB / 0.545 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.008112/0.6109, allocations: 1.312 MB / 0.7804 GB, free: 6.359 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.611, allocations: 8.031 kB / 0.7804 GB, free: 6.352 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004364/0.6114, allocations: 87.69 kB / 0.7805 GB, free: 6.266 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004639/0.6119, allocations: 361 kB / 0.7809 GB, free: 5.863 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.6119, allocations: 12.31 kB / 0.7809 GB, free: 5.852 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.612, allocations: 8.359 kB / 0.7809 GB, free: 5.844 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/0.6124, allocations: 395.5 kB / 0.7813 GB, free: 5.445 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.6125, allocations: 0 / 0.7813 GB, free: 5.445 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.6125, allocations: 3.938 kB / 0.7813 GB, free: 5.441 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.6125, allocations: 4 kB / 0.7813 GB, free: 5.438 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004197/0.6129, allocations: 439.7 kB / 0.7817 GB, free: 5.008 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006374/0.6136, allocations: 0.6288 MB / 0.7823 GB, free: 4.328 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005103/0.6141, allocations: 0.5672 MB / 0.7829 GB, free: 3.742 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003124/0.6144, allocations: 337.7 kB / 0.7832 GB, free: 3.406 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001104/0.6155, allocations: 1.017 MB / 0.7842 GB, free: 2.168 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004117/0.6159, allocations: 412.8 kB / 0.7846 GB, free: 1.746 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.616, allocations: 0 / 0.7846 GB, free: 1.746 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.001309/0.6173, allocations: 1.289 MB / 0.7858 GB, free: 460 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.6173, allocations: 81.09 kB / 0.7859 GB, free: 360 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.6186, allocations: 1.222 MB / 0.7871 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.6186, allocations: 29.7 kB / 0.7871 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.6188, allocations: 265.3 kB / 0.7874 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.611e-05/0.6189, allocations: 23.73 kB / 0.7874 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003373/0.6192, allocations: 355.5 kB / 0.7877 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.6194, allocations: 314 kB / 0.788 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.6206, allocations: 1.369 MB / 0.7894 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.622, allocations: 1.509 MB / 0.7909 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00699/0.629, allocations: 3.557 MB / 0.7943 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.629, allocations: 0 / 0.7943 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004575/0.6336, allocations: 4.006 MB / 0.7982 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.6336, allocations: 4 kB / 0.7982 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.6337, allocations: 4 kB / 0.7982 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.6337, allocations: 0 / 0.7982 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.6338, allocations: 19.92 kB / 0.7983 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.6339, allocations: 0 / 0.7983 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/0.6343, allocations: 236.2 kB / 0.7985 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.276e-05/0.6344, allocations: 23.98 kB / 0.7985 GB, free: 3.254 MB / 0.5606 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 (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.0003187/0.6347, allocations: 241.7 kB / 0.7987 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.028e-05/0.6348, allocations: 74.7 kB / 0.7988 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000289/0.6351, allocations: 71.02 kB / 0.7989 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.6351, allocations: 4 kB / 0.7989 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.6351, allocations: 0 / 0.7989 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.6352, allocations: 3.984 kB / 0.7989 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.6356, allocations: 492.9 kB / 0.7994 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.6356, allocations: 8.031 kB / 0.7994 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.263e-05/0.6357, allocations: 11.88 kB / 0.7994 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.6357, allocations: 0 / 0.7994 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.6357, allocations: 7.984 kB / 0.7994 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.6357, allocations: 0 / 0.7994 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.6358, allocations: 4 kB / 0.7994 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009073/0.6367, allocations: 1.005 MB / 0.8004 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.6368, allocations: 163.7 kB / 0.8005 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.742e-05/0.6369, allocations: 4 kB / 0.8005 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.637, allocations: 0 / 0.8005 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.6371, allocations: 7.984 kB / 0.8005 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-05/0.6371, allocations: 15.98 kB / 0.8006 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000735/0.6379, allocations: 0.6728 MB / 0.8012 GB, free: 380 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6379, allocations: 4 kB / 0.8012 GB, free: 376 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001487/0.6394, allocations: 0.5703 MB / 0.8018 GB, free: 15.79 MB / 0.5762 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 (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.002263/0.6416, allocations: 0.6923 MB / 0.8024 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002386/0.644, allocations: 2.544 MB / 0.8049 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6441, allocations: 4.062 kB / 0.8049 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.6444, allocations: 343.7 kB / 0.8053 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.6447, allocations: 42.42 kB / 0.8053 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.6469, allocations: 1.793 MB / 0.8071 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/0.6475, allocations: 0.964 MB / 0.808 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.6476, allocations: 27.42 kB / 0.808 GB, free: 9.32 MB / 0.5762 GB Notification: Performance of SimCode: time 8.42e-07/0.6476, allocations: 0 / 0.808 GB, free: 9.32 MB / 0.5762 GB Notification: Performance of Templates: time 0.02296/0.6706, allocations: 13.96 MB / 0.8217 GB, free: 11.36 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)