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.001176/0.001176, allocations: 118.6 kB / 17.16 MB, free: 5.914 MB / 14.72 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.001366/0.001366, allocations: 206.2 kB / 20.13 MB, free: 2.969 MB / 14.72 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.386/1.386, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.8/2.8, allocations: 0.5003 GB / 0.8026 GB, free: 6.719 MB / 0.6387 GB " [Timeout remaining time 177] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 67.91 kB / 1.165 GB, free: 404 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8952/0.8971, allocations: 178.9 MB / 1.34 GB, free: 16.29 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002664/0.8998, allocations: 1.797 MB / 1.342 GB, free: 15.03 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00667/0.9064, allocations: 5.448 MB / 1.347 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.9066, allocations: 1.375 kB / 1.347 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.9079, allocations: 375 kB / 1.348 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.908, allocations: 60.66 kB / 1.348 GB, free: 11.13 MB / 1.061 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.004298/0.9123, allocations: 1.517 MB / 1.349 GB, free: 10.55 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003079/0.9126, allocations: 163.5 kB / 1.349 GB, free: 10.49 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 5.083e-05/0.9127, allocations: 5.672 kB / 1.349 GB, free: 10.48 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.465e-05/0.9127, allocations: 66 kB / 1.349 GB, free: 10.46 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/0.913, allocations: 169.2 kB / 1.35 GB, free: 10.41 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.913, allocations: 16.09 kB / 1.35 GB, free: 10.41 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004032/0.917, allocations: 2.341 MB / 1.352 GB, free: 9.699 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0002792/0.9173, allocations: 282.4 kB / 1.352 GB, free: 9.621 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002433/0.9176, allocations: 305.4 kB / 1.352 GB, free: 9.426 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.004112/0.9217, allocations: 2.202 MB / 1.355 GB, free: 8.77 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.9217, allocations: 0.7969 kB / 1.355 GB, free: 8.77 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.452e-06/0.9217, allocations: 0 / 1.355 GB, free: 8.77 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.229e-05/0.9217, allocations: 0 / 1.355 GB, free: 8.77 MB / 1.061 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.01071/0.9324, allocations: 1.419 MB / 1.356 GB, free: 7.754 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.9325, allocations: 9.875 kB / 1.356 GB, free: 7.754 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.286e-05/0.9325, allocations: 1.062 kB / 1.356 GB, free: 7.754 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.307e-05/0.9325, allocations: 38 kB / 1.356 GB, free: 7.711 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003942/0.9329, allocations: 102.4 kB / 1.356 GB, free: 7.648 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005006/0.9334, allocations: 407.7 kB / 1.356 GB, free: 7.328 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.9334, allocations: 8.359 kB / 1.357 GB, free: 7.324 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.039e-05/0.9335, allocations: 13.42 kB / 1.357 GB, free: 7.316 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004785/0.9339, allocations: 388.8 kB / 1.357 GB, free: 7.258 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.006e-06/0.9339, allocations: 0 / 1.357 GB, free: 7.258 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.934, allocations: 1.734 kB / 1.357 GB, free: 7.258 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.934, allocations: 1.094 kB / 1.357 GB, free: 7.258 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000498/0.9345, allocations: 440.6 kB / 1.357 GB, free: 7.246 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006621/0.9351, allocations: 0.6709 MB / 1.358 GB, free: 6.844 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000547/0.9357, allocations: 0.5567 MB / 1.359 GB, free: 6.789 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003342/0.936, allocations: 337.5 kB / 1.359 GB, free: 6.766 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007648/0.9368, allocations: 1.033 MB / 1.36 GB, free: 5.625 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000413/0.9372, allocations: 400 kB / 1.36 GB, free: 5.551 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.9372, allocations: 4 kB / 1.36 GB, free: 5.547 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.001529/0.9387, allocations: 1.302 MB / 1.361 GB, free: 5.426 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.9387, allocations: 84.3 kB / 1.362 GB, free: 5.328 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.9402, allocations: 1.287 MB / 1.363 GB, free: 4.824 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.9402, allocations: 31.89 kB / 1.363 GB, free: 4.789 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.9404, allocations: 294.4 kB / 1.363 GB, free: 4.562 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/0.9404, allocations: 26.48 kB / 1.363 GB, free: 4.543 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003569/0.9408, allocations: 354.5 kB / 1.364 GB, free: 4.441 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.248e-05/0.9409, allocations: 317.3 kB / 1.364 GB, free: 4.133 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.9421, allocations: 1.375 MB / 1.365 GB, free: 3.676 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.9435, allocations: 1.502 MB / 1.367 GB, free: 3.152 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00673/0.9502, allocations: 3.557 MB / 1.37 GB, free: 1.309 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.9502, allocations: 0.6094 kB / 1.37 GB, free: 1.309 MB / 1.061 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004451/0.9547, allocations: 4.021 MB / 1.374 GB, free: 15.32 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.9547, allocations: 5.688 kB / 1.374 GB, free: 15.32 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.9547, allocations: 2.797 kB / 1.374 GB, free: 15.32 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.9548, allocations: 5.281 kB / 1.374 GB, free: 15.31 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.9549, allocations: 19.12 kB / 1.374 GB, free: 15.31 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.9549, allocations: 2.328 kB / 1.374 GB, free: 15.31 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006993/0.9556, allocations: 236.6 kB / 1.374 GB, free: 15.12 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.179e-05/0.9557, allocations: 28.14 kB / 1.374 GB, free: 15.11 MB / 1.076 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.0004175/0.9561, allocations: 255.4 kB / 1.375 GB, free: 14.98 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/0.9562, allocations: 80.59 kB / 1.375 GB, free: 14.92 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002905/0.9565, allocations: 80.83 kB / 1.375 GB, free: 14.86 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.9565, allocations: 1.25 kB / 1.375 GB, free: 14.86 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.9565, allocations: 2.031 kB / 1.375 GB, free: 14.86 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.9565, allocations: 0.6094 kB / 1.375 GB, free: 14.86 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006269/0.9571, allocations: 0.5295 MB / 1.375 GB, free: 14.56 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.9571, allocations: 0 / 1.375 GB, free: 14.56 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.931e-05/0.9572, allocations: 7.125 kB / 1.375 GB, free: 14.56 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.9572, allocations: 1.562 kB / 1.375 GB, free: 14.56 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.9572, allocations: 11.12 kB / 1.375 GB, free: 14.55 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.9572, allocations: 2.266 kB / 1.375 GB, free: 14.55 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.9572, allocations: 5.203 kB / 1.375 GB, free: 14.55 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.9583, allocations: 1.01 MB / 1.376 GB, free: 14.39 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.9585, allocations: 160.1 kB / 1.376 GB, free: 14.24 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.794e-05/0.9585, allocations: 7.359 kB / 1.376 GB, free: 14.24 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.9587, allocations: 8.531 kB / 1.376 GB, free: 14.23 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.9587, allocations: 13.5 kB / 1.376 GB, free: 14.23 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.056e-05/0.9588, allocations: 13.58 kB / 1.376 GB, free: 14.23 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001016/0.9598, allocations: 0.7223 MB / 1.377 GB, free: 13.98 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9598, allocations: 0 / 1.377 GB, free: 13.98 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.002574/0.9624, allocations: 0.5916 MB / 1.378 GB, free: 13.88 MB / 1.076 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.003789/0.9661, allocations: 2.159 MB / 1.38 GB, free: 13.02 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.002392/0.9685, allocations: 2.004 MB / 1.382 GB, free: 12.46 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.9685, allocations: 0 / 1.382 GB, free: 12.46 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0003397/0.9689, allocations: 340.2 kB / 1.382 GB, free: 12.45 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/0.9693, allocations: 51.67 kB / 1.382 GB, free: 12.42 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01762/0.987, allocations: 15.3 MB / 1.397 GB, free: 5.348 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006564/0.9876, allocations: 0.9881 MB / 1.398 GB, free: 4.648 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001866/0.9878, allocations: 42.62 kB / 1.398 GB, free: 4.637 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.9882, allocations: 288.2 kB / 1.398 GB, free: 4.398 MB / 1.076 GB Notification: Performance of SimCode: time 1.102e-06/0.9882, allocations: 0 / 1.398 GB, free: 4.398 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05432/1.043, allocations: 24.42 MB / 1.422 GB, free: 4 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/11.36, allocations: 21.91 kB / 1.422 GB, free: 3.984 MB / 1.092 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --stepSize=7.2e+08 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 17.38704195502214] Failed to read output from testmodel.py, exit status != 0: 11.502090180001687 11.516142475 10.591590867 Calling exit ...