Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001992/0.001992, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.002588/0.002588, allocations: 161.7 kB / 23.55 MB, free: 0.8906 MB / 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 1.543/1.543, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.743/2.743, allocations: 359 MB / 0.6048 GB, free: 10.94 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 5.781e-06/5.781e-06, allocations: 4 kB / 0.7865 GB, free: 12.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.66e-05/4.238e-05, allocations: 6.469 kB / 0.7865 GB, free: 12.7 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003724/0.003766, allocations: 1.738 MB / 0.7882 GB, free: 10.96 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.009911/0.01368, allocations: 4.897 MB / 0.7929 GB, free: 6.066 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.01384, allocations: 0 / 0.7929 GB, free: 6.066 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.01537, allocations: 342.3 kB / 0.7933 GB, free: 5.73 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001751/0.01554, allocations: 64.75 kB / 0.7933 GB, free: 5.668 MB / 0.7448 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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.005046/0.02059, allocations: 1.591 MB / 0.7949 GB, free: 4.082 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.02094, allocations: 170.7 kB / 0.7951 GB, free: 3.918 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.782e-05/0.02099, allocations: 5.812 kB / 0.7951 GB, free: 3.914 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.02113, allocations: 83.73 kB / 0.7951 GB, free: 3.832 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002616/0.02139, allocations: 151.6 kB / 0.7953 GB, free: 3.684 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 4.93e-05/0.02144, allocations: 16 kB / 0.7953 GB, free: 3.668 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004556/0.026, allocations: 2.379 MB / 0.7976 GB, free: 1.285 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0003157/0.02632, allocations: 287.8 kB / 0.7979 GB, free: 1.004 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0002451/0.02656, allocations: 160.5 kB / 0.7981 GB, free: 0.8438 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.004029/0.03059, allocations: 2.523 MB / 0.8005 GB, free: 14.32 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.0306, allocations: 0 / 0.8005 GB, free: 14.32 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.733e-06/0.0306, allocations: 4 kB / 0.8005 GB, free: 14.32 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.03061, allocations: 0 / 0.8005 GB, free: 14.32 MB / 0.7605 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.009312/0.03992, allocations: 1.335 MB / 0.8018 GB, free: 12.95 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.03997, allocations: 9.719 kB / 0.8018 GB, free: 12.94 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004769/0.04045, allocations: 100.2 kB / 0.8019 GB, free: 12.84 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007008/0.04115, allocations: 356.7 kB / 0.8023 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.04117, allocations: 9.125 kB / 0.8023 GB, free: 12.45 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.29e-05/0.04121, allocations: 8.375 kB / 0.8023 GB, free: 12.44 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005609/0.04177, allocations: 388.7 kB / 0.8027 GB, free: 12.05 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.04178, allocations: 192 / 0.8027 GB, free: 12.05 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.0418, allocations: 1.719 kB / 0.8027 GB, free: 12.05 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.04181, allocations: 7.938 kB / 0.8027 GB, free: 12.04 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005519/0.04236, allocations: 428.6 kB / 0.8031 GB, free: 11.62 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.04339, allocations: 0.6053 MB / 0.8037 GB, free: 10.99 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007023/0.04409, allocations: 0.5577 MB / 0.8042 GB, free: 10.41 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004159/0.04451, allocations: 337.7 kB / 0.8045 GB, free: 10.08 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006806/0.04519, allocations: 128.9 kB / 0.8047 GB, free: 9.957 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005435/0.04573, allocations: 406 kB / 0.805 GB, free: 9.543 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.04574, allocations: 0 / 0.805 GB, free: 9.543 MB / 0.7605 GB Notification: Performance of matching and sorting (n=8): time 0.001823/0.04756, allocations: 1.307 MB / 0.8063 GB, free: 8.23 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/0.04764, allocations: 85.55 kB / 0.8064 GB, free: 8.129 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.0493, allocations: 1.299 MB / 0.8077 GB, free: 6.82 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.307e-05/0.04935, allocations: 29.7 kB / 0.8077 GB, free: 6.785 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003064/0.04966, allocations: 289.9 kB / 0.808 GB, free: 6.496 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 4.578e-05/0.04971, allocations: 24.89 kB / 0.808 GB, free: 6.473 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000419/0.05013, allocations: 339.6 kB / 0.8083 GB, free: 6.137 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002021/0.05033, allocations: 322 kB / 0.8086 GB, free: 5.816 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/0.052, allocations: 1.37 MB / 0.81 GB, free: 4.445 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/0.05403, allocations: 1.509 MB / 0.8114 GB, free: 2.926 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008559/0.06259, allocations: 3.554 MB / 0.8149 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.0626, allocations: 4.656 kB / 0.8149 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005874/0.06847, allocations: 4.027 MB / 0.8188 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.0685, allocations: 8 kB / 0.8189 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.097e-05/0.06852, allocations: 0 / 0.8189 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.971e-05/0.06855, allocations: 4 kB / 0.8189 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.0687, allocations: 19.92 kB / 0.8189 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.06871, allocations: 0 / 0.8189 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006279/0.06933, allocations: 241.4 kB / 0.8191 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.79e-05/0.0694, allocations: 19.98 kB / 0.8191 GB, free: 10.93 MB / 0.7761 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 (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.000405/0.06981, allocations: 253.6 kB / 0.8194 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.06992, allocations: 91.17 kB / 0.8195 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.07123, allocations: 0.9445 MB / 0.8204 GB, free: 9.625 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.07123, allocations: 0 / 0.8204 GB, free: 9.625 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.07124, allocations: 7.938 kB / 0.8204 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.07125, allocations: 0 / 0.8204 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005769/0.07182, allocations: 464.3 kB / 0.8208 GB, free: 9.137 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.07183, allocations: 8.016 kB / 0.8208 GB, free: 9.129 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.189e-05/0.07191, allocations: 11.98 kB / 0.8208 GB, free: 9.117 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.07191, allocations: 0 / 0.8208 GB, free: 9.117 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.07193, allocations: 7.984 kB / 0.8209 GB, free: 9.109 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.07193, allocations: 0 / 0.8209 GB, free: 9.109 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.07194, allocations: 0 / 0.8209 GB, free: 9.109 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.0732, allocations: 1.018 MB / 0.8218 GB, free: 8.07 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.07333, allocations: 95.23 kB / 0.8219 GB, free: 7.977 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.531e-05/0.0734, allocations: 4 kB / 0.8219 GB, free: 7.973 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.07355, allocations: 4 kB / 0.8219 GB, free: 7.969 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.005e-05/0.07361, allocations: 15.92 kB / 0.822 GB, free: 7.953 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.07365, allocations: 11.98 kB / 0.822 GB, free: 7.941 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.001006/0.07466, allocations: 0.7261 MB / 0.8227 GB, free: 7.211 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.07466, allocations: 0 / 0.8227 GB, free: 7.211 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.001858/0.07652, allocations: 0.5845 MB / 0.8233 GB, free: 6.625 MB / 0.7761 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.002217/0.07874, allocations: 0.7965 MB / 0.824 GB, free: 5.844 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.002853/0.08159, allocations: 1.99 MB / 0.826 GB, free: 3.84 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.08159, allocations: 4 kB / 0.826 GB, free: 3.836 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004296/0.08202, allocations: 339.7 kB / 0.8263 GB, free: 3.504 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.08248, allocations: 63.08 kB / 0.8264 GB, free: 3.445 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.08533, allocations: 1.903 MB / 0.8282 GB, free: 1.5 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00047/0.0858, allocations: 397.8 kB / 0.8286 GB, free: 1.09 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001758/0.08597, allocations: 41.45 kB / 0.8286 GB, free: 1.051 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.0861, allocations: 36.42 kB / 0.8287 GB, free: 1.016 MB / 0.7761 GB Notification: Performance of SimCode: time 1.643e-06/0.0861, allocations: 0 / 0.8287 GB, free: 1.016 MB / 0.7761 GB Notification: Performance of Templates: time 0.02948/0.1156, allocations: 14.68 MB / 0.843 GB, free: 2.496 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.108474003965966]