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.001277/0.001277, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 197.5 kB / 16.53 MB, free: 6.672 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002047/0.002047, allocations: 286.4 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9204/0.9204, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 97 kB / 0.5954 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1516, allocations: 86.99 MB / 0.6803 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix): time 0.002696/0.1544, allocations: 1.241 MB / 0.6815 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00697/0.1614, allocations: 4.477 MB / 0.6859 GB, free: 10.79 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.877e-05/0.1614, allocations: 0 / 0.6859 GB, free: 10.79 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.008e-05/0.1616, allocations: 0 / 0.6859 GB, free: 10.79 MB / 494.1 MB [/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.00427/0.1658, allocations: 1.514 MB / 0.6874 GB, free: 9.273 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.075e-05/0.1659, allocations: 35.89 kB / 0.6874 GB, free: 9.238 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.36e-05/0.166, allocations: 8 kB / 0.6874 GB, free: 9.23 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.142e-05/0.1661, allocations: 7.984 kB / 0.6874 GB, free: 9.223 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.033e-05/0.1661, allocations: 4 kB / 0.6874 GB, free: 9.219 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.299e-05/0.1661, allocations: 21.27 kB / 0.6875 GB, free: 9.199 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.1662, allocations: 4 kB / 0.6875 GB, free: 9.195 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003354/0.1695, allocations: 2.207 MB / 0.6896 GB, free: 6.984 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.1697, allocations: 246.1 kB / 0.6899 GB, free: 6.742 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.1701, allocations: 246.9 kB / 0.6901 GB, free: 6.5 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003196/0.1733, allocations: 2.191 MB / 0.6922 GB, free: 4.305 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1733, allocations: 0 / 0.6922 GB, free: 4.305 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1733, allocations: 0 / 0.6922 GB, free: 4.305 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.558e-05/0.1733, allocations: 0 / 0.6922 GB, free: 4.305 MB / 494.1 MB 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.002417/0.1758, allocations: 1.495 MB / 0.6937 GB, free: 2.758 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1758, allocations: 12.03 kB / 0.6937 GB, free: 2.746 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.375e-05/0.1758, allocations: 34.75 kB / 0.6937 GB, free: 2.703 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.1761, allocations: 44.38 kB / 0.6938 GB, free: 2.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007913/0.1769, allocations: 0.6403 MB / 0.6944 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.1769, allocations: 384 / 0.6944 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.1769, allocations: 3.938 kB / 0.6944 GB, free: 1.977 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.1771, allocations: 169.6 kB / 0.6946 GB, free: 1.805 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1771, allocations: 0 / 0.6946 GB, free: 1.805 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.323e-06/0.1771, allocations: 4 kB / 0.6946 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.1771, allocations: 4 kB / 0.6946 GB, free: 1.797 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.1773, allocations: 275.9 kB / 0.6948 GB, free: 1.527 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005996/0.1779, allocations: 0.5365 MB / 0.6954 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.1781, allocations: 158.5 kB / 0.6955 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.1782, allocations: 144.9 kB / 0.6957 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.317e-06/0.1782, allocations: 0 / 0.6957 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.1782, allocations: 42.5 kB / 0.6957 GB, free: 0.582 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1782, allocations: 4 kB / 0.6957 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0005604/0.1788, allocations: 493 kB / 0.6962 GB, free: 92 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.1788, allocations: 51.41 kB / 0.6962 GB, free: 28 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000932/0.1798, allocations: 0.6903 MB / 0.6969 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.1798, allocations: 25.7 kB / 0.6969 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.1799, allocations: 236 kB / 0.6971 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.18, allocations: 0 / 0.6971 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.18, allocations: 9.719 kB / 0.6972 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1801, allocations: 374.9 kB / 0.6975 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.721e-05/0.1802, allocations: 143.9 kB / 0.6976 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.244e-05/0.1803, allocations: 139.9 kB / 0.6978 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.1805, allocations: 288.7 kB / 0.6981 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1805, allocations: 0 / 0.6981 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0004113/0.181, allocations: 364.9 kB / 0.6984 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.181, allocations: 10.19 kB / 0.6984 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.181, allocations: 96 / 0.6984 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.181, allocations: 4 kB / 0.6984 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.718e-05/0.1811, allocations: 0 / 0.6984 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.1811, allocations: 3.938 kB / 0.6984 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.1813, allocations: 32 kB / 0.6985 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.1813, allocations: 0 / 0.6985 GB, free: 13.7 MB / 0.4981 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.0001667/0.1815, allocations: 210.3 kB / 0.6987 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.1817, allocations: 43.44 kB / 0.6987 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003177/0.182, allocations: 376.9 kB / 0.6991 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.182, allocations: 8.031 kB / 0.6991 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.182, allocations: 0 / 0.6991 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.182, allocations: 0 / 0.6991 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000376/0.1824, allocations: 445.4 kB / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.1824, allocations: 3.984 kB / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.1824, allocations: 0 / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1824, allocations: 0 / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.1824, allocations: 4 kB / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1824, allocations: 0 / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1825, allocations: 0 / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004247/0.1829, allocations: 392.3 kB / 0.6999 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004073/0.1833, allocations: 336.3 kB / 0.7002 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.1835, allocations: 4 kB / 0.7002 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.1837, allocations: 28 kB / 0.7002 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-06/0.1837, allocations: 0 / 0.7002 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.1837, allocations: 0 / 0.7002 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007297/0.1844, allocations: 0.5339 MB / 0.7007 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1844, allocations: 3.938 kB / 0.7007 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001422/0.1859, allocations: 0.5662 MB / 0.7013 GB, free: 10.68 MB / 0.4981 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.003167/0.189, allocations: 1.72 MB / 0.703 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000319/0.1894, allocations: 299.8 kB / 0.7033 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1894, allocations: 0 / 0.7033 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.1895, allocations: 165.6 kB / 0.7034 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.1899, allocations: 40.44 kB / 0.7035 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009017/0.1989, allocations: 7.422 MB / 0.7107 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.1993, allocations: 0.8197 MB / 0.7115 GB, free: 188 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001348/0.2007, allocations: 455.7 kB / 0.7119 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006819/0.2014, allocations: 367.1 kB / 0.7123 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of SimCode: time 7.41e-07/0.2014, allocations: 0 / 0.7123 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05086/0.2523, allocations: 25.63 MB / 0.7373 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/7.985, allocations: 15.58 kB / 0.7373 GB, free: 5.984 MB / 0.5294 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)