/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7331
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0245.1-0257_daily_bin602
RA = 41.2914, Dec = -2.955
tmin = 395366401, tmax = 395625601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='773535', job_status='RUN', time_executed='2021-08-16 18:23:31.768525', time_epoch_executed='1629163411.77' WHERE source_name='4FGL J0245.1-0257' and cadence='daily' and bin_id='602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773535

Creating custom pfile directory:
/scratch/kocevski/773535/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=395366401.0 && nMetStart<395625601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=395366401.0 && nMetStart<395625601.0' /Data/Flight/Level1/LPA

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773535/ft1_4FGL_J0245.1-0257_daily_bin602.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=395366401.0 && nMetStart<395625601.0' /Data/Flight/Level1/LPA

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773535/ft1_4FGL_J0245.1-0257_daily_bin602.fits outfile=/scratch/kocevski/773535/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin602.fits ra=41.2914 dec=-2.955 rad=12.0 tmin=395366401.0 tmax=395625601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 9.99
user 4.94
sys 4.93

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/773535/ft1_filteredMKT_4FGL_J0245.1-0257_daily_bin602.fits evtable="EVENTS" outfile="/scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 5.51
user 0.33
sys 4.91

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits" evtable="EVENTS" scfile=/scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits sctable="SC_DATA" outfile=/scratch/kocevski/773535/ltcube_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits
.....................!
real 17.47
user 11.60
sys 5.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits sctable="SC_DATA" expcube=/scratch/kocevski/773535/ltcube_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits outfile=/scratch/kocevski/773535/expmap_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/773535/ltcube_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits
.....................!
real 196.97
user 185.49
sys 10.30

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0245.1-0257 @ 41.2914 -2.955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits scfile=/scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits outfile=/scratch/kocevski/773535/cmap_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=41.2914 yref=-2.955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.18
user 0.38
sys 4.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits scfile=/scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits outfile=/scratch/kocevski/773535/cmap_HighResolution_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=41.2914 yref=-2.955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.22
user 0.38
sys 4.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/773535/Model_4FGL_J0245.1-0257_daily_bin602.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits.....................!
real 87.12
user 79.00
sys 7.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits', '/scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits', expMap='/scratch/kocevski/773535/expmap_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits', expCube='/scratch/kocevski/773535/ltcube_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/773535/Model_4FGL_J0245.1-0257_daily_bin602.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.1-0257'

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  7.135e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.039e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.247e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/773535/ft1_filtered_4FGL_J0245.1-0257_daily_bin602.fits
Spacecraft file(s): /scratch/kocevski/773535/ft2_4FGL_J0245.1-0257_daily_bin602.fits
Exposure map: /scratch/kocevski/773535/expmap_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits
Exposure cube: /scratch/kocevski/773535/ltcube_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/773535/Model_4FGL_J0245.1-0257_daily_bin602.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6978.51268246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6978.49537133

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5034       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1050       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.463       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8982       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.094       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12622E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4671       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .72220       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6978.495     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1993 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9990        .90712E-02** at limit **
   2  norm          1.5032        .88935        .87280E-02    .44031E-03
   3  Prefactor     .10000E-03    8.0542        .90712E-02** at limit **
   4  Prefactor     7.1040        25.595        .37624E-02    .43389E-03
   5  Prefactor     .10001E-03    4.5433        .90712E-02** at limit **
   6  Prefactor     .10000E-03    10.268        .90712E-02** at limit **
   7  Prefactor     19.461        16.861        .22697E-02    .72536E-03
   8  Prefactor     9.8928        12.281        .31842E-02    .12540E-03
   9  Prefactor     .10000E-03    23.125        .90712E-02** at limit **
  10  Prefactor     .10000E-03    1.9069        .90712E-02** at limit **
  11  Prefactor     .10000E-03    4.7610        .90712E-02** at limit **
  12  norm          20.096        11.356        .22338E-02    .40146E-04
  13  norm          .10000E-03    1.9608        .90712E-02** at limit **
  14  Prefactor     10.342        10.583        .31148E-02    .81182E-04
  15  Prefactor     .10001E-03    4.2662        .90712E-02** at limit **
  16  Prefactor     10.570        15.054        .30806E-02   -.79218E-04
  17  Prefactor     .10000E-03    31.052        .90712E-02** at limit **
  18  Prefactor     7.4669        4.6472        .36692E-02    .32850E-02
  19  Normalizat    .72247        .17787        .72345E-01    .58913E-04
  20  Prefactor     1.1791        .12679        .35140E-01    .60355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.50322
  Prefactor  = 0.0001
  Prefactor  = 7.10397
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 19.4606
  Prefactor  = 9.89284
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 20.0958
  norm       = 0.0001
  Prefactor  = 10.3424
  Prefactor  = 0.000100006
  Prefactor  = 10.5698
  Prefactor  = 0.0001
  Prefactor  = 7.46695
  Normalizat = 0.722467
  Prefactor  = 1.17911
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.495     FROM HESSE     STATUS=OK           285 CALLS     2278 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0025        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5032        .88026        .57809E-04   -1.5463    
   3  Prefactor     .10000E-03    8.0598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1040        25.575        .15049E-03   -1.5175    
   5  Prefactor     .10001E-03    4.5554        .17387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.461        16.868        .90787E-04   -1.4825    
   8  Prefactor     9.8928        12.376        .12737E-03   -1.5079    
   9  Prefactor     .10000E-03    23.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9151        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8633        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.096        11.385        .89351E-04   -1.4811    
  13  norm          .10000E-03    1.9850        .11417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.342        10.581        .12459E-03   -1.5065    
  15  Prefactor     .10001E-03    4.3552        .16837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.570        15.024        .12323E-03   -1.5058    
  17  Prefactor     .10000E-03    31.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4669        4.6471        .68509E-03   -1.5161    
  19  Normalizat    .72247        .19727        .32020E-03   -1.0301    
  20  Prefactor     1.1791        .14126        .19014E-03   -.86977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34864e-09
Minuit parameter uncertainties:
  1  3.40399e-05
  2  0.880269
  3  8.62211e-05
  4  25.6142
  5  0.000505897
  6  0.000101657
  7  16.8717
  8  12.3793
  9  0.000247376
  10  4.24419e-06
  11  0.000238457
  12  11.386
  13  9.17644e-07
  14  10.5832
  15  0.000321966
  16  15.0292
  17  0.000242742
  18  4.64737
  19  0.197467
  20  0.141305
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6978.49536979

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.474e-04  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.039e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.247e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.179e+00  1.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  7.225e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 41.291 -2.955
Photon Flux Upper Limit: 5.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773535/likelihoodResults_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6978.49557565
delta logL = -0.000205863052543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6978.49536982
delta logL = -3.12002157443e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9580       1.0000          .0000       10.000    
     3 'Normalizat'    .72247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6978.495     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    783.07        .90712E-02** at limit **
   2  Index         1.9602        5.7389        .50000       -.82593E-06
   3  Normalizat    .72247        .27849E-01    .72345E-01    .19042E-04
   4  Prefactor     1.1791        .20754E-01    .35144E-01   -.23414E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9602
  Normalizat = 0.722467
  Prefactor  = 1.17911
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.495     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2080.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9602        8.8113        .50000       -.65349    
   3  Normalizat    .72247        .50890E-01    .32020E-03   -1.0301    
   4  Prefactor     1.1791        .38005E-01    .19014E-03   -.86977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44132e-10
Minuit parameter uncertainties:
  1  0.000341079
  2  39.4232
  3  0.0508936
  4  0.0380057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773535': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6978.49536981
delta logL = -1.82262738235e-08

Extracting fit parameters...

4FGL J0245.1-0257
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  3.411e-04  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  1.960e+00  3.942e+01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  2.247e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.179e+00  3.801e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  7.225e-01  5.089e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 41.291 -2.955

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/773535/cmap_HighResolution_395366401_395625601_4FGL_J0245.1-0257_daily_bin602.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/773535

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-08-16 18:35:14.227213', job_id='773535', GAL2='1.18', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1629164114.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-1.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='602' AND source_name='4FGL J0245.1-0257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 18:35:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 773535: <4FGL_J0245.1-0257_daily_bin602> in cluster <slac> Done

Job <4FGL_J0245.1-0257_daily_bin602> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 18:20:42 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 18:21:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 18:21:50 2021
Terminated at Mon Aug 16 18:35:18 2021
Results reported at Mon Aug 16 18:35:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.1-0257_daily_bin602 41.2914 -2.955 395366401 395625601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.1-0257 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   763.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            876 sec.

The output (if any) is above this job summary.

