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_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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.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.001426/0.001426, allocations: 108 kB / 15.61 MB, free: 152 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.001581/0.001582, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.733/2.733, allocations: 472.7 MB / 0.7451 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.69 kB / 0.9121 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2748, allocations: 159.9 MB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002332/0.2772, allocations: 1.418 MB / 1.07 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006186/0.2834, allocations: 4.201 MB / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.091e-05/0.2835, allocations: 0 / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.2836, allocations: 15.86 kB / 1.074 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002368/0.2839, allocations: 35.78 kB / 1.074 GB, free: 4.633 MB / 0.8262 GB [/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/Buildings 12.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.003898/0.2878, allocations: 1.504 MB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00014/0.2879, allocations: 95.73 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.793e-05/0.288, allocations: 7.984 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.893e-05/0.2881, allocations: 51.78 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.2883, allocations: 143.6 kB / 1.076 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.385e-05/0.2883, allocations: 12 kB / 1.076 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003169/0.2915, allocations: 2.165 MB / 1.078 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.2918, allocations: 263.8 kB / 1.078 GB, free: 408 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002548/0.292, allocations: 278.3 kB / 1.078 GB, free: 128 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003332/0.2954, allocations: 2.104 MB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2954, allocations: 0 / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2954, allocations: 0 / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.293e-05/0.2954, allocations: 7.984 kB / 1.08 GB, free: 14 MB / 0.8419 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.01038/0.3058, allocations: 1.292 MB / 1.082 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3059, allocations: 12.03 kB / 1.082 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003943/0.3063, allocations: 91.59 kB / 1.082 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003806/0.3067, allocations: 357 kB / 1.082 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.3067, allocations: 8.375 kB / 1.082 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.159e-05/0.3067, allocations: 8.359 kB / 1.082 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004265/0.3072, allocations: 395.4 kB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3072, allocations: 4 kB / 1.082 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.3072, allocations: 4 kB / 1.082 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3072, allocations: 0 / 1.082 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.3077, allocations: 435.7 kB / 1.083 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005556/0.3082, allocations: 0.6405 MB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004997/0.3087, allocations: 0.5633 MB / 1.084 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.3091, allocations: 333.7 kB / 1.084 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001047/0.3101, allocations: 1.032 MB / 1.085 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003969/0.3105, allocations: 408.8 kB / 1.086 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.3105, allocations: 0 / 1.086 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001317/0.3119, allocations: 1.293 MB / 1.087 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.3119, allocations: 85.23 kB / 1.087 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.313, allocations: 1.21 MB / 1.088 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.3131, allocations: 29.7 kB / 1.088 GB, free: 5.371 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.3133, allocations: 257.4 kB / 1.088 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.3133, allocations: 23.73 kB / 1.089 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003094/0.3136, allocations: 351.6 kB / 1.089 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.517e-05/0.3137, allocations: 310 kB / 1.089 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.3149, allocations: 1.373 MB / 1.09 GB, free: 3.059 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.3162, allocations: 1.509 MB / 1.092 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007127/0.3234, allocations: 3.556 MB / 1.095 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3234, allocations: 0 / 1.095 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004225/0.3276, allocations: 4.014 MB / 1.099 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3276, allocations: 5.562 kB / 1.099 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.3277, allocations: 4 kB / 1.099 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3277, allocations: 0 / 1.099 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.3278, allocations: 15.98 kB / 1.099 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.3278, allocations: 4 kB / 1.099 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004701/0.3283, allocations: 228.3 kB / 1.1 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-05/0.3284, allocations: 24.02 kB / 1.1 GB, free: 9.562 MB / 0.8575 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.0002897/0.3287, allocations: 249.6 kB / 1.1 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.379e-05/0.3287, allocations: 70.66 kB / 1.1 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.329, allocations: 75.06 kB / 1.1 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.329, allocations: 0 / 1.1 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.329, allocations: 0 / 1.1 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.3291, allocations: 8.016 kB / 1.1 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004012/0.3295, allocations: 0.493 MB / 1.1 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3295, allocations: 0 / 1.1 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.3295, allocations: 11.92 kB / 1.1 GB, free: 8.598 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.3296, allocations: 4 kB / 1.1 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.3296, allocations: 0 / 1.1 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.3296, allocations: 0 / 1.1 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3296, allocations: 3.938 kB / 1.1 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008775/0.3305, allocations: 1.001 MB / 1.101 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.3306, allocations: 151.8 kB / 1.102 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.003e-05/0.3306, allocations: 12 kB / 1.102 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.3308, allocations: 7.984 kB / 1.102 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.459e-05/0.3308, allocations: 4 kB / 1.102 GB, free: 7.375 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.3309, allocations: 11.97 kB / 1.102 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0006892/0.3316, allocations: 0.6728 MB / 1.102 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3316, allocations: 0 / 1.102 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00137/0.3329, allocations: 0.5779 MB / 1.103 GB, free: 6.105 MB / 0.8575 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.001684/0.3346, allocations: 0.6903 MB / 1.104 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002233/0.3369, allocations: 2.556 MB / 1.106 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3369, allocations: 64 / 1.106 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.3372, allocations: 339.8 kB / 1.106 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.3375, allocations: 36.53 kB / 1.106 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.3395, allocations: 1.775 MB / 1.108 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/0.34, allocations: 0.964 MB / 1.109 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001726/0.3402, allocations: 32.56 kB / 1.109 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.423e-05/0.3403, allocations: 27.41 kB / 1.109 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of SimCode: time 3.7e-07/0.3403, allocations: 0 / 1.109 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of Templates: time 0.02274/0.3631, allocations: 13.56 MB / 1.122 GB, free: 2.109 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches