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.001372/0.001372, allocations: 108 kB / 15.6 MB, free: 132 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.001402/0.001402, allocations: 192 kB / 16.53 MB, free: 6.391 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002454/0.002454, allocations: 295 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.06/1.06, allocations: 178.6 MB / 0.5073 GB, free: 4.57 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003709/0.003709, allocations: 99.36 kB / 0.6066 GB, free: 24.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1813, allocations: 89.15 MB / 0.6936 GB, free: 4.176 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix): time 0.002432/0.1837, allocations: 1.241 MB / 0.6949 GB, free: 2.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006759/0.1905, allocations: 4.484 MB / 0.6992 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.643e-05/0.1906, allocations: 0 / 0.6992 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.803e-05/0.1906, allocations: 7.922 kB / 0.6992 GB, free: 14.42 MB / 0.4981 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.003724/0.1944, allocations: 1.506 MB / 0.7007 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 8.26e-05/0.1945, allocations: 31.91 kB / 0.7007 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.461e-05/0.1945, allocations: 15.97 kB / 0.7008 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.669e-05/0.1946, allocations: 7.984 kB / 0.7008 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.926e-05/0.1946, allocations: 4 kB / 0.7008 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.024e-05/0.1947, allocations: 17.28 kB / 0.7008 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.157e-06/0.1947, allocations: 0 / 0.7008 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003194/0.1979, allocations: 2.211 MB / 0.7029 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002153/0.1981, allocations: 246.1 kB / 0.7032 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003657/0.1985, allocations: 246.9 kB / 0.7034 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002745/0.2012, allocations: 2.191 MB / 0.7056 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2012, allocations: 3.984 kB / 0.7056 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2012, allocations: 0 / 0.7056 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.231e-05/0.2013, allocations: 0 / 0.7056 GB, free: 7.941 MB / 0.4981 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.002259/0.2035, allocations: 1.491 MB / 0.707 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.2036, allocations: 12.03 kB / 0.707 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.2036, allocations: 38.73 kB / 0.7071 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.2038, allocations: 40.38 kB / 0.7071 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008809/0.2047, allocations: 0.6325 MB / 0.7077 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.2047, allocations: 8.375 kB / 0.7077 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.2048, allocations: 3.938 kB / 0.7077 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.205, allocations: 169.6 kB / 0.7079 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.205, allocations: 0 / 0.7079 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.205, allocations: 4 kB / 0.7079 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.205, allocations: 4 kB / 0.7079 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002199/0.2052, allocations: 275.9 kB / 0.7082 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006421/0.2059, allocations: 0.5365 MB / 0.7087 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.206, allocations: 162.5 kB / 0.7088 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.2062, allocations: 140.9 kB / 0.709 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.015e-05/0.2062, allocations: 0 / 0.709 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.2062, allocations: 42.48 kB / 0.709 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.2062, allocations: 8 kB / 0.709 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0006294/0.2069, allocations: 489 kB / 0.7095 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.03e-05/0.2069, allocations: 51.41 kB / 0.7095 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009878/0.2079, allocations: 0.6981 MB / 0.7102 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.2079, allocations: 25.7 kB / 0.7102 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.2081, allocations: 232 kB / 0.7105 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.2082, allocations: 3.906 kB / 0.7105 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.2082, allocations: 13.83 kB / 0.7105 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.2084, allocations: 370.8 kB / 0.7108 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.2085, allocations: 143.9 kB / 0.711 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.2086, allocations: 139.9 kB / 0.7111 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.2088, allocations: 292.7 kB / 0.7114 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2088, allocations: 0 / 0.7114 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0004423/0.2093, allocations: 357 kB / 0.7117 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2093, allocations: 10.19 kB / 0.7117 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.2093, allocations: 4.094 kB / 0.7117 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2093, allocations: 0 / 0.7117 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.1e-05/0.2094, allocations: 0 / 0.7117 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.2094, allocations: 0 / 0.7117 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.2096, allocations: 32 kB / 0.7118 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.2096, allocations: 3.984 kB / 0.7118 GB, free: 1.336 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.0001888/0.2098, allocations: 206.4 kB / 0.712 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001853/0.21, allocations: 43.44 kB / 0.712 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003578/0.2104, allocations: 380.9 kB / 0.7124 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2104, allocations: 4 kB / 0.7124 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2104, allocations: 0 / 0.7124 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.2104, allocations: 0 / 0.7124 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004348/0.2108, allocations: 441.5 kB / 0.7128 GB, free: 224 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2109, allocations: 0 / 0.7128 GB, free: 224 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-06/0.2109, allocations: 3.984 kB / 0.7128 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.2109, allocations: 0 / 0.7128 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.2109, allocations: 0 / 0.7128 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2109, allocations: 4 kB / 0.7128 GB, free: 216 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2109, allocations: 0 / 0.7128 GB, free: 216 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004712/0.2114, allocations: 392.4 kB / 0.7132 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004449/0.2118, allocations: 332.3 kB / 0.7135 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.212, allocations: 0 / 0.7135 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.2122, allocations: 36 kB / 0.7135 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.359e-05/0.2122, allocations: 0 / 0.7135 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.2122, allocations: 0 / 0.7135 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000771/0.213, allocations: 0.5338 MB / 0.7141 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.213, allocations: 7.969 kB / 0.7141 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001437/0.2144, allocations: 0.5661 MB / 0.7146 GB, free: 14.32 MB / 0.5137 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.003113/0.2176, allocations: 1.726 MB / 0.7163 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000319/0.2179, allocations: 299.8 kB / 0.7166 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.2179, allocations: 0 / 0.7166 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.2181, allocations: 165.6 kB / 0.7168 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.2184, allocations: 38.25 kB / 0.7168 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009253/0.2277, allocations: 7.411 MB / 0.724 GB, free: 4.676 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.2281, allocations: 0.8197 MB / 0.7248 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001317/0.2294, allocations: 456.1 kB / 0.7253 GB, free: 3.426 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007088/0.2302, allocations: 367.2 kB / 0.7256 GB, free: 3.066 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.2302, allocations: 0 / 0.7256 GB, free: 3.066 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05719/0.2874, allocations: 25.65 MB / 0.7507 GB, free: 9.625 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.532/8.82, allocations: 17.48 kB / 0.7507 GB, free: 9.613 MB / 0.545 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)