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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7687/0.7687, allocations: 143.4 MB / 159.2 MB, free: 4.895 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 184.5 kB / 191.9 MB, free: 5.719 MB / 154.7 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 / 447.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 106.8 kB / 0.517 GB, free: 3.703 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00184/0.00184, allocations: 279.8 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 79.89 kB / 0.6886 GB, free: 3.781 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2973, allocations: 81.3 MB / 0.768 GB, free: 27.64 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002435/0.2998, allocations: 1.795 MB / 0.7697 GB, free: 25.84 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.004529/0.3043, allocations: 4.394 MB / 0.774 GB, free: 21.43 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.17e-05/0.3045, allocations: 0 / 0.774 GB, free: 21.43 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009773/0.3054, allocations: 354.6 kB / 0.7743 GB, free: 21.08 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 8.833e-05/0.3055, allocations: 51.8 kB / 0.7744 GB, free: 21.03 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.3072, allocations: 0.7631 MB / 0.7751 GB, free: 20.27 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.3074, allocations: 199.3 kB / 0.7753 GB, free: 20.07 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.311e-05/0.3074, allocations: 9.547 kB / 0.7753 GB, free: 20.06 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.078e-05/0.3075, allocations: 51.73 kB / 0.7754 GB, free: 20.01 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/0.3076, allocations: 176.8 kB / 0.7756 GB, free: 19.84 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.975e-05/0.3077, allocations: 12 kB / 0.7756 GB, free: 19.83 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001479/0.3092, allocations: 1.396 MB / 0.7769 GB, free: 18.43 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.3093, allocations: 275.8 kB / 0.7772 GB, free: 18.16 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.3095, allocations: 302.1 kB / 0.7775 GB, free: 17.86 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001229/0.3107, allocations: 1.55 MB / 0.779 GB, free: 16.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3108, allocations: 0 / 0.779 GB, free: 16.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.3108, allocations: 0 / 0.779 GB, free: 16.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.3108, allocations: 0 / 0.779 GB, free: 16.3 MB / 458.7 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.01003/0.3208, allocations: 1.265 MB / 0.7802 GB, free: 14.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.3209, allocations: 15.97 kB / 0.7802 GB, free: 14.97 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003218/0.3212, allocations: 99.59 kB / 0.7803 GB, free: 14.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.3216, allocations: 406 kB / 0.7807 GB, free: 14.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.3216, allocations: 384 / 0.7807 GB, free: 14.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.3216, allocations: 4.375 kB / 0.7807 GB, free: 14.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.3219, allocations: 399.4 kB / 0.7811 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.322, allocations: 0 / 0.7811 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.322, allocations: 4 kB / 0.7811 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.322, allocations: 0 / 0.7811 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.3223, allocations: 439.7 kB / 0.7815 GB, free: 13.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.3227, allocations: 0.6614 MB / 0.7822 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.3231, allocations: 0.5672 MB / 0.7827 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.3233, allocations: 337.6 kB / 0.7831 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007539/0.3241, allocations: 1.025 MB / 0.7841 GB, free: 10.71 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002885/0.3244, allocations: 416.8 kB / 0.7845 GB, free: 10.29 MB / 458.7 MB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.3244, allocations: 0 / 0.7845 GB, free: 10.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=8): time 0.0009045/0.3253, allocations: 1.293 MB / 0.7857 GB, free: 8.984 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/0.3253, allocations: 81.11 kB / 0.7858 GB, free: 8.887 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008492/0.3262, allocations: 1.289 MB / 0.7871 GB, free: 7.586 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.3262, allocations: 29.7 kB / 0.7871 GB, free: 7.551 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3264, allocations: 289.3 kB / 0.7874 GB, free: 7.262 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.3264, allocations: 19.75 kB / 0.7874 GB, free: 7.242 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/0.3266, allocations: 347.5 kB / 0.7877 GB, free: 6.898 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.577e-05/0.3267, allocations: 322 kB / 0.788 GB, free: 6.578 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008186/0.3275, allocations: 1.357 MB / 0.7893 GB, free: 5.219 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008799/0.3284, allocations: 1.498 MB / 0.7908 GB, free: 3.711 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006082/0.3345, allocations: 3.534 MB / 0.7943 GB, free: 88 kB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3345, allocations: 0 / 0.7943 GB, free: 88 kB / 458.7 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003902/0.3384, allocations: 3.977 MB / 0.7981 GB, free: 12.07 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.3385, allocations: 9.75 kB / 0.7981 GB, free: 12.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.3385, allocations: 0 / 0.7981 GB, free: 12.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.3385, allocations: 4 kB / 0.7981 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.3386, allocations: 15.98 kB / 0.7982 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.3386, allocations: 3.938 kB / 0.7982 GB, free: 12.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004685/0.3391, allocations: 224.3 kB / 0.7984 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.192e-05/0.3392, allocations: 27.98 kB / 0.7984 GB, free: 11.79 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (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 (16): * Single equations (assignments): 13 * Array equations: 2 * 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 prepare postOptimizeDAE: time 0.0002704/0.3395, allocations: 245.7 kB / 0.7986 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.928e-05/0.3395, allocations: 74.62 kB / 0.7987 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002755/0.3398, allocations: 87.66 kB / 0.7988 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3398, allocations: 0 / 0.7988 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.3398, allocations: 0 / 0.7988 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3398, allocations: 0 / 0.7988 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004058/0.3403, allocations: 0.5215 MB / 0.7993 GB, free: 10.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3403, allocations: 0 / 0.7993 GB, free: 10.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.848e-05/0.3403, allocations: 15.91 kB / 0.7993 GB, free: 10.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3403, allocations: 4 kB / 0.7993 GB, free: 10.79 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.3404, allocations: 7.922 kB / 0.7993 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.3404, allocations: 0 / 0.7993 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3404, allocations: 4 kB / 0.7993 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.342, allocations: 2.257 MB / 0.8015 GB, free: 8.457 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.3421, allocations: 159.8 kB / 0.8017 GB, free: 8.281 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.169e-05/0.3422, allocations: 7.984 kB / 0.8017 GB, free: 8.273 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/0.3424, allocations: 7.984 kB / 0.8017 GB, free: 8.266 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/0.3424, allocations: 3.984 kB / 0.8017 GB, free: 8.262 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.61e-05/0.3424, allocations: 15.98 kB / 0.8017 GB, free: 8.246 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007085/0.3432, allocations: 0.7218 MB / 0.8024 GB, free: 7.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3432, allocations: 0 / 0.8024 GB, free: 7.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001016/0.3442, allocations: 411.8 kB / 0.8028 GB, free: 7.117 MB / 474.7 MB 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.001114/0.3453, allocations: 492.7 kB / 0.8033 GB, free: 6.625 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002032/0.3474, allocations: 2.492 MB / 0.8057 GB, free: 4.125 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3474, allocations: 4 kB / 0.8057 GB, free: 4.121 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.3477, allocations: 339.8 kB / 0.8061 GB, free: 3.789 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.3481, allocations: 52.83 kB / 0.8061 GB, free: 3.738 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.3503, allocations: 2.166 MB / 0.8082 GB, free: 1.527 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.3508, allocations: 0.9881 MB / 0.8092 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0001883/0.351, allocations: 45.41 kB / 0.8092 GB, free: 480 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.991e-05/0.3511, allocations: 23.42 kB / 0.8093 GB, free: 460 kB / 474.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3511, allocations: 0 / 0.8093 GB, free: 460 kB / 474.7 MB Notification: Performance of Templates: time 0.01645/0.3676, allocations: 9.996 MB / 0.819 GB, free: 6.512 MB / 490.7 MB 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)