Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009373/0.0009373, allocations: 84.8 kB / 20.75 MB, free: 3.738 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 161 kB / 24.17 MB, free: 332 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9299/0.9299, allocations: 177.2 MB / 204.6 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.861/1.861, allocations: 377.9 MB / 0.624 GB, free: 8.379 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 0.7601 GB, free: 6.555 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037e-05/1.147e-05, allocations: 4.703 kB / 0.7601 GB, free: 6.551 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001843/0.001854, allocations: 1.811 MB / 0.7619 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.005139/0.006993, allocations: 5.22 MB / 0.767 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.856e-05/0.007052, allocations: 3.938 kB / 0.767 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0007049/0.007757, allocations: 347.3 kB / 0.7673 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 6.626e-05/0.007823, allocations: 67.53 kB / 0.7674 GB, free: 15.14 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.001956/0.009779, allocations: 1.63 MB / 0.769 GB, free: 13.51 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.009933, allocations: 157.8 kB / 0.7691 GB, free: 13.36 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 3.563e-05/0.009969, allocations: 22.42 kB / 0.7691 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 7.28e-05/0.01004, allocations: 75.8 kB / 0.7692 GB, free: 13.26 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 8.287e-05/0.01012, allocations: 65.11 kB / 0.7693 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.01014, allocations: 5.781 kB / 0.7693 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.01237, allocations: 2.403 MB / 0.7716 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.01252, allocations: 264.1 kB / 0.7719 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 9.304e-05/0.01261, allocations: 139.3 kB / 0.772 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.001689/0.0143, allocations: 2.381 MB / 0.7743 GB, free: 8.02 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.0143, allocations: 1.406 kB / 0.7743 GB, free: 8.02 MB / 0.7292 GB Notification: Performance of FrontEnd: time 5.91e-07/0.0143, allocations: 0 / 0.7743 GB, free: 8.02 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.01431, allocations: 0 / 0.7743 GB, free: 8.02 MB / 0.7292 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.001054/0.01536, allocations: 1.277 MB / 0.7756 GB, free: 6.715 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 2.583e-05/0.01539, allocations: 11.97 kB / 0.7756 GB, free: 6.703 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.01556, allocations: 32.89 kB / 0.7756 GB, free: 6.672 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.01583, allocations: 335.7 kB / 0.776 GB, free: 6.309 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-06/0.01584, allocations: 4.375 kB / 0.776 GB, free: 6.305 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.571e-05/0.01586, allocations: 10.81 kB / 0.776 GB, free: 6.297 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.01604, allocations: 228.5 kB / 0.7762 GB, free: 6.059 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.01605, allocations: 192 / 0.7762 GB, free: 6.059 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.01605, allocations: 4.375 kB / 0.7762 GB, free: 6.055 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.01606, allocations: 3.938 kB / 0.7762 GB, free: 6.051 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001123/0.01617, allocations: 196.8 kB / 0.7764 GB, free: 5.859 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002038/0.01638, allocations: 260.5 kB / 0.7766 GB, free: 5.586 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.01655, allocations: 275.8 kB / 0.7769 GB, free: 5.301 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.152e-05/0.01664, allocations: 161.9 kB / 0.777 GB, free: 5.137 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004842/0.01713, allocations: 124.8 kB / 0.7772 GB, free: 5.02 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.01728, allocations: 225 kB / 0.7774 GB, free: 4.781 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 8.91e-07/0.01728, allocations: 0 / 0.7774 GB, free: 4.781 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.0003607/0.01764, allocations: 490.7 kB / 0.7778 GB, free: 4.297 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.01768, allocations: 89.09 kB / 0.7779 GB, free: 4.191 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005238/0.0182, allocations: 1.057 MB / 0.779 GB, free: 3.125 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.01823, allocations: 33.69 kB / 0.779 GB, free: 3.086 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.01834, allocations: 270.2 kB / 0.7793 GB, free: 2.816 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/0.01837, allocations: 31.77 kB / 0.7793 GB, free: 2.785 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.01855, allocations: 331.9 kB / 0.7796 GB, free: 2.457 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.01862, allocations: 321.9 kB / 0.7799 GB, free: 2.137 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.01893, allocations: 0.5141 MB / 0.7804 GB, free: 1.621 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.01925, allocations: 0.6003 MB / 0.781 GB, free: 1.012 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.02062, allocations: 2.237 MB / 0.7832 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.02062, allocations: 0 / 0.7832 GB, free: 14.68 MB / 0.7448 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002449/0.02307, allocations: 3.726 MB / 0.7868 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.02308, allocations: 7.984 kB / 0.7868 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.02309, allocations: 0.9375 kB / 0.7868 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.02311, allocations: 4 kB / 0.7868 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.781e-05/0.02318, allocations: 24.98 kB / 0.7869 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/0.02319, allocations: 0 / 0.7869 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.02342, allocations: 245.2 kB / 0.7871 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.02344, allocations: 17.14 kB / 0.7871 GB, free: 10.64 MB / 0.7448 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 (labels[1],cluSiz[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.0001092/0.02355, allocations: 121.2 kB / 0.7872 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.996e-05/0.02357, allocations: 11.98 kB / 0.7872 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002721/0.02385, allocations: 385.6 kB / 0.7876 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.02385, allocations: 3.984 kB / 0.7876 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.02385, allocations: 0 / 0.7876 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.02385, allocations: 5.094 kB / 0.7876 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.02405, allocations: 303.2 kB / 0.7879 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.02405, allocations: 0 / 0.7879 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.972e-05/0.02408, allocations: 9.422 kB / 0.7879 GB, free: 9.789 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.02408, allocations: 0 / 0.7879 GB, free: 9.789 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.02408, allocations: 8 kB / 0.7879 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.02409, allocations: 0 / 0.7879 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.02409, allocations: 1.094 kB / 0.7879 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002284/0.02431, allocations: 383.4 kB / 0.7883 GB, free: 9.387 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-05/0.02437, allocations: 92.11 kB / 0.7884 GB, free: 9.297 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.0244, allocations: 0 / 0.7884 GB, free: 9.297 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.417e-05/0.02447, allocations: 12.77 kB / 0.7884 GB, free: 9.285 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.997e-05/0.02449, allocations: 11.94 kB / 0.7884 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.02451, allocations: 16.91 kB / 0.7884 GB, free: 9.258 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002505/0.02476, allocations: 418.8 kB / 0.7888 GB, free: 8.844 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.02476, allocations: 0 / 0.7888 GB, free: 8.844 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0006686/0.02543, allocations: 0.597 MB / 0.7894 GB, free: 8.246 MB / 0.7448 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.001141/0.02657, allocations: 0.8158 MB / 0.7902 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006263/0.02719, allocations: 0.9627 MB / 0.7911 GB, free: 6.48 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 0.0002398/0.02743, allocations: 12 kB / 0.7911 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.02754, allocations: 165.6 kB / 0.7913 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001913/0.02773, allocations: 61.92 kB / 0.7914 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.02883, allocations: 1.535 MB / 0.7929 GB, free: 4.676 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001018/0.02893, allocations: 195.6 kB / 0.793 GB, free: 4.465 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.761e-05/0.02901, allocations: 33.44 kB / 0.7931 GB, free: 4.438 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.02914, allocations: 92.95 kB / 0.7932 GB, free: 4.348 MB / 0.7448 GB Notification: Performance of SimCode: time 4.4e-07/0.02914, allocations: 0 / 0.7932 GB, free: 4.348 MB / 0.7448 GB Notification: Performance of Templates: time 0.01666/0.0458, allocations: 16.28 MB / 0.8091 GB, free: 4.309 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.494989857077599]