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.0009667/0.0009667, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001314/0.001314, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 223.3 MB / 240 MB, free: 5.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.001705/0.001705, allocations: 273.5 kB / 291.4 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9279/0.9279, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003869, allocations: 18.45 kB / 0.5981 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1342, allocations: 88.54 MB / 0.6845 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001673/0.1359, allocations: 1.424 MB / 0.6859 GB, free: 13.99 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006617/0.1425, allocations: 4.981 MB / 0.6908 GB, free: 9.008 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.012e-05/0.1426, allocations: 0.9688 kB / 0.6908 GB, free: 9.008 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009126/0.1435, allocations: 312.9 kB / 0.6911 GB, free: 8.703 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1436, allocations: 55.73 kB / 0.6911 GB, free: 8.648 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.002535/0.1462, allocations: 1.138 MB / 0.6922 GB, free: 7.516 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00025/0.1464, allocations: 171.4 kB / 0.6924 GB, free: 7.348 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.197e-05/0.1465, allocations: 9.562 kB / 0.6924 GB, free: 7.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.434e-05/0.1466, allocations: 55.77 kB / 0.6925 GB, free: 7.285 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.1468, allocations: 195.6 kB / 0.6927 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.956e-05/0.1469, allocations: 16 kB / 0.6927 GB, free: 7.078 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00274/0.1496, allocations: 1.95 MB / 0.6946 GB, free: 5.125 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002262/0.1499, allocations: 271.2 kB / 0.6948 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.15, allocations: 125.2 kB / 0.695 GB, free: 4.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.1515, allocations: 1.446 MB / 0.6964 GB, free: 3.281 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1515, allocations: 4 kB / 0.6964 GB, free: 3.277 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1515, allocations: 0 / 0.6964 GB, free: 3.277 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1515, allocations: 0 / 0.6964 GB, free: 3.277 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.007017/0.1585, allocations: 1.312 MB / 0.6976 GB, free: 1.914 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.1586, allocations: 8.031 kB / 0.6977 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003256/0.1589, allocations: 98.55 kB / 0.6978 GB, free: 1.809 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.1594, allocations: 420.9 kB / 0.6982 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.1594, allocations: 0 / 0.6982 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.538e-05/0.1594, allocations: 4 kB / 0.6982 GB, free: 1.344 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/0.1598, allocations: 387.2 kB / 0.6985 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-06/0.1599, allocations: 0 / 0.6985 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.1599, allocations: 8 kB / 0.6985 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1599, allocations: 4 kB / 0.6985 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/0.1603, allocations: 443.6 kB / 0.699 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005788/0.1609, allocations: 0.6615 MB / 0.6996 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004974/0.1614, allocations: 0.5594 MB / 0.7002 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002986/0.1617, allocations: 337.7 kB / 0.7005 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009177/0.1626, allocations: 1.04 MB / 0.7015 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003865/0.163, allocations: 400.9 kB / 0.7019 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.1631, allocations: 0 / 0.7019 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001295/0.1644, allocations: 1.296 MB / 0.7031 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.1644, allocations: 89.08 kB / 0.7032 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.1656, allocations: 1.278 MB / 0.7045 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.1657, allocations: 33.69 kB / 0.7045 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.1659, allocations: 281.4 kB / 0.7048 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.117e-05/0.1659, allocations: 23.66 kB / 0.7048 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.1659, allocations: 4 kB / 0.7048 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.1661, allocations: 423.9 kB / 0.7052 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.1673, allocations: 1.369 MB / 0.7065 GB, free: 8.371 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.1687, allocations: 1.513 MB / 0.708 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.1702, allocations: 1.91 MB / 0.7099 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1702, allocations: 0 / 0.7099 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004034/0.1743, allocations: 3.983 MB / 0.7138 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.1743, allocations: 8 kB / 0.7138 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.1743, allocations: 15.89 kB / 0.7138 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1744, allocations: 4 kB / 0.7138 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.1745, allocations: 15.98 kB / 0.7138 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1745, allocations: 0 / 0.7138 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004314/0.1749, allocations: 232.3 kB / 0.714 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.026e-05/0.175, allocations: 27.94 kB / 0.7141 GB, free: 0.6016 MB / 0.4981 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 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002934/0.1753, allocations: 256.4 kB / 0.7143 GB, free: 352 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.673e-05/0.1754, allocations: 74.69 kB / 0.7144 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000261/0.1756, allocations: 75.81 kB / 0.7144 GB, free: 188 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1756, allocations: 4 kB / 0.7145 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1757, allocations: 0 / 0.7145 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1757, allocations: 0 / 0.7145 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005109/0.1762, allocations: 0.5256 MB / 0.715 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1762, allocations: 0 / 0.715 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.917e-05/0.1763, allocations: 12.02 kB / 0.715 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.1763, allocations: 4 kB / 0.715 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.1763, allocations: 4 kB / 0.715 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1763, allocations: 0 / 0.715 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1763, allocations: 4 kB / 0.715 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008944/0.1772, allocations: 1.01 MB / 0.716 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.1773, allocations: 155.8 kB / 0.7161 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.1774, allocations: 0 / 0.7161 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1775, allocations: 11.98 kB / 0.7161 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.276e-05/0.1776, allocations: 4 kB / 0.7161 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/0.1776, allocations: 15.97 kB / 0.7162 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007632/0.1784, allocations: 0.7144 MB / 0.7169 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1784, allocations: 0 / 0.7169 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001306/0.1797, allocations: 0.5779 MB / 0.7174 GB, free: 13.05 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001655/0.1814, allocations: 0.6965 MB / 0.7181 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002257/0.1836, allocations: 2.548 MB / 0.7206 GB, free: 9.809 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1836, allocations: 0 / 0.7206 GB, free: 9.809 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.184, allocations: 339.7 kB / 0.7209 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.1843, allocations: 63.19 kB / 0.721 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.1865, allocations: 1.979 MB / 0.7229 GB, free: 7.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005167/0.187, allocations: 0.9881 MB / 0.7239 GB, free: 6.395 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001846/0.1872, allocations: 45.41 kB / 0.7239 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.1873, allocations: 23.42 kB / 0.7239 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of SimCode: time 3.61e-07/0.1874, allocations: 0 / 0.7239 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of Templates: time 0.02129/0.2087, allocations: 13.59 MB / 0.7372 GB, free: 8.797 MB / 0.5294 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)