Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_LoadAggregation_Validation_TemperatureResponseMatrix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix,fileNamePrefix="BuildingSystems_BuildingSystems_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.006722/0.006722, allocations: 101 kB / 15.73 MB, free: 6.059 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.001751/0.001751, allocations: 197.1 kB / 16.67 MB, free: 5.969 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002474/0.002474, allocations: 301.8 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9962/0.9962, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 99.84 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.4007, allocations: 86.98 MB / 0.766 GB, free: 4.027 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix): time 0.002215/0.403, allocations: 1.248 MB / 0.7672 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00714/0.4101, allocations: 4.482 MB / 0.7715 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.699e-05/0.4102, allocations: 7.938 kB / 0.7716 GB, free: 14.26 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 5.043e-05/0.4103, allocations: 4 kB / 0.7716 GB, free: 14.26 MB / 0.545 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/BuildingSystems 2.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.004332/0.4146, allocations: 1.506 MB / 0.773 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 9.988e-05/0.4147, allocations: 35.89 kB / 0.7731 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.626e-05/0.4148, allocations: 11.94 kB / 0.7731 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.899e-05/0.4149, allocations: 0 / 0.7731 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.54e-05/0.4149, allocations: 11.97 kB / 0.7731 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.513e-05/0.4149, allocations: 25.28 kB / 0.7731 GB, free: 12.67 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.578e-06/0.415, allocations: 0 / 0.7731 GB, free: 12.67 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003801/0.4188, allocations: 2.278 MB / 0.7753 GB, free: 10.39 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002208/0.419, allocations: 238.1 kB / 0.7756 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003638/0.4194, allocations: 242.9 kB / 0.7758 GB, free: 9.914 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003505/0.4229, allocations: 2.207 MB / 0.7779 GB, free: 7.703 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.4229, allocations: 4 kB / 0.778 GB, free: 7.699 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.342e-06/0.4229, allocations: 0 / 0.778 GB, free: 7.699 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.423, allocations: 0 / 0.778 GB, free: 7.699 MB / 0.545 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.00236/0.4253, allocations: 1.539 MB / 0.7795 GB, free: 6.105 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.4254, allocations: 8.031 kB / 0.7795 GB, free: 6.098 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.776e-05/0.4254, allocations: 30.75 kB / 0.7795 GB, free: 6.059 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.4256, allocations: 44.66 kB / 0.7795 GB, free: 6.016 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008238/0.4264, allocations: 0.6408 MB / 0.7802 GB, free: 5.336 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.4265, allocations: 384 / 0.7802 GB, free: 5.336 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.266e-06/0.4265, allocations: 7.938 kB / 0.7802 GB, free: 5.328 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.4267, allocations: 165.6 kB / 0.7803 GB, free: 5.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.4267, allocations: 4 kB / 0.7803 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.812e-06/0.4267, allocations: 0 / 0.7803 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.4267, allocations: 4 kB / 0.7803 GB, free: 5.152 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002267/0.427, allocations: 279.8 kB / 0.7806 GB, free: 4.879 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.4276, allocations: 0.5365 MB / 0.7811 GB, free: 4.293 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001517/0.4277, allocations: 162.5 kB / 0.7813 GB, free: 4.125 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.4279, allocations: 140.9 kB / 0.7814 GB, free: 3.984 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.4279, allocations: 0 / 0.7814 GB, free: 3.984 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.4279, allocations: 38.56 kB / 0.7814 GB, free: 3.938 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.4279, allocations: 0 / 0.7814 GB, free: 3.938 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0006219/0.4286, allocations: 0.4894 MB / 0.7819 GB, free: 3.441 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.4286, allocations: 51.41 kB / 0.782 GB, free: 3.379 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009968/0.4296, allocations: 0.6942 MB / 0.7827 GB, free: 2.672 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.4296, allocations: 33.64 kB / 0.7827 GB, free: 2.633 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.4298, allocations: 224.1 kB / 0.7829 GB, free: 2.41 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.4298, allocations: 8.078 kB / 0.7829 GB, free: 2.402 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.4299, allocations: 13.7 kB / 0.7829 GB, free: 2.383 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001853/0.4301, allocations: 362.8 kB / 0.7833 GB, free: 2.02 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.4302, allocations: 143.9 kB / 0.7834 GB, free: 1.879 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.4303, allocations: 139.9 kB / 0.7835 GB, free: 1.742 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002461/0.4306, allocations: 292.7 kB / 0.7838 GB, free: 1.453 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.4306, allocations: 0 / 0.7838 GB, free: 1.453 MB / 0.545 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0004633/0.4311, allocations: 357.3 kB / 0.7842 GB, free: 1.098 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.4311, allocations: 12 kB / 0.7842 GB, free: 1.086 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.4311, allocations: 0 / 0.7842 GB, free: 1.086 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.4311, allocations: 7.922 kB / 0.7842 GB, free: 1.078 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.174e-05/0.4312, allocations: 0 / 0.7842 GB, free: 1.078 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.4312, allocations: 0 / 0.7842 GB, free: 1.078 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.4314, allocations: 32 kB / 0.7842 GB, free: 1.047 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.4314, allocations: 0 / 0.7842 GB, free: 1.047 MB / 0.545 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.0001891/0.4316, allocations: 209.7 kB / 0.7844 GB, free: 0.832 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.4318, allocations: 47.67 kB / 0.7845 GB, free: 0.7852 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003754/0.4322, allocations: 384.9 kB / 0.7848 GB, free: 412 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.4322, allocations: 4 kB / 0.7848 GB, free: 408 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4322, allocations: 0 / 0.7848 GB, free: 408 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.4322, allocations: 0 / 0.7848 GB, free: 408 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004505/0.4327, allocations: 437.5 kB / 0.7852 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.4327, allocations: 4 kB / 0.7852 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.4327, allocations: 0 / 0.7852 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.4327, allocations: 3.984 kB / 0.7852 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.922e-06/0.4327, allocations: 0 / 0.7852 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4327, allocations: 0 / 0.7852 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4327, allocations: 4.031 kB / 0.7853 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004611/0.4332, allocations: 388.6 kB / 0.7856 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004033/0.4336, allocations: 336.5 kB / 0.7859 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.4337, allocations: 0 / 0.7859 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.434, allocations: 35.94 kB / 0.786 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.434, allocations: 4 kB / 0.786 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.434, allocations: 0 / 0.786 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008529/0.4348, allocations: 0.5339 MB / 0.7865 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4348, allocations: 0 / 0.7865 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001454/0.4363, allocations: 0.5803 MB / 0.7871 GB, free: 14.01 MB / 0.5606 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.0033/0.4396, allocations: 1.745 MB / 0.7888 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003173/0.44, allocations: 287.8 kB / 0.789 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.44, allocations: 4 kB / 0.7891 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.4401, allocations: 165.6 kB / 0.7892 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.4405, allocations: 34.31 kB / 0.7892 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009633/0.4501, allocations: 7.192 MB / 0.7963 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.4506, allocations: 0.8158 MB / 0.7971 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001074/0.4517, allocations: 451.3 kB / 0.7975 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006836/0.4524, allocations: 371.2 kB / 0.7978 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of SimCode: time 8.52e-07/0.4524, allocations: 0 / 0.7978 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0591/0.5115, allocations: 25.78 MB / 0.823 GB, free: 9.406 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.009/9.521, allocations: 2.625 kB / 0.823 GB, free: 9.406 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_LoadAggregation_Validation_TemperatureResponseMatrix.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe 2>&1)