Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001495/0.001495, allocations: 73.09 kB / 20.65 MB, free: 3.844 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.001886/0.001886, allocations: 173 kB / 24.06 MB, free: 452 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.9286/0.9286, allocations: 177.2 MB / 204.5 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.008/2.008, allocations: 429.5 MB / 0.6743 GB, free: 3.914 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.8795 GB, free: 5.902 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.486e-05/1.596e-05, allocations: 6.844 kB / 0.8795 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001883/0.001899, allocations: 1.811 MB / 0.8813 GB, free: 4.102 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.005067/0.006966, allocations: 5.125 MB / 0.8863 GB, free: 14.97 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.364e-05/0.00703, allocations: 0 / 0.8863 GB, free: 14.97 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0007383/0.007768, allocations: 342.3 kB / 0.8866 GB, free: 14.63 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.676e-05/0.007845, allocations: 71.59 kB / 0.8867 GB, free: 14.56 MB / 0.8542 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.001981/0.009826, allocations: 1.609 MB / 0.8882 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.009988, allocations: 171.2 kB / 0.8884 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 3.242e-05/0.01002, allocations: 9.75 kB / 0.8884 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 7.257e-05/0.01009, allocations: 83.78 kB / 0.8885 GB, free: 12.69 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 8.78e-05/0.01018, allocations: 61.12 kB / 0.8885 GB, free: 12.63 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.01019, allocations: 4 kB / 0.8886 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00215/0.01234, allocations: 2.425 MB / 0.8909 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.01248, allocations: 259.2 kB / 0.8912 GB, free: 9.957 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 9.351e-05/0.01257, allocations: 139.4 kB / 0.8913 GB, free: 9.82 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.001733/0.01431, allocations: 2.38 MB / 0.8936 GB, free: 7.434 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.01431, allocations: 4 kB / 0.8936 GB, free: 7.43 MB / 0.8542 GB Notification: Performance of FrontEnd: time 5.11e-07/0.01431, allocations: 0 / 0.8936 GB, free: 7.43 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.01431, allocations: 0 / 0.8936 GB, free: 7.43 MB / 0.8542 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.001152/0.01547, allocations: 1.451 MB / 0.895 GB, free: 5.938 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/0.01549, allocations: 12.03 kB / 0.8951 GB, free: 5.926 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002193/0.01571, allocations: 104.2 kB / 0.8952 GB, free: 5.824 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.01598, allocations: 342.6 kB / 0.8955 GB, free: 5.453 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.01599, allocations: 4.312 kB / 0.8955 GB, free: 5.449 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.01602, allocations: 12.38 kB / 0.8955 GB, free: 5.438 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.01621, allocations: 230.2 kB / 0.8957 GB, free: 5.195 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.01621, allocations: 192 / 0.8957 GB, free: 5.195 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.01622, allocations: 384 / 0.8957 GB, free: 5.195 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.01623, allocations: 3.938 kB / 0.8957 GB, free: 5.191 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.01635, allocations: 207.8 kB / 0.8959 GB, free: 4.988 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003178/0.01667, allocations: 0.5019 MB / 0.8964 GB, free: 4.457 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001936/0.01686, allocations: 297.9 kB / 0.8967 GB, free: 4.141 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.01702, allocations: 167.5 kB / 0.8969 GB, free: 3.969 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002752/0.0173, allocations: 131.7 kB / 0.897 GB, free: 3.84 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001681/0.01747, allocations: 236.3 kB / 0.8972 GB, free: 3.586 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.01747, allocations: 0 / 0.8972 GB, free: 3.586 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.000574/0.01804, allocations: 0.77 MB / 0.898 GB, free: 2.809 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.01808, allocations: 85.05 kB / 0.898 GB, free: 2.707 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007196/0.0188, allocations: 1.278 MB / 0.8993 GB, free: 1.418 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.01882, allocations: 25.7 kB / 0.8993 GB, free: 1.387 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.01901, allocations: 392.4 kB / 0.8997 GB, free: 0.9961 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.01905, allocations: 23.78 kB / 0.8997 GB, free: 0.9727 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002619/0.01931, allocations: 422.2 kB / 0.9001 GB, free: 0.5547 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.01943, allocations: 0.4927 MB / 0.9006 GB, free: 56 kB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003308/0.01976, allocations: 498.4 kB / 0.9011 GB, free: 15.57 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004021/0.02016, allocations: 0.6639 MB / 0.9017 GB, free: 14.89 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.02173, allocations: 2.25 MB / 0.9039 GB, free: 12.55 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.02173, allocations: 0 / 0.9039 GB, free: 12.55 MB / 0.8698 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002538/0.02427, allocations: 3.859 MB / 0.9077 GB, free: 8.652 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.02429, allocations: 4 kB / 0.9077 GB, free: 8.648 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.0243, allocations: 0 / 0.9077 GB, free: 8.648 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.02431, allocations: 11.97 kB / 0.9077 GB, free: 8.637 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.696e-05/0.0244, allocations: 23.92 kB / 0.9077 GB, free: 8.613 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.0244, allocations: 7.938 kB / 0.9077 GB, free: 8.605 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.02466, allocations: 237.4 kB / 0.908 GB, free: 8.371 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.212e-05/0.0247, allocations: 27.97 kB / 0.908 GB, free: 8.344 MB / 0.8698 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.0001225/0.02482, allocations: 160.6 kB / 0.9081 GB, free: 8.176 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.413e-05/0.02486, allocations: 75.3 kB / 0.9082 GB, free: 8.102 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004268/0.02529, allocations: 0.5815 MB / 0.9088 GB, free: 7.508 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.02529, allocations: 4 kB / 0.9088 GB, free: 7.504 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.02529, allocations: 0 / 0.9088 GB, free: 7.504 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.0253, allocations: 3.938 kB / 0.9088 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002598/0.02556, allocations: 399.4 kB / 0.9092 GB, free: 7.086 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.02556, allocations: 0 / 0.9092 GB, free: 7.086 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.333e-05/0.02559, allocations: 8 kB / 0.9092 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.0256, allocations: 0 / 0.9092 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.02561, allocations: 0 / 0.9092 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.02561, allocations: 11.92 kB / 0.9092 GB, free: 7.066 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.02561, allocations: 0 / 0.9092 GB, free: 7.066 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003985/0.02601, allocations: 0.6622 MB / 0.9098 GB, free: 6.379 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/0.02607, allocations: 87.28 kB / 0.9099 GB, free: 6.293 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.867e-05/0.02611, allocations: 7.984 kB / 0.9099 GB, free: 6.285 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.079e-05/0.02618, allocations: 4 kB / 0.9099 GB, free: 6.281 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.676e-05/0.0262, allocations: 7.984 kB / 0.9099 GB, free: 6.273 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.02623, allocations: 11.98 kB / 0.9099 GB, free: 6.262 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003182/0.02655, allocations: 0.5658 MB / 0.9105 GB, free: 5.691 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6e-08/0.02655, allocations: 0 / 0.9105 GB, free: 5.691 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0009465/0.02749, allocations: 0.5923 MB / 0.9111 GB, free: 5.098 MB / 0.8698 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.001241/0.02873, allocations: 0.8069 MB / 0.9119 GB, free: 4.309 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000736/0.02947, allocations: 1.086 MB / 0.9129 GB, free: 3.203 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.02947, allocations: 0 / 0.9129 GB, free: 3.203 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.02961, allocations: 167.6 kB / 0.9131 GB, free: 3.035 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.02995, allocations: 64.83 kB / 0.9131 GB, free: 2.973 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.03109, allocations: 1.541 MB / 0.9146 GB, free: 1.387 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001026/0.03119, allocations: 191.6 kB / 0.9148 GB, free: 1.18 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 8.137e-05/0.03128, allocations: 37.45 kB / 0.9149 GB, free: 1.145 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.03141, allocations: 114.2 kB / 0.915 GB, free: 1.031 MB / 0.8698 GB Notification: Performance of SimCode: time 5.11e-07/0.03141, allocations: 0 / 0.915 GB, free: 1.031 MB / 0.8698 GB Notification: Performance of Templates: time 0.01712/0.04853, allocations: 16.57 MB / 0.9312 GB, free: 0.6055 MB / 0.8855 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.661809219047427]