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.001029/0.001028, allocations: 107 kB / 16.36 MB, free: 6.336 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.001009/0.001009, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.245/1.245, allocations: 222.9 MB / 241 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.002021/0.002021, allocations: 286.1 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8918/0.8918, allocations: 169.2 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 97.02 kB / 0.5967 GB, free: 14.42 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1384, allocations: 86.97 MB / 0.6816 GB, free: 7.438 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002183/0.1406, allocations: 1.418 MB / 0.683 GB, free: 6.004 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005418/0.1461, allocations: 4.2 MB / 0.6871 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.911e-05/0.1461, allocations: 0 / 0.6871 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.929e-05/0.1462, allocations: 11.88 kB / 0.6871 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001769/0.1464, allocations: 31.83 kB / 0.6872 GB, free: 1.738 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.002897/0.1493, allocations: 1.503 MB / 0.6886 GB, free: 236 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.1494, allocations: 99.66 kB / 0.6887 GB, free: 136 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.688e-05/0.1495, allocations: 4 kB / 0.6887 GB, free: 132 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.017e-05/0.1495, allocations: 39.91 kB / 0.6888 GB, free: 92 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2412/0.3908, allocations: 150.7 kB / 0.6889 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.302e-05/0.3909, allocations: 13.78 kB / 0.6889 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003843/0.3947, allocations: 2.199 MB / 0.6911 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000247/0.395, allocations: 270.4 kB / 0.6913 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003219/0.3953, allocations: 278.2 kB / 0.6916 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003777/0.3991, allocations: 2.116 MB / 0.6937 GB, free: 12.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3991, allocations: 0 / 0.6937 GB, free: 12.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3991, allocations: 4.469 kB / 0.6937 GB, free: 12.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.3991, allocations: 0 / 0.6937 GB, free: 12.59 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.00851/0.4077, allocations: 1.293 MB / 0.6949 GB, free: 11.73 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.4077, allocations: 10.16 kB / 0.6949 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003648/0.4081, allocations: 90.92 kB / 0.695 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.4085, allocations: 369.5 kB / 0.6954 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.4085, allocations: 3.406 kB / 0.6954 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/0.4085, allocations: 6.828 kB / 0.6954 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.409, allocations: 395.3 kB / 0.6958 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.409, allocations: 6.625 kB / 0.6958 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.409, allocations: 0.7031 kB / 0.6958 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.409, allocations: 1.031 kB / 0.6958 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.4095, allocations: 434 kB / 0.6962 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005549/0.41, allocations: 0.6347 MB / 0.6968 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005337/0.4106, allocations: 0.5661 MB / 0.6974 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.4109, allocations: 334.1 kB / 0.6977 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007189/0.4116, allocations: 1.027 MB / 0.6987 GB, free: 9.883 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003991/0.412, allocations: 414.6 kB / 0.6991 GB, free: 9.812 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.4121, allocations: 0 / 0.6991 GB, free: 9.812 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.001399/0.4135, allocations: 1.289 MB / 0.7003 GB, free: 9.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.4135, allocations: 82.11 kB / 0.7004 GB, free: 9.637 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/0.4148, allocations: 1.209 MB / 0.7016 GB, free: 9.387 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.4148, allocations: 31.52 kB / 0.7016 GB, free: 9.352 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.415, allocations: 260.5 kB / 0.7019 GB, free: 9.176 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.415, allocations: 25.38 kB / 0.7019 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003695/0.4154, allocations: 353.1 kB / 0.7022 GB, free: 9.059 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.243e-05/0.4155, allocations: 313 kB / 0.7025 GB, free: 8.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.4168, allocations: 1.376 MB / 0.7039 GB, free: 8.293 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.4181, allocations: 1.51 MB / 0.7054 GB, free: 7.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006717/0.4248, allocations: 3.555 MB / 0.7088 GB, free: 5.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4249, allocations: 0 / 0.7088 GB, free: 5.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003831/0.4287, allocations: 4 MB / 0.7127 GB, free: 3.961 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.4287, allocations: 8.906 kB / 0.7127 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.4287, allocations: 3.062 kB / 0.7127 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.4288, allocations: 1.531 kB / 0.7127 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.4289, allocations: 27.02 kB / 0.7128 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.4289, allocations: 3.578 kB / 0.7128 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005387/0.4295, allocations: 227.8 kB / 0.713 GB, free: 3.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-05/0.4295, allocations: 23.23 kB / 0.713 GB, free: 3.77 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.0003088/0.4298, allocations: 240.8 kB / 0.7132 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.653e-05/0.4299, allocations: 70.06 kB / 0.7133 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002587/0.4302, allocations: 78.7 kB / 0.7134 GB, free: 3.535 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.4302, allocations: 5.375 kB / 0.7134 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4302, allocations: 0 / 0.7134 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4302, allocations: 2 kB / 0.7134 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000459/0.4307, allocations: 0.4899 MB / 0.7139 GB, free: 3.258 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4307, allocations: 1.625 kB / 0.7139 GB, free: 3.258 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.891e-05/0.4307, allocations: 9.938 kB / 0.7139 GB, free: 3.254 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.4308, allocations: 5.906 kB / 0.7139 GB, free: 3.25 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.4308, allocations: 3.656 kB / 0.7139 GB, free: 3.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.4308, allocations: 2.531 kB / 0.7139 GB, free: 3.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4308, allocations: 0 / 0.7139 GB, free: 3.25 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008687/0.4317, allocations: 1.001 MB / 0.7149 GB, free: 3.105 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.711e-05/0.4317, allocations: 154.8 kB / 0.715 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.243e-05/0.4318, allocations: 2.75 kB / 0.715 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.432, allocations: 13.48 kB / 0.715 GB, free: 2.953 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.064e-05/0.432, allocations: 9.359 kB / 0.715 GB, free: 2.949 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.432, allocations: 13.69 kB / 0.7151 GB, free: 2.949 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007319/0.4328, allocations: 0.6739 MB / 0.7157 GB, free: 2.719 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4328, allocations: 0 / 0.7157 GB, free: 2.719 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002118/0.4349, allocations: 0.5785 MB / 0.7163 GB, free: 2.617 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.001684/0.4366, allocations: 0.6852 MB / 0.717 GB, free: 2.422 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002156/0.4388, allocations: 2.553 MB / 0.7194 GB, free: 1.395 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4388, allocations: 0 / 0.7194 GB, free: 1.395 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003201/0.4391, allocations: 339.1 kB / 0.7198 GB, free: 1.387 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.4394, allocations: 43.33 kB / 0.7198 GB, free: 1.355 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.4414, allocations: 1.754 MB / 0.7215 GB, free: 0.793 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.4418, allocations: 0.965 MB / 0.7225 GB, free: 96 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001296/0.442, allocations: 36.97 kB / 0.7225 GB, free: 84 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.4421, allocations: 25.36 kB / 0.7225 GB, free: 80 kB / 494.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4421, allocations: 0 / 0.7225 GB, free: 80 kB / 494.1 MB Notification: Performance of Templates: time 0.02062/0.4627, allocations: 13.56 MB / 0.7358 GB, free: 5.738 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 cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)