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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002538/0.002538, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.99/2.99, allocations: 497.2 MB / 0.7812 GB, free: 12 MB / 0.6231 GB " [Timeout remaining time 176] 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: "" <> 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 75.89 kB / 1.134 GB, free: 13.1 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087/1.089, allocations: 173.9 MB / 1.304 GB, free: 32.18 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002679/1.091, allocations: 1.762 MB / 1.306 GB, free: 30.96 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.006707/1.098, allocations: 5.428 MB / 1.311 GB, free: 27.28 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/1.098, allocations: 0 / 1.311 GB, free: 27.28 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.00118/1.099, allocations: 367.1 kB / 1.311 GB, free: 27.12 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001275/1.099, allocations: 65.06 kB / 1.311 GB, free: 27.08 MB / 1.061 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.003745/1.103, allocations: 1.499 MB / 1.313 GB, free: 26.5 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002735/1.103, allocations: 164.6 kB / 1.313 GB, free: 26.45 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 5.562e-05/1.103, allocations: 5.031 kB / 1.313 GB, free: 26.44 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.083e-05/1.104, allocations: 60.33 kB / 1.313 GB, free: 26.42 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/1.104, allocations: 171.6 kB / 1.313 GB, free: 26.37 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.712e-05/1.104, allocations: 14.34 kB / 1.313 GB, free: 26.37 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003271/1.107, allocations: 2.317 MB / 1.316 GB, free: 25.68 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0003223/1.107, allocations: 276.4 kB / 1.316 GB, free: 25.6 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001923/1.108, allocations: 305.6 kB / 1.316 GB, free: 25.4 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.002847/1.11, allocations: 2.193 MB / 1.318 GB, free: 24.75 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.11, allocations: 0 / 1.318 GB, free: 24.75 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.674e-06/1.11, allocations: 2.781 kB / 1.318 GB, free: 24.75 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.752e-05/1.11, allocations: 0 / 1.318 GB, free: 24.75 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.00817/1.119, allocations: 1.41 MB / 1.32 GB, free: 23.74 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/1.119, allocations: 12.69 kB / 1.32 GB, free: 23.74 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.043e-05/1.119, allocations: 36.52 kB / 1.32 GB, free: 23.7 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003711/1.119, allocations: 101.4 kB / 1.32 GB, free: 23.64 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/1.12, allocations: 407.6 kB / 1.32 GB, free: 23.32 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/1.12, allocations: 3.125 kB / 1.32 GB, free: 23.32 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.748e-05/1.12, allocations: 13.59 kB / 1.32 GB, free: 23.31 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/1.12, allocations: 401.9 kB / 1.321 GB, free: 23.24 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/1.12, allocations: 0 / 1.321 GB, free: 23.24 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/1.12, allocations: 3.281 kB / 1.321 GB, free: 23.24 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/1.12, allocations: 3.938 kB / 1.321 GB, free: 23.23 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003558/1.12, allocations: 434.7 kB / 1.321 GB, free: 23.23 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005033/1.121, allocations: 0.674 MB / 1.322 GB, free: 22.82 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006207/1.122, allocations: 0.5629 MB / 1.322 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/1.122, allocations: 334 kB / 1.323 GB, free: 22.74 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008226/1.123, allocations: 1.028 MB / 1.324 GB, free: 21.61 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005088/1.123, allocations: 413.2 kB / 1.324 GB, free: 21.52 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/1.123, allocations: 0 / 1.324 GB, free: 21.52 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.001908/1.125, allocations: 1.306 MB / 1.325 GB, free: 21.39 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/1.125, allocations: 80.39 kB / 1.325 GB, free: 21.3 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001863/1.127, allocations: 1.296 MB / 1.327 GB, free: 20.79 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.778e-05/1.127, allocations: 31.89 kB / 1.327 GB, free: 20.75 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002282/1.127, allocations: 286.6 kB / 1.327 GB, free: 20.53 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/1.128, allocations: 21.47 kB / 1.327 GB, free: 20.52 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004296/1.128, allocations: 351.1 kB / 1.327 GB, free: 20.42 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.464e-05/1.128, allocations: 325.8 kB / 1.328 GB, free: 20.1 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/1.129, allocations: 1.37 MB / 1.329 GB, free: 19.65 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/1.131, allocations: 1.506 MB / 1.33 GB, free: 19.12 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007298/1.138, allocations: 3.562 MB / 1.334 GB, free: 17.27 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/1.138, allocations: 0 / 1.334 GB, free: 17.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004672/1.143, allocations: 4.017 MB / 1.338 GB, free: 15.29 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/1.143, allocations: 5.672 kB / 1.338 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/1.143, allocations: 2.156 kB / 1.338 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/1.143, allocations: 1.891 kB / 1.338 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/1.143, allocations: 23.38 kB / 1.338 GB, free: 15.28 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/1.143, allocations: 4.844 kB / 1.338 GB, free: 15.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009312/1.144, allocations: 241.2 kB / 1.338 GB, free: 15.08 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.583e-05/1.144, allocations: 23.72 kB / 1.338 GB, free: 15.08 MB / 1.061 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.0003591/1.145, allocations: 248.5 kB / 1.338 GB, free: 14.95 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.221e-05/1.145, allocations: 85.2 kB / 1.338 GB, free: 14.89 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002876/1.145, allocations: 87.69 kB / 1.338 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/1.145, allocations: 2.625 kB / 1.338 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/1.145, allocations: 0 / 1.338 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/1.145, allocations: 1.984 kB / 1.338 GB, free: 14.82 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005413/1.145, allocations: 0.509 MB / 1.339 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.145, allocations: 5.375 kB / 1.339 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.847e-05/1.146, allocations: 7.266 kB / 1.339 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.778e-06/1.146, allocations: 5.062 kB / 1.339 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/1.146, allocations: 3.016 kB / 1.339 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/1.146, allocations: 1.062 kB / 1.339 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.146, allocations: 6.172 kB / 1.339 GB, free: 14.53 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/1.147, allocations: 1.017 MB / 1.34 GB, free: 14.37 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/1.147, allocations: 169.7 kB / 1.34 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.726e-05/1.147, allocations: 2.656 kB / 1.34 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/1.147, allocations: 8.641 kB / 1.34 GB, free: 14.2 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.87e-05/1.147, allocations: 5.688 kB / 1.34 GB, free: 14.2 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.036e-05/1.147, allocations: 16.8 kB / 1.34 GB, free: 14.2 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0008936/1.148, allocations: 0.72 MB / 1.341 GB, free: 13.96 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/1.148, allocations: 0 / 1.341 GB, free: 13.96 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002026/1.15, allocations: 0.5904 MB / 1.341 GB, free: 13.85 MB / 1.061 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.003278/1.153, allocations: 2.159 MB / 1.344 GB, free: 12.99 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002655/1.156, allocations: 2.004 MB / 1.346 GB, free: 12.44 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/1.156, allocations: 1.281 kB / 1.346 GB, free: 12.44 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0005032/1.157, allocations: 334.2 kB / 1.346 GB, free: 12.43 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/1.157, allocations: 57.69 kB / 1.346 GB, free: 12.39 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01805/1.175, allocations: 15.3 MB / 1.361 GB, free: 5.328 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007139/1.176, allocations: 0.9914 MB / 1.362 GB, free: 4.625 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002036/1.176, allocations: 39.73 kB / 1.362 GB, free: 4.617 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/1.176, allocations: 286.5 kB / 1.362 GB, free: 4.379 MB / 1.061 GB Notification: Performance of SimCode: time 1.232e-06/1.176, allocations: 1.344 kB / 1.362 GB, free: 4.379 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07293/1.249, allocations: 24.24 MB / 1.386 GB, free: 160 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/11.55, allocations: 8.031 kB / 1.386 GB, free: 152 kB / 1.061 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: 18.127108417917043] Failed to read output from testmodel.py, exit status != 0: 11.641167188994586 11.657245729 10.543729104 Calling exit ...