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) 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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001701/0.001702, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.774/2.774, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.378/4.378, allocations: 409.2 MB / 0.6838 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000985/0.0009853, allocations: 8 kB / 0.8375 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.447/1.448, allocations: 146.8 MB / 0.9809 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.004164/1.452, allocations: 1.394 MB / 0.9823 GB, free: 4.883 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01505/1.467, allocations: 4.869 MB / 0.987 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002875/1.467, allocations: 3.938 kB / 0.987 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002422/1.47, allocations: 338.9 kB / 0.9874 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.000318/1.47, allocations: 59.77 kB / 0.9874 GB, free: 15.6 MB / 0.7481 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.007797/1.478, allocations: 1.079 MB / 0.9885 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.000549/1.479, allocations: 111.8 kB / 0.9886 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/1.479, allocations: 9.562 kB / 0.9886 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/1.479, allocations: 59.77 kB / 0.9886 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004553/1.479, allocations: 167.5 kB / 0.9888 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 9.461e-05/1.48, allocations: 16 kB / 0.9888 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007226/1.487, allocations: 1.857 MB / 0.9906 GB, free: 12.31 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0005278/1.487, allocations: 263.2 kB / 0.9909 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003906/1.488, allocations: 129.1 kB / 0.991 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.005691/1.494, allocations: 1.446 MB / 0.9924 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/1.494, allocations: 0 / 0.9924 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of FrontEnd: time 4.048e-06/1.494, allocations: 0 / 0.9924 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.417e-05/1.494, allocations: 0 / 0.9924 GB, free: 10.47 MB / 0.7481 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.01888/1.513, allocations: 1.317 MB / 0.9937 GB, free: 9.102 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 8.052e-05/1.513, allocations: 11.98 kB / 0.9937 GB, free: 9.09 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/1.513, allocations: 34.56 kB / 0.9937 GB, free: 9.047 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000818/1.514, allocations: 98.58 kB / 0.9938 GB, free: 8.949 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/1.515, allocations: 397 kB / 0.9942 GB, free: 8.512 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/1.515, allocations: 7.969 kB / 0.9942 GB, free: 8.504 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.059e-05/1.515, allocations: 16 kB / 0.9942 GB, free: 8.488 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000863/1.516, allocations: 387.1 kB / 0.9946 GB, free: 8.098 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/1.516, allocations: 4 kB / 0.9946 GB, free: 8.094 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/1.516, allocations: 0 / 0.9946 GB, free: 8.094 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/1.516, allocations: 0 / 0.9946 GB, free: 8.094 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008486/1.517, allocations: 435.7 kB / 0.995 GB, free: 7.668 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/1.518, allocations: 0.6615 MB / 0.9957 GB, free: 6.957 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/1.519, allocations: 0.5633 MB / 0.9962 GB, free: 6.375 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001967/1.521, allocations: 1.036 MB / 0.9972 GB, free: 5.117 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007936/1.522, allocations: 404.8 kB / 0.9976 GB, free: 4.703 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=8): time 3.487e-06/1.522, allocations: 0 / 0.9976 GB, free: 4.703 MB / 0.7481 GB Notification: Performance of matching and sorting (n=8): time 0.002737/1.525, allocations: 1.304 MB / 0.9989 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.366e-05/1.525, allocations: 81.11 kB / 0.999 GB, free: 3.293 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002689/1.528, allocations: 1.282 MB / 1 GB, free: 2 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001156/1.528, allocations: 29.69 kB / 1 GB, free: 1.965 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004176/1.528, allocations: 285.4 kB / 1.001 GB, free: 1.68 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.608e-05/1.528, allocations: 15.81 kB / 1.001 GB, free: 1.664 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.723e-05/1.528, allocations: 8.109 kB / 1.001 GB, free: 1.656 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0003967/1.529, allocations: 439.7 kB / 1.001 GB, free: 1.219 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/1.531, allocations: 1.365 MB / 1.002 GB, free: 15.85 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002684/1.534, allocations: 1.501 MB / 1.004 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00309/1.537, allocations: 1.914 MB / 1.006 GB, free: 12.41 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/1.537, allocations: 4 kB / 1.006 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.008214/1.545, allocations: 3.991 MB / 1.01 GB, free: 8.375 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.868e-05/1.545, allocations: 6.188 kB / 1.01 GB, free: 8.371 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.622e-05/1.545, allocations: 0 / 1.01 GB, free: 8.371 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.793e-05/1.545, allocations: 7.953 kB / 1.01 GB, free: 8.363 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/1.546, allocations: 15.98 kB / 1.01 GB, free: 8.348 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/1.546, allocations: 320 / 1.01 GB, free: 8.348 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/1.547, allocations: 240.2 kB / 1.01 GB, free: 8.109 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/1.547, allocations: 27.97 kB / 1.01 GB, free: 8.082 MB / 0.7637 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 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006682/1.548, allocations: 248.5 kB / 1.01 GB, free: 7.832 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/1.548, allocations: 70.69 kB / 1.01 GB, free: 7.762 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005601/1.549, allocations: 83.81 kB / 1.01 GB, free: 7.668 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/1.549, allocations: 8.016 kB / 1.01 GB, free: 7.66 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/1.549, allocations: 3.953 kB / 1.01 GB, free: 7.656 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/1.549, allocations: 3.938 kB / 1.01 GB, free: 7.652 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009212/1.55, allocations: 0.5141 MB / 1.011 GB, free: 7.094 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/1.55, allocations: 0 / 1.011 GB, free: 7.094 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/1.55, allocations: 11.98 kB / 1.011 GB, free: 7.082 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/1.55, allocations: 0 / 1.011 GB, free: 7.082 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/1.55, allocations: 0 / 1.011 GB, free: 7.082 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.159e-05/1.55, allocations: 7.984 kB / 1.011 GB, free: 7.074 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.55, allocations: 0 / 1.011 GB, free: 7.074 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/1.552, allocations: 1.024 MB / 1.012 GB, free: 6.027 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002585/1.552, allocations: 159.8 kB / 1.012 GB, free: 5.852 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/1.552, allocations: 0 / 1.012 GB, free: 5.852 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/1.552, allocations: 11.98 kB / 1.012 GB, free: 5.84 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.259e-05/1.552, allocations: 11.89 kB / 1.012 GB, free: 5.828 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-05/1.553, allocations: 19.91 kB / 1.012 GB, free: 5.809 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001495/1.554, allocations: 0.7144 MB / 1.013 GB, free: 5.09 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.9e-07/1.554, allocations: 0 / 1.013 GB, free: 5.09 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.002671/1.557, allocations: 0.5818 MB / 1.013 GB, free: 4.508 MB / 0.7637 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00554/1.562, allocations: 2.206 MB / 1.015 GB, free: 2.281 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.004053/1.566, allocations: 2.548 MB / 1.018 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.566, allocations: 4.062 kB / 1.018 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005378/1.567, allocations: 339.8 kB / 1.018 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/1.568, allocations: 60.66 kB / 1.018 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006276/1.574, allocations: 2.8 MB / 1.021 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007989/1.575, allocations: 1.015 MB / 1.022 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003256/1.575, allocations: 33.75 kB / 1.022 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004892/1.576, allocations: 291.3 kB / 1.022 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of SimCode: time 9.32e-07/1.576, allocations: 0 / 1.022 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09618/1.672, allocations: 21.84 MB / 1.044 GB, free: 5.504 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005145/1.672, allocations: 313.8 kB / 1.044 GB, free: 5.145 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.831/6.503, allocations: 0 / 1.044 GB, free: 5.145 MB / 0.795 GB (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/linux/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 --timeout=50 --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) Environment - environmentSimulation: