Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_LoadAggregation_Validation_TemperatureResponseMatrix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_LoadAggregation_Validation_TemperatureResponseMatrix",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.00768/0.00768, allocations: 98.23 kB / 15.73 MB, free: 6.004 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.00208/0.002081, allocations: 192.8 kB / 16.67 MB, free: 5.934 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.943/2.943, allocations: 482.4 MB / 0.7548 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 71.88 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3031, allocations: 162.2 MB / 1.242 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix): time 0.002247/0.3054, allocations: 1.258 MB / 1.243 GB, free: 8.949 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.006634/0.3121, allocations: 4.479 MB / 1.247 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.25e-05/0.3121, allocations: 0 / 1.247 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.819e-05/0.3122, allocations: 0 / 1.247 GB, free: 4.449 MB / 0.9981 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.typeBindings: time 0.003573/0.3157, allocations: 1.492 MB / 1.249 GB, free: 2.949 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 8.33e-05/0.3158, allocations: 31.91 kB / 1.249 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.639e-05/0.3159, allocations: 19.91 kB / 1.249 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.104e-05/0.3159, allocations: 4 kB / 1.249 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.952e-05/0.316, allocations: 4 kB / 1.249 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.254e-05/0.316, allocations: 21.22 kB / 1.249 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.064e-05/0.316, allocations: 4 kB / 1.249 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003229/0.3193, allocations: 2.282 MB / 1.251 GB, free: 0.5781 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.3195, allocations: 242.1 kB / 1.251 GB, free: 352 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003438/0.3198, allocations: 246.9 kB / 1.251 GB, free: 104 kB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.5817/0.9016, allocations: 2.198 MB / 1.253 GB, free: 8.371 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.9016, allocations: 0.875 kB / 1.253 GB, free: 8.371 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9017, allocations: 0.625 kB / 1.253 GB, free: 8.371 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.9017, allocations: 0 / 1.253 GB, free: 8.371 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.002723/0.9044, allocations: 1.532 MB / 1.255 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.9044, allocations: 10 kB / 1.255 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.861e-05/0.9045, allocations: 34.95 kB / 1.255 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.9047, allocations: 44.03 kB / 1.255 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007657/0.9055, allocations: 0.642 MB / 1.256 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.9055, allocations: 1.984 kB / 1.256 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-06/0.9055, allocations: 4.844 kB / 1.256 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.9057, allocations: 173.1 kB / 1.256 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.373e-06/0.9057, allocations: 0 / 1.256 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.9057, allocations: 1.859 kB / 1.256 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.9057, allocations: 3.766 kB / 1.256 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002532/0.906, allocations: 282.9 kB / 1.256 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006723/0.9067, allocations: 0.5338 MB / 1.257 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.9069, allocations: 157.3 kB / 1.257 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.907, allocations: 148.7 kB / 1.257 GB, free: 7 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.907, allocations: 5.359 kB / 1.257 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.691e-05/0.907, allocations: 35.88 kB / 1.257 GB, free: 6.957 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.613e-06/0.907, allocations: 1.5 kB / 1.257 GB, free: 6.957 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.000672/0.9077, allocations: 496.7 kB / 1.257 GB, free: 6.902 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.9078, allocations: 53.62 kB / 1.258 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009874/0.9088, allocations: 0.6945 MB / 1.258 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.9088, allocations: 30.22 kB / 1.258 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.9089, allocations: 222.3 kB / 1.258 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.9089, allocations: 8.016 kB / 1.258 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.909, allocations: 17.75 kB / 1.258 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.937e-05/0.909, allocations: 369.5 kB / 1.259 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.9092, allocations: 141.4 kB / 1.259 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.9094, allocations: 139.3 kB / 1.259 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002739/0.9097, allocations: 290 kB / 1.259 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.9097, allocations: 0 / 1.259 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0003678/0.91, allocations: 363.8 kB / 1.26 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.9101, allocations: 5.031 kB / 1.26 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.9101, allocations: 0 / 1.26 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.9101, allocations: 4.875 kB / 1.26 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.04e-05/0.9101, allocations: 2.438 kB / 1.26 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.9102, allocations: 6 kB / 1.26 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.9104, allocations: 31.36 kB / 1.26 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.9104, allocations: 0 / 1.26 GB, free: 6.203 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001328/0.9105, allocations: 209 kB / 1.26 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.9107, allocations: 49.2 kB / 1.26 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003019/0.911, allocations: 372.8 kB / 1.26 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.911, allocations: 3.75 kB / 1.26 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.911, allocations: 1.828 kB / 1.26 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.911, allocations: 0.5312 kB / 1.26 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000377/0.9114, allocations: 436.7 kB / 1.261 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.9114, allocations: 3.938 kB / 1.261 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.9114, allocations: 0 / 1.261 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.9114, allocations: 0 / 1.261 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.9114, allocations: 7.531 kB / 1.261 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.9115, allocations: 0 / 1.261 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.9115, allocations: 0 / 1.261 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.9118, allocations: 388 kB / 1.261 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.9122, allocations: 347.1 kB / 1.261 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.9123, allocations: 4.406 kB / 1.261 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/0.9125, allocations: 27.56 kB / 1.262 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.033e-05/0.9125, allocations: 4.094 kB / 1.262 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.9125, allocations: 2.859 kB / 1.262 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006653/0.9132, allocations: 0.534 MB / 1.262 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9132, allocations: 0 / 1.262 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002178/0.9154, allocations: 0.5755 MB / 1.263 GB, free: 5.43 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * 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.003029/0.9184, allocations: 1.76 MB / 1.264 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002623/0.9187, allocations: 284.5 kB / 1.265 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.9187, allocations: 0.5312 kB / 1.265 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.9188, allocations: 168.8 kB / 1.265 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.9192, allocations: 37.56 kB / 1.265 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009283/0.9285, allocations: 7.191 MB / 1.272 GB, free: 19.1 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005505/0.9291, allocations: 0.8179 MB / 1.273 GB, free: 18.41 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.000978/0.9301, allocations: 450.2 kB / 1.273 GB, free: 18.27 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006972/0.9308, allocations: 371.9 kB / 1.273 GB, free: 18.26 MB / 1.014 GB Notification: Performance of SimCode: time 7.11e-07/0.9308, allocations: 0 / 1.273 GB, free: 18.26 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06279/0.9936, allocations: 25.76 MB / 1.299 GB, free: 14.97 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.776/9.77, allocations: 17.78 kB / 1.299 GB, free: 14.96 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_LoadAggregation_Validation_TemperatureResponseMatrix.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe 2>&1)