Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.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.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 104.7 kB / 16.41 MB, free: 6.512 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.001379/0.001379, allocations: 187 kB / 17.34 MB, free: 5.742 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.339/1.339, allocations: 222.9 MB / 241 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.002194/0.002194, allocations: 286.8 kB / 291.5 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.9667/0.9667, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 91.86 kB / 0.6822 GB, free: 6.883 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4754/0.4772, allocations: 86.99 MB / 0.7671 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002865/0.4801, allocations: 1.738 MB / 0.7688 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.007095/0.4872, allocations: 5.39 MB / 0.7741 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.4873, allocations: 3.938 kB / 0.7741 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.4886, allocations: 373.1 kB / 0.7744 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.4887, allocations: 51.67 kB / 0.7745 GB, free: 12.29 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.typeClassSections: time 0.003575/0.4923, allocations: 1.502 MB / 0.776 GB, free: 10.79 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.4926, allocations: 155.4 kB / 0.7761 GB, free: 10.63 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.958e-05/0.4926, allocations: 9.562 kB / 0.7761 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.73e-05/0.4927, allocations: 59.72 kB / 0.7762 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.4929, allocations: 171.4 kB / 0.7763 GB, free: 10.4 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.493, allocations: 16 kB / 0.7764 GB, free: 10.38 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002942/0.4959, allocations: 2.207 MB / 0.7785 GB, free: 8.172 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.4961, allocations: 283.8 kB / 0.7788 GB, free: 7.895 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002154/0.4964, allocations: 302.2 kB / 0.7791 GB, free: 7.598 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002306/0.4987, allocations: 2.182 MB / 0.7812 GB, free: 5.41 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4987, allocations: 0 / 0.7812 GB, free: 5.41 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4987, allocations: 0 / 0.7812 GB, free: 5.41 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.4987, allocations: 0 / 0.7812 GB, free: 5.41 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01028/0.509, allocations: 1.378 MB / 0.7825 GB, free: 3.98 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.5091, allocations: 8.031 kB / 0.7826 GB, free: 3.973 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003926/0.5095, allocations: 95.58 kB / 0.7826 GB, free: 3.879 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005261/0.51, allocations: 414.1 kB / 0.783 GB, free: 3.426 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.51, allocations: 4.375 kB / 0.783 GB, free: 3.422 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.5101, allocations: 12.31 kB / 0.7831 GB, free: 3.41 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003913/0.5105, allocations: 391.5 kB / 0.7834 GB, free: 3.016 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.5105, allocations: 0 / 0.7834 GB, free: 3.016 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.5105, allocations: 11.97 kB / 0.7834 GB, free: 3.004 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.5105, allocations: 0 / 0.7834 GB, free: 3.004 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003972/0.5109, allocations: 431.8 kB / 0.7839 GB, free: 2.582 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005761/0.5115, allocations: 0.6732 MB / 0.7845 GB, free: 1.859 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.512, allocations: 0.5594 MB / 0.7851 GB, free: 1.281 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.5123, allocations: 337.7 kB / 0.7854 GB, free: 0.9453 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009426/0.5132, allocations: 1.028 MB / 0.7864 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003748/0.5136, allocations: 408.8 kB / 0.7868 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.5136, allocations: 0 / 0.7868 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001224/0.5149, allocations: 1.3 MB / 0.788 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.5149, allocations: 77.11 kB / 0.7881 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.516, allocations: 1.293 MB / 0.7894 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.5161, allocations: 37.69 kB / 0.7894 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.5163, allocations: 281.4 kB / 0.7897 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.829e-05/0.5163, allocations: 23.73 kB / 0.7897 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000286/0.5166, allocations: 351.8 kB / 0.79 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.685e-05/0.5167, allocations: 322 kB / 0.7904 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.5178, allocations: 1.369 MB / 0.7917 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/0.519, allocations: 1.505 MB / 0.7932 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006599/0.5256, allocations: 3.56 MB / 0.7966 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.5256, allocations: 0 / 0.7966 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004059/0.5297, allocations: 4.014 MB / 0.8006 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.5297, allocations: 4 kB / 0.8006 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.5298, allocations: 4 kB / 0.8006 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.5298, allocations: 0 / 0.8006 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.5299, allocations: 20.02 kB / 0.8006 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.53, allocations: 4 kB / 0.8006 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004926/0.5305, allocations: 228.3 kB / 0.8008 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.5305, allocations: 23.98 kB / 0.8008 GB, free: 0.6797 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0003204/0.5308, allocations: 251.3 kB / 0.8011 GB, free: 436 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.678e-05/0.5309, allocations: 78.62 kB / 0.8011 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.5312, allocations: 83.81 kB / 0.8012 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.5312, allocations: 0 / 0.8012 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5312, allocations: 0 / 0.8012 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.5312, allocations: 4 kB / 0.8012 GB, free: 256 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004416/0.5317, allocations: 0.514 MB / 0.8017 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.5317, allocations: 7.938 kB / 0.8017 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.309e-05/0.5318, allocations: 11.92 kB / 0.8017 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.5318, allocations: 0 / 0.8017 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.5318, allocations: 7.938 kB / 0.8018 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5318, allocations: 32 / 0.8018 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5318, allocations: 8 kB / 0.8018 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008263/0.5327, allocations: 1.006 MB / 0.8027 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.5328, allocations: 163.7 kB / 0.8029 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.407e-05/0.5328, allocations: 4 kB / 0.8029 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.533, allocations: 11.98 kB / 0.8029 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.533, allocations: 4 kB / 0.8029 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.5331, allocations: 11.97 kB / 0.8029 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007059/0.5338, allocations: 0.7222 MB / 0.8036 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5338, allocations: 3.938 kB / 0.8036 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001492/0.5353, allocations: 0.5857 MB / 0.8042 GB, free: 13.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0017/0.537, allocations: 0.6973 MB / 0.8049 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002117/0.5391, allocations: 2.548 MB / 0.8074 GB, free: 9.852 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5392, allocations: 0 / 0.8074 GB, free: 9.852 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002966/0.5395, allocations: 335.8 kB / 0.8077 GB, free: 9.523 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.5399, allocations: 64.77 kB / 0.8078 GB, free: 9.457 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.542, allocations: 1.902 MB / 0.8096 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/0.5425, allocations: 0.9879 MB / 0.8106 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.5426, allocations: 31.41 kB / 0.8106 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of SimCode: time 7.11e-07/0.5426, allocations: 0 / 0.8106 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of Templates: time 0.02126/0.5638, allocations: 14.5 MB / 0.8248 GB, free: 7.988 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)