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.001269/0.001269, allocations: 112.6 kB / 16.37 MB, free: 6 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.001238/0.001238, allocations: 196 kB / 17.31 MB, free: 5.613 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.29/1.29, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002178/0.002178, allocations: 287.3 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9233/0.9233, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 99.42 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1467, allocations: 86.98 MB / 0.6817 GB, free: 7.426 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002332/0.1491, allocations: 1.422 MB / 0.683 GB, free: 5.988 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005734/0.1549, allocations: 4.192 MB / 0.6871 GB, free: 1.773 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.079e-05/0.1549, allocations: 3.938 kB / 0.6871 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.74e-05/0.155, allocations: 7.922 kB / 0.6871 GB, free: 1.762 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001979/0.1552, allocations: 35.78 kB / 0.6872 GB, free: 1.727 MB / 494.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/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.003114/0.1584, allocations: 1.514 MB / 0.6887 GB, free: 216 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.1585, allocations: 91.69 kB / 0.6887 GB, free: 124 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.399e-05/0.1585, allocations: 0 / 0.6887 GB, free: 124 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.471e-05/0.1586, allocations: 51.83 kB / 0.6888 GB, free: 72 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2308/0.3895, allocations: 142.2 kB / 0.6889 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.247e-05/0.3895, allocations: 13.31 kB / 0.6889 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003505/0.3931, allocations: 2.206 MB / 0.6911 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002241/0.3933, allocations: 271.5 kB / 0.6914 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002208/0.3935, allocations: 273.8 kB / 0.6916 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002587/0.3961, allocations: 2.111 MB / 0.6937 GB, free: 13.21 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3961, allocations: 1.281 kB / 0.6937 GB, free: 13.21 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3961, allocations: 4.688 kB / 0.6937 GB, free: 13.21 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.278e-06/0.3962, allocations: 0 / 0.6937 GB, free: 13.21 MB / 494.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.008391/0.4046, allocations: 1.302 MB / 0.695 GB, free: 12.35 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.4046, allocations: 9.5 kB / 0.695 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003667/0.405, allocations: 88.17 kB / 0.695 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.4053, allocations: 362 kB / 0.6954 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.4054, allocations: 3.797 kB / 0.6954 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.4054, allocations: 7.562 kB / 0.6954 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004367/0.4059, allocations: 390.5 kB / 0.6958 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.4059, allocations: 7.219 kB / 0.6958 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.4059, allocations: 3.797 kB / 0.6958 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.4059, allocations: 1.062 kB / 0.6958 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004589/0.4064, allocations: 433.6 kB / 0.6962 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005498/0.4069, allocations: 0.6401 MB / 0.6968 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005326/0.4075, allocations: 0.5628 MB / 0.6974 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003217/0.4078, allocations: 335.5 kB / 0.6977 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007582/0.4086, allocations: 1.024 MB / 0.6987 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003914/0.409, allocations: 413.3 kB / 0.6991 GB, free: 10.38 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.409, allocations: 1.031 kB / 0.6991 GB, free: 10.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.001388/0.4104, allocations: 1.292 MB / 0.7004 GB, free: 10.28 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.4104, allocations: 80.64 kB / 0.7004 GB, free: 10.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.4117, allocations: 1.214 MB / 0.7016 GB, free: 9.695 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.4117, allocations: 29.36 kB / 0.7016 GB, free: 9.664 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.4119, allocations: 263.8 kB / 0.7019 GB, free: 9.484 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.4119, allocations: 25.84 kB / 0.7019 GB, free: 9.465 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003515/0.4123, allocations: 353.5 kB / 0.7023 GB, free: 9.367 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.668e-05/0.4123, allocations: 310.7 kB / 0.7026 GB, free: 9.062 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.4136, allocations: 1.371 MB / 0.7039 GB, free: 8.609 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.415, allocations: 1.503 MB / 0.7054 GB, free: 8.086 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006901/0.4219, allocations: 3.562 MB / 0.7088 GB, free: 6.242 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4219, allocations: 0.6875 kB / 0.7088 GB, free: 6.242 MB / 494.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003827/0.4257, allocations: 3.998 MB / 0.7127 GB, free: 4.273 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.4258, allocations: 9.531 kB / 0.7128 GB, free: 4.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.4258, allocations: 3.016 kB / 0.7128 GB, free: 4.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4258, allocations: 2.125 kB / 0.7128 GB, free: 4.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.4259, allocations: 22.34 kB / 0.7128 GB, free: 4.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.426, allocations: 1.625 kB / 0.7128 GB, free: 4.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.4265, allocations: 233.8 kB / 0.713 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.396e-05/0.4266, allocations: 22.94 kB / 0.713 GB, free: 4.082 MB / 494.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.0003057/0.4269, allocations: 244.8 kB / 0.7133 GB, free: 3.961 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.845e-05/0.4269, allocations: 69.22 kB / 0.7133 GB, free: 3.906 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002468/0.4272, allocations: 78.27 kB / 0.7134 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4272, allocations: 1.438 kB / 0.7134 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.4272, allocations: 5.906 kB / 0.7134 GB, free: 3.844 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.4272, allocations: 0 / 0.7134 GB, free: 3.844 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00045/0.4277, allocations: 0.4905 MB / 0.7139 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4277, allocations: 2.062 kB / 0.7139 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.086e-05/0.4277, allocations: 7.203 kB / 0.7139 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.4278, allocations: 5.375 kB / 0.7139 GB, free: 3.566 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.4278, allocations: 3.125 kB / 0.7139 GB, free: 3.566 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4278, allocations: 5.125 kB / 0.7139 GB, free: 3.562 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4278, allocations: 1.688 kB / 0.7139 GB, free: 3.562 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008828/0.4287, allocations: 1.005 MB / 0.7149 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.4288, allocations: 153.8 kB / 0.715 GB, free: 3.266 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.4288, allocations: 2.703 kB / 0.715 GB, free: 3.266 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.429, allocations: 5.109 kB / 0.715 GB, free: 3.266 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.228e-05/0.429, allocations: 13.64 kB / 0.7151 GB, free: 3.258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.404e-05/0.4291, allocations: 15.84 kB / 0.7151 GB, free: 3.258 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006957/0.4298, allocations: 0.6701 MB / 0.7157 GB, free: 3.031 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4298, allocations: 0 / 0.7157 GB, free: 3.031 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001982/0.4318, allocations: 0.5762 MB / 0.7163 GB, free: 2.934 MB / 494.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.001657/0.4334, allocations: 0.6862 MB / 0.717 GB, free: 2.734 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.4356, allocations: 2.551 MB / 0.7195 GB, free: 1.711 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.4356, allocations: 0 / 0.7195 GB, free: 1.711 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003275/0.4359, allocations: 340.5 kB / 0.7198 GB, free: 1.703 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.4362, allocations: 40.25 kB / 0.7198 GB, free: 1.672 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.4382, allocations: 1.753 MB / 0.7215 GB, free: 1.113 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.4386, allocations: 0.9634 MB / 0.7225 GB, free: 424 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.4387, allocations: 38.78 kB / 0.7225 GB, free: 412 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.407e-05/0.4388, allocations: 30.05 kB / 0.7225 GB, free: 404 kB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4388, allocations: 1.062 kB / 0.7225 GB, free: 404 kB / 494.1 MB Notification: Performance of Templates: time 0.02069/0.4595, allocations: 13.56 MB / 0.7358 GB, free: 5.91 MB / 0.4981 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)