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.004759/0.004764, allocations: 103.2 kB / 15.74 MB, free: 6.449 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.001079/0.00108, allocations: 199.3 kB / 16.68 MB, free: 6.352 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002066/0.002066, allocations: 274.7 kB / 290.8 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9336/0.9336, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 91.94 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1563, allocations: 86.98 MB / 0.7659 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix): time 0.002326/0.1587, allocations: 1.242 MB / 0.7672 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.006753/0.1654, allocations: 4.485 MB / 0.7715 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.659e-05/0.1655, allocations: 0 / 0.7715 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.99e-05/0.1656, allocations: 3.984 kB / 0.7715 GB, free: 3.109 MB / 0.5606 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.004099/0.1697, allocations: 1.512 MB / 0.773 GB, free: 1.598 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 9.41e-05/0.1698, allocations: 31.91 kB / 0.773 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.922e-05/0.1699, allocations: 15.91 kB / 0.7731 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.1699, allocations: 4 kB / 0.7731 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.303e-05/0.17, allocations: 8 kB / 0.7731 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.95e-05/0.17, allocations: 25.28 kB / 0.7731 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.896e-06/0.17, allocations: 0 / 0.7731 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3255/0.4955, allocations: 2.272 MB / 0.7753 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002643/0.4958, allocations: 241.9 kB / 0.7755 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005563/0.4964, allocations: 248.5 kB / 0.7758 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004222/0.5006, allocations: 2.203 MB / 0.7779 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.5006, allocations: 1.031 kB / 0.7779 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5006, allocations: 3.938 kB / 0.7779 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.801e-05/0.5007, allocations: 0 / 0.7779 GB, free: 8.621 MB / 0.5606 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.002276/0.503, allocations: 1.536 MB / 0.7794 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.503, allocations: 9.625 kB / 0.7795 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.263e-05/0.503, allocations: 31.38 kB / 0.7795 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.5032, allocations: 47.53 kB / 0.7795 GB, free: 7.781 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008897/0.5041, allocations: 0.6371 MB / 0.7801 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.5041, allocations: 2.594 kB / 0.7802 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.5042, allocations: 4.781 kB / 0.7802 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.5044, allocations: 175.7 kB / 0.7803 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.5044, allocations: 3.281 kB / 0.7803 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.5044, allocations: 0.875 kB / 0.7803 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.5044, allocations: 0 / 0.7803 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002549/0.5047, allocations: 283.9 kB / 0.7806 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005901/0.5053, allocations: 0.5328 MB / 0.7811 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.5054, allocations: 158.8 kB / 0.7813 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.5056, allocations: 142.9 kB / 0.7814 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.5056, allocations: 7.75 kB / 0.7814 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.5056, allocations: 38.62 kB / 0.7815 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.5056, allocations: 0 / 0.7815 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0005405/0.5062, allocations: 497.5 kB / 0.7819 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.059e-05/0.5062, allocations: 52.03 kB / 0.782 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008066/0.507, allocations: 0.6929 MB / 0.7827 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.112e-06/0.507, allocations: 28.55 kB / 0.7827 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.5071, allocations: 230.1 kB / 0.7829 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.5072, allocations: 6.703 kB / 0.7829 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.247e-05/0.5072, allocations: 9.719 kB / 0.7829 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.553e-05/0.5073, allocations: 365.9 kB / 0.7833 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-05/0.5074, allocations: 140.6 kB / 0.7834 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.079e-05/0.5074, allocations: 142.4 kB / 0.7835 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.5076, allocations: 298.8 kB / 0.7838 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5076, allocations: 0 / 0.7838 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0003702/0.508, allocations: 354.8 kB / 0.7842 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.508, allocations: 5.812 kB / 0.7842 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.508, allocations: 4.266 kB / 0.7842 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.5081, allocations: 1.875 kB / 0.7842 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.972e-05/0.5081, allocations: 3.547 kB / 0.7842 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.5081, allocations: 0.6562 kB / 0.7842 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.5084, allocations: 28.78 kB / 0.7842 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.5084, allocations: 3.312 kB / 0.7842 GB, free: 6.457 MB / 0.5606 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.0001447/0.5085, allocations: 206.6 kB / 0.7844 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.5087, allocations: 52.45 kB / 0.7844 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003374/0.5091, allocations: 375.4 kB / 0.7848 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.5091, allocations: 0 / 0.7848 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.5091, allocations: 1.719 kB / 0.7848 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.5091, allocations: 0 / 0.7848 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003912/0.5095, allocations: 438.8 kB / 0.7852 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.5095, allocations: 4.594 kB / 0.7852 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.5095, allocations: 3.188 kB / 0.7852 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5095, allocations: 4.969 kB / 0.7852 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.5095, allocations: 4.672 kB / 0.7852 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5095, allocations: 1.531 kB / 0.7852 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5095, allocations: 0 / 0.7852 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004023/0.5099, allocations: 386.5 kB / 0.7856 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005843/0.5105, allocations: 346.1 kB / 0.7859 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.5107, allocations: 6.016 kB / 0.7859 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.5109, allocations: 29.16 kB / 0.786 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.198e-05/0.5109, allocations: 5.094 kB / 0.786 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.5109, allocations: 0 / 0.786 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006752/0.5116, allocations: 0.5325 MB / 0.7865 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5116, allocations: 0 / 0.7865 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001866/0.5135, allocations: 0.5786 MB / 0.7871 GB, free: 5.676 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.002702/0.5162, allocations: 1.745 MB / 0.7888 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003305/0.5166, allocations: 283.6 kB / 0.789 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.5166, allocations: 0 / 0.789 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000148/0.5167, allocations: 167.7 kB / 0.7892 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.5172, allocations: 43.45 kB / 0.7892 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.5278, allocations: 7.183 MB / 0.7963 GB, free: 19.14 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.5283, allocations: 0.8213 MB / 0.7971 GB, free: 18.44 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009779/0.5292, allocations: 452.1 kB / 0.7975 GB, free: 18.32 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006619/0.5299, allocations: 373.7 kB / 0.7978 GB, free: 18.21 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/0.5299, allocations: 0 / 0.7978 GB, free: 18.21 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05197/0.5819, allocations: 25.78 MB / 0.823 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.482/9.064, allocations: 13.12 kB / 0.823 GB, free: 8.219 MB / 0.5762 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)