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: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005341/0.005341, allocations: 97.97 kB / 15.73 MB, free: 6.055 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.001179/0.001179, allocations: 191.2 kB / 16.67 MB, free: 5.973 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.288/1.288, 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.002119/0.002119, allocations: 287.2 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9103/0.9103, allocations: 169.2 MB / 0.4983 GB, free: 4.402 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 99.84 kB / 0.6815 GB, free: 6.887 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3809, allocations: 86.97 MB / 0.7664 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix): time 0.002034/0.3829, allocations: 1.241 MB / 0.7676 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005956/0.3889, allocations: 4.49 MB / 0.772 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.016e-05/0.3889, allocations: 0 / 0.772 GB, free: 14.11 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.617e-05/0.389, allocations: 4 kB / 0.772 GB, free: 14.1 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.003139/0.3921, allocations: 1.51 MB / 0.7735 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 7.7e-05/0.3922, allocations: 39.89 kB / 0.7735 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.112e-05/0.3923, allocations: 8 kB / 0.7735 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.358e-05/0.3923, allocations: 0 / 0.7735 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.956e-05/0.3924, allocations: 11.98 kB / 0.7736 GB, free: 12.53 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.894e-05/0.3924, allocations: 25.27 kB / 0.7736 GB, free: 12.51 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.3924, allocations: 0 / 0.7736 GB, free: 12.51 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002864/0.3953, allocations: 2.278 MB / 0.7758 GB, free: 10.23 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.3954, allocations: 149.2 kB / 0.7759 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.325e-05/0.3955, allocations: 3.938 kB / 0.776 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001938/0.3974, allocations: 1.732 MB / 0.7776 GB, free: 8.344 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3974, allocations: 0 / 0.7776 GB, free: 8.344 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3974, allocations: 0 / 0.7776 GB, free: 8.344 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.3974, allocations: 0 / 0.7776 GB, free: 8.344 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.0007103/0.3982, allocations: 0.6447 MB / 0.7783 GB, free: 7.648 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.3982, allocations: 8.031 kB / 0.7783 GB, free: 7.641 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.597e-05/0.3982, allocations: 4.891 kB / 0.7783 GB, free: 7.637 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.3983, allocations: 176.2 kB / 0.7785 GB, free: 7.426 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.642e-06/0.3984, allocations: 384 / 0.7785 GB, free: 7.426 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-06/0.3984, allocations: 8.125 kB / 0.7785 GB, free: 7.418 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.3985, allocations: 169.6 kB / 0.7786 GB, free: 7.246 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.26e-06/0.3986, allocations: 0 / 0.7786 GB, free: 7.246 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-06/0.3986, allocations: 0 / 0.7786 GB, free: 7.246 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.3986, allocations: 0 / 0.7786 GB, free: 7.246 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.3988, allocations: 279.9 kB / 0.7789 GB, free: 6.973 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000246/0.399, allocations: 289.6 kB / 0.7792 GB, free: 6.641 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.3991, allocations: 158.5 kB / 0.7793 GB, free: 6.477 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.3993, allocations: 156.7 kB / 0.7795 GB, free: 6.32 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.3993, allocations: 0 / 0.7795 GB, free: 6.32 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.3993, allocations: 30.56 kB / 0.7795 GB, free: 6.281 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.3993, allocations: 4 kB / 0.7795 GB, free: 6.277 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0003807/0.3997, allocations: 453.5 kB / 0.7799 GB, free: 5.828 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.3997, allocations: 55.34 kB / 0.78 GB, free: 5.762 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.3998, allocations: 170 kB / 0.7801 GB, free: 5.586 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.3999, allocations: 25.7 kB / 0.7802 GB, free: 5.555 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.567e-05/0.3999, allocations: 80.14 kB / 0.7803 GB, free: 5.473 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.3999, allocations: 3.938 kB / 0.7803 GB, free: 5.469 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.4, allocations: 17.72 kB / 0.7803 GB, free: 5.445 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.4001, allocations: 310.8 kB / 0.7806 GB, free: 5.133 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.69e-05/0.4002, allocations: 143.9 kB / 0.7807 GB, free: 4.992 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.84e-05/0.4003, allocations: 139.9 kB / 0.7808 GB, free: 4.855 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.4005, allocations: 288.9 kB / 0.7811 GB, free: 4.57 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4005, allocations: 0 / 0.7811 GB, free: 4.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0002428/0.4007, allocations: 321.5 kB / 0.7814 GB, free: 4.25 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.4008, allocations: 6.344 kB / 0.7814 GB, free: 4.246 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.4008, allocations: 0 / 0.7814 GB, free: 4.246 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.4008, allocations: 0 / 0.7814 GB, free: 4.246 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.778e-05/0.4008, allocations: 4 kB / 0.7814 GB, free: 4.242 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.4008, allocations: 3.938 kB / 0.7814 GB, free: 4.238 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.992e-05/0.4009, allocations: 0 / 0.7814 GB, free: 4.238 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.4009, allocations: 0 / 0.7814 GB, free: 4.238 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 9.892e-05/0.401, allocations: 169.8 kB / 0.7816 GB, free: 4.062 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.4011, allocations: 7.938 kB / 0.7816 GB, free: 4.055 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000275/0.4013, allocations: 320.7 kB / 0.7819 GB, free: 3.738 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.4014, allocations: 3.984 kB / 0.7819 GB, free: 3.734 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4014, allocations: 0 / 0.7819 GB, free: 3.734 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.4014, allocations: 0 / 0.7819 GB, free: 3.734 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002099/0.4016, allocations: 289.6 kB / 0.7822 GB, free: 3.402 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.4016, allocations: 8 kB / 0.7822 GB, free: 3.395 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.803e-06/0.4016, allocations: 8.016 kB / 0.7822 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.4016, allocations: 0 / 0.7822 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.4016, allocations: 0 / 0.7822 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.4016, allocations: 0 / 0.7822 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4016, allocations: 0 / 0.7822 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002547/0.4019, allocations: 344.9 kB / 0.7825 GB, free: 3.031 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.942e-05/0.4019, allocations: 77.11 kB / 0.7826 GB, free: 2.938 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.365e-05/0.402, allocations: 4 kB / 0.7826 GB, free: 2.934 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.671e-05/0.4021, allocations: 4.031 kB / 0.7826 GB, free: 2.93 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.524e-05/0.4021, allocations: 7.922 kB / 0.7826 GB, free: 2.922 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.4021, allocations: 3.938 kB / 0.7826 GB, free: 2.918 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.329e-05/0.4022, allocations: 151.2 kB / 0.7828 GB, free: 2.77 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4022, allocations: 0 / 0.7828 GB, free: 2.77 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009565/0.4032, allocations: 0.5764 MB / 0.7833 GB, free: 2.191 MB / 0.545 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.001967/0.4051, allocations: 0.9222 MB / 0.7842 GB, free: 1.363 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002591/0.4054, allocations: 287.8 kB / 0.7845 GB, free: 1.082 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4054, allocations: 0 / 0.7845 GB, free: 1.082 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.4055, allocations: 169.6 kB / 0.7847 GB, free: 0.9102 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.4057, allocations: 5.812 kB / 0.7847 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.4067, allocations: 0.9463 MB / 0.7856 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.4071, allocations: 0.8146 MB / 0.7864 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.757e-05/0.4071, allocations: 3.984 kB / 0.7864 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.867e-05/0.4071, allocations: 11.44 kB / 0.7864 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.4072, allocations: 4 kB / 0.7864 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of Templates: time 0.0174/0.4246, allocations: 12.25 MB / 0.7984 GB, free: 2.852 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.TemperatureResponseMatrix.pipe 2>&1)