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_SmallScaleValidation.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: translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008382/0.0008382, allocations: 99.05 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008897/0.0008898, allocations: 181.3 kB / 16.92 MB, free: 6.73 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.361/1.361, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7233/0.7233, allocations: 123 MB / 415.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003107/0.0003107, allocations: 12 kB / 0.4934 GB, free: 14 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3734/0.3737, allocations: 79.29 MB / 0.5708 GB, free: 9.926 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001932/0.3757, allocations: 1.454 MB / 0.5722 GB, free: 9.828 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006794/0.3825, allocations: 5.547 MB / 0.5776 GB, free: 6.156 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.3826, allocations: 2.062 kB / 0.5776 GB, free: 6.156 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.3837, allocations: 360.3 kB / 0.578 GB, free: 6 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.3839, allocations: 56.45 kB / 0.578 GB, free: 5.969 MB / 430.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.003322/0.3872, allocations: 1.177 MB / 0.5792 GB, free: 5.484 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.3875, allocations: 196.7 kB / 0.5794 GB, free: 5.426 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.32e-05/0.3876, allocations: 17.48 kB / 0.5794 GB, free: 5.414 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.074e-05/0.3877, allocations: 53.69 kB / 0.5794 GB, free: 5.395 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.3879, allocations: 183.7 kB / 0.5796 GB, free: 5.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.388, allocations: 15.25 kB / 0.5796 GB, free: 5.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004028/0.392, allocations: 2.185 MB / 0.5818 GB, free: 4.691 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002652/0.3923, allocations: 273.9 kB / 0.582 GB, free: 4.617 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002728/0.3926, allocations: 337.4 kB / 0.5823 GB, free: 4.387 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004064/0.3967, allocations: 2.232 MB / 0.5845 GB, free: 3.746 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3967, allocations: 0 / 0.5845 GB, free: 3.746 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3967, allocations: 0 / 0.5845 GB, free: 3.746 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.3967, allocations: 0 / 0.5845 GB, free: 3.746 MB / 430.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.01174/0.4085, allocations: 1.303 MB / 0.5858 GB, free: 2.797 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.4085, allocations: 10.05 kB / 0.5858 GB, free: 2.797 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004024/0.4089, allocations: 96.81 kB / 0.5859 GB, free: 2.738 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.4094, allocations: 403 kB / 0.5863 GB, free: 2.422 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.4094, allocations: 3.906 kB / 0.5863 GB, free: 2.422 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.842e-05/0.4095, allocations: 14.7 kB / 0.5863 GB, free: 2.414 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004919/0.41, allocations: 388.6 kB / 0.5867 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.41, allocations: 3.938 kB / 0.5867 GB, free: 2.352 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.41, allocations: 2.031 kB / 0.5867 GB, free: 2.352 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.41, allocations: 5.562 kB / 0.5867 GB, free: 2.348 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005465/0.4106, allocations: 431.7 kB / 0.5871 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007387/0.4113, allocations: 0.6633 MB / 0.5877 GB, free: 1.949 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006383/0.412, allocations: 0.5665 MB / 0.5883 GB, free: 1.887 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003397/0.4123, allocations: 338.9 kB / 0.5886 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008242/0.4131, allocations: 1.037 MB / 0.5896 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/0.4136, allocations: 412 kB / 0.59 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.4136, allocations: 0 / 0.59 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.001468/0.415, allocations: 1.298 MB / 0.5913 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.4151, allocations: 88.91 kB / 0.5914 GB, free: 432 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.4166, allocations: 1.29 MB / 0.5926 GB, free: 15.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.613e-05/0.4167, allocations: 27.08 kB / 0.5927 GB, free: 15.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002358/0.4169, allocations: 287.2 kB / 0.5929 GB, free: 15.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.876e-05/0.4169, allocations: 25.11 kB / 0.593 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.4172, allocations: 288.3 kB / 0.5932 GB, free: 15.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.4173, allocations: 318.5 kB / 0.5935 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.4187, allocations: 1.371 MB / 0.5949 GB, free: 14.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.4201, allocations: 1.508 MB / 0.5963 GB, free: 14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007504/0.4277, allocations: 3.561 MB / 0.5998 GB, free: 11.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4277, allocations: 0 / 0.5998 GB, free: 11.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004514/0.4322, allocations: 4.014 MB / 0.6037 GB, free: 9.672 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.4322, allocations: 5.344 kB / 0.6037 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.4323, allocations: 2.125 kB / 0.6037 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.4323, allocations: 1 kB / 0.6037 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.4324, allocations: 21.02 kB / 0.6038 GB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.4324, allocations: 0 / 0.6038 GB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006694/0.4331, allocations: 231.9 kB / 0.604 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.518e-05/0.4332, allocations: 22.05 kB / 0.604 GB, free: 9.473 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.000372/0.4336, allocations: 255.8 kB / 0.6043 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.673e-05/0.4336, allocations: 75.22 kB / 0.6043 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002937/0.4339, allocations: 80.69 kB / 0.6044 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.434, allocations: 1.188 kB / 0.6044 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.434, allocations: 1.125 kB / 0.6044 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.434, allocations: 1.438 kB / 0.6044 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005697/0.4346, allocations: 0.5235 MB / 0.6049 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.185e-06/0.4346, allocations: 5.031 kB / 0.6049 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.393e-05/0.4346, allocations: 13.55 kB / 0.6049 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.4347, allocations: 1.125 kB / 0.6049 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.4347, allocations: 1.938 kB / 0.6049 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.4347, allocations: 4.906 kB / 0.6049 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4347, allocations: 1.219 kB / 0.6049 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009686/0.4357, allocations: 1.012 MB / 0.6059 GB, free: 7.922 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.4358, allocations: 163.7 kB / 0.6061 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.4359, allocations: 4 kB / 0.6061 GB, free: 7.738 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.4361, allocations: 3.984 kB / 0.6061 GB, free: 7.734 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.4361, allocations: 4 kB / 0.6061 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.562e-05/0.4361, allocations: 15.97 kB / 0.6061 GB, free: 7.715 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008312/0.437, allocations: 0.73 MB / 0.6068 GB, free: 6.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.437, allocations: 0 / 0.6068 GB, free: 6.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002118/0.4391, allocations: 0.5935 MB / 0.6074 GB, free: 6.387 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.001911/0.441, allocations: 0.6801 MB / 0.6081 GB, free: 5.719 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002457/0.4435, allocations: 2.552 MB / 0.6106 GB, free: 3.152 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4435, allocations: 64 / 0.6106 GB, free: 3.152 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003302/0.4439, allocations: 347.8 kB / 0.6109 GB, free: 2.812 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006255/0.4445, allocations: 61.5 kB / 0.611 GB, free: 2.754 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.4471, allocations: 2.087 MB / 0.613 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/0.4477, allocations: 0.9881 MB / 0.614 GB, free: 15.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002058/0.4479, allocations: 33.44 kB / 0.614 GB, free: 15.59 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.448, allocations: 31.41 kB / 0.614 GB, free: 15.55 MB / 462.1 MB Notification: Performance of SimCode: time 1.633e-06/0.448, allocations: 0 / 0.614 GB, free: 15.55 MB / 462.1 MB Notification: Performance of Templates: time 0.02265/0.4707, allocations: 13.78 MB / 0.6275 GB, free: 1.832 MB / 462.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)