/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 129 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 = 7413
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0245.4+2408_daily_bin1548
RA = 41.3545, Dec = 24.1498
tmin = 640569601, tmax = 640828801
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='790824', job_status='RUN', time_executed='2021-08-16 19:13:51.765024', time_epoch_executed='1629166431.77' WHERE source_name='4FGL J0245.4+2408' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790824

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790824/ft1_4FGL_J0245.4+2408_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790824/ft1_4FGL_J0245.4+2408_daily_bin1548.fits outfile=/scratch/kocevski/790824/ft1_filteredMKT_4FGL_J0245.4+2408_daily_bin1548.fits ra=41.3545 dec=24.1498 rad=12.0 tmin=640569601.0 tmax=640828801.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 3.43
user 2.81
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.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/790824/ft1_filteredMKT_4FGL_J0245.4+2408_daily_bin1548.fits evtable="EVENTS" outfile="/scratch/kocevski/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.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 1.10
user 0.35
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/790824/ltcube_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.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/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits
.....................!
real 14.06
user 13.06
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/790824/ltcube_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.fits outfile=/scratch/kocevski/790824/expmap_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.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/790824/ltcube_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.fits
.....................!
real 197.51
user 187.57
sys 5.14

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0245.4+2408 @ 41.3545 24.1498

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.fits scfile=/scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits outfile=/scratch/kocevski/790824/cmap_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.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.3545 yref=24.1498 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 0.86
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.fits scfile=/scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits outfile=/scratch/kocevski/790824/cmap_HighResolution_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.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.3545 yref=24.1498 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 0.79
user 0.39
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790824/Model_4FGL_J0245.4+2408_daily_bin1548.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/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.fits..................!
real 17.35
user 15.33
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.fits', '/scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits', expMap='/scratch/kocevski/790824/expmap_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.fits', expCube='/scratch/kocevski/790824/ltcube_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790824/Model_4FGL_J0245.4+2408_daily_bin1548.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.4+2408'

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.151e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790824/ft1_filtered_4FGL_J0245.4+2408_daily_bin1548.fits
Spacecraft file(s): /scratch/kocevski/790824/ft2_4FGL_J0245.4+2408_daily_bin1548.fits
Exposure map: /scratch/kocevski/790824/expmap_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.fits
Exposure cube: /scratch/kocevski/790824/ltcube_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790824/Model_4FGL_J0245.4+2408_daily_bin1548.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) = 202.793313673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .24789E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    121.59       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11212E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11366E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12482E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    733.22       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22542E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2022.5       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12361E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.191       1.0000         .10000E-03   10000.    
    26 'norm      '    152.04       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .30360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   202.0449     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3916 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.7849        .87767E-06** at limit **
   2  Prefactor     .10000E-03    897.61       -.15507E-03** at limit **
   3  Prefactor     .10000E-03    17.393        .42436E-06** at limit **
   4  Prefactor     .10002E-03    133.78        .58487E-04** at limit **
   5  Prefactor     .10000E-03    25.778        .20716E-06** at limit **
   6  norm          .10002E-03    6306.6       -.11130E-02** at limit **
   7  Prefactor    10000.0        9428.8        .40055E-02** at limit **
   8  Prefactor     .10000E-03    97.446       -.36917E-04** at limit **
   9  Prefactor    10000.0        9732.4        .33613E-02** at limit **
  10  Prefactor     .10000E-03    208.14       -.14616E-03** at limit **
  11  norm          119.74        433.43       -.16287E-02    .77720E-04
  12  Prefactor     .10000E-03    285.48       -.26998E-04** at limit **
  13  norm          .10000E-03    18.562       -.39617E-06** at limit **
  14  Prefactor     .10000E-03    489.62        .15239E-03** at limit **
  15  Prefactor     .10000E-03    589.43        .11122E-03** at limit **
  16  Prefactor     .10000E-03    316.13        .29199E-04** at limit **
  17  Prefactor     734.03        775.33        .30891E-03    .86580E-06
  18  Prefactor     .10000E-03    341.17        .67922E-04** at limit **
  19  Prefactor     .10001E-03    7329.8       -.22714E-02** at limit **
  20  norm          .10000E-03    101.80        .28390E-04** at limit **
  21  norm          2022.6        1189.7        .35826E-04    .23087E-04
  22  Prefactor     .10000E-03    577.24        .11913E-03** at limit **
  23  Prefactor     .10000E-03    18.085       -.49141E-07** at limit **
  24  Prefactor     .10000E-03    35.209       -.27099E-06** at limit **
  25  norm          17.207        14.850       -.19506E-05    .90208E-04
  26  norm          152.03        166.88       -.10254E-04    .68462E-04
  27  Normalizat    .10000E-01    .23467        .11977E-04** at limit **
  28  Prefactor     .30356        .22363        .51084E-04   -.10602E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 0.000100019
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 119.744
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 734.03
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 2022.63
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.2069
  norm       = 152.028
  Normalizat = 0.01
  Prefactor  = 0.303558
 **********
 **   18 **HESSE 
 **********

 FCN=   202.0449     FROM HESSE     STATUS=OK           491 CALLS     4407 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.7869        .43482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    897.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.395        .57980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    133.91        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.781        .70595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10002E-03    6307.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        9427.7        .18535E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    97.446        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        9754.7        .18357E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    208.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          119.74        434.97        .18249E-03   -1.3515    
  12  Prefactor     .10000E-03    285.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    18.571        .59895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    489.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    589.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    316.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     734.03        775.60        .76727E-04   -1.0221    
  18  Prefactor     .10000E-03    341.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    7331.0        .18270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    101.79        .14046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2022.6        1191.8        .49791E-04   -.63786    
  22  Prefactor     .10000E-03    577.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.086        .59120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    35.209        .82517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.207        14.920        .46510E-04   -1.4878    
  26  norm          152.03        168.62        .32690E-04   -1.3236    
  27  Normalizat    .10000E-01    .23508        .21308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .30356        .22655        .14965E-03   -1.2206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53719e-09
Minuit parameter uncertainties:
  1  0.000263372
  2  0.0040091
  3  0.000193783
  4  0.00343189
  5  0.000221032
  6  0.0148995
  7  0.00844149
  8  1.85045e-06
  9  0.244056
  10  7.19168e-05
  11  447.491
  12  0.000335129
  13  0.000112261
  14  0.000102954
  15  0.00128606
  16  0.000147533
  17  787.511
  18  0.000704197
  19  0.0150226
  20  0.00015595
  21  1210.01
  22  9.74413e-05
  23  2.04141e-05
  24  1.22159e-05
  25  14.9231
  26  169.155
  27  1.78844e-05
  28  0.227209
Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  7.340e+02  7.875e+02  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  3.036e-01  2.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.000e-02  1.788e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.07
Ra Dec: 41.355 24.150
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.22e-06 +/- 4.52e-06
Energy Flux (Fixed Index): 1.03e-03 +/- 1.11e-03

TS (Fixed Index): 3.07
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 1.94e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.53e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790824/likelihoodResults_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.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): 0
logL (Free Index) = 202.031704003
delta logL = 0.0132102004333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 202.026409311
delta logL = 0.0185048919147

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   202.0264     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      233 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     642.61        845.73        .81607E-04   -.10483E-05
   2  Index         2.9067        1.2147        .29272E-03   -.12283E-05
   3  Normalizat    .10000E-01    .23423        .21272E-02** at limit **
   4  Prefactor     .30248        .18498        .14967E-03   -.21360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 642.613
  Index      = 2.90667
  Normalizat = 0.01
  Prefactor  = 0.302476
 **********
 **   18 **HESSE 
 **********

 FCN=   202.0264     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     642.61        845.01        .16321E-04   -1.0582    
   2  Index         2.9067        1.2136        .11709E-04   -.43198    
   3  Normalizat    .10000E-01    .23423        .42544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30248        .18498        .29934E-04   -1.2212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76562e-12
Minuit parameter uncertainties:
  1  862.693
  2  1.22855
  3  5.72748e-07
  4  0.185344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790824': 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): 0
logL (Free Index) = 202.026408799
delta logL = 0.0185054037421

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  6.426e+02  8.627e+02  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.907e+00  1.229e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  3.025e-01  1.853e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.000e-02  5.727e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 41.355 24.150
Photon Index (Free Index): 2.91 +/- 1.23
Photon Flux (Free Index): 4.81e-06 +/- 5.92e-06
Energy Flux (Free Index): 1.01e-03 +/- 1.07e-03

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/790824/cmap_HighResolution_640569601_640828801_4FGL_J0245.4+2408_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e+00', comment='SUCCESS', photon_flux='4.22e-06', energy_flux2='1.01e-03', photon_flux_error='4.52e-06', dlogl='1.85e-02', energy_flux='1.03e-03', photon_flux2='4.81e-06', job_status='DONE', time_completed='2021-08-16 19:20:08.812373', photon_index_error2='1.23', photon_index2='2.91', ts='3.07', fit_tolerance='1e-08', GAL='0.30', photon_index_error='0.00', photon_flux_upper_limit='1.94e-05', energy_flux_error2='1.07e-03', EG='0.01', time_epoch_completed='1629166808.81', return_code='0', job_id='790824', GAL2='0.30', EG2='0.01', return_code2='0', energy_flux_error='1.11e-03', photon_flux_error2='5.92e-06', ts2='3.10', photon_index='2.68' WHERE bin_id='1548' AND source_name='4FGL J0245.4+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 19:20:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 790824: <4FGL_J0245.4+2408_daily_bin1548> in cluster <slac> Done

Job <4FGL_J0245.4+2408_daily_bin1548> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 16 19:10:52 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 19:10:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 19:10:55 2021
Terminated at Mon Aug 16 19:20:12 2021
Results reported at Mon Aug 16 19:20:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.4+2408_daily_bin1548 41.3545 24.1498 640569601 640828801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.4+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   345.57 sec.
    Max Memory :                                 1176 MB
    Average Memory :                             198.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            560 sec.

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

