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


Performing analysis on: 4FGL_J0403.5-2437_daily_bin1250
RA = 60.8989, Dec = -24.6168
tmin = 563328001, tmax = 563587201
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='184667', job_status='RUN', time_executed='2021-08-20 00:43:51.277867', time_epoch_executed='1629445431.28' WHERE source_name='4FGL J0403.5-2437' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184667/ft1_4FGL_J0403.5-2437_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184667/ft1_4FGL_J0403.5-2437_daily_bin1250.fits outfile=/scratch/kocevski/184667/ft1_filteredMKT_4FGL_J0403.5-2437_daily_bin1250.fits ra=60.8989 dec=-24.6168 rad=12.0 tmin=563328001.0 tmax=563587201.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 12.32
user 2.79
sys 9.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.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/184667/ft1_filteredMKT_4FGL_J0403.5-2437_daily_bin1250.fits evtable="EVENTS" outfile="/scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.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 9.84
user 0.34
sys 9.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/184667/ltcube_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.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/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits
.....................!
real 23.27
user 12.47
sys 10.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/184667/ltcube_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.fits outfile=/scratch/kocevski/184667/expmap_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.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/184667/ltcube_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.fits
.....................!
real 201.33
user 184.87
sys 16.06

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 159 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0403.5-2437 @ 60.8989 -24.6168

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.fits scfile=/scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits outfile=/scratch/kocevski/184667/cmap_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.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=60.8989 yref=-24.6168 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 9.65
user 0.39
sys 9.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.fits scfile=/scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits outfile=/scratch/kocevski/184667/cmap_HighResolution_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.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=60.8989 yref=-24.6168 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 9.59
user 0.39
sys 9.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184667/Model_4FGL_J0403.5-2437_daily_bin1250.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.fits......................!
real 101.02
user 87.43
sys 13.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.fits', '/scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits', expMap='/scratch/kocevski/184667/expmap_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.fits', expCube='/scratch/kocevski/184667/ltcube_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/184667/Model_4FGL_J0403.5-2437_daily_bin1250.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0403.5-2437'

4FGL J0403.5-2437
   Spectrum: PowerLaw
265    Prefactor:  4.100e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
266        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  9.153e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/184667/ft1_filtered_4FGL_J0403.5-2437_daily_bin1250.fits
Spacecraft file(s): /scratch/kocevski/184667/ft2_4FGL_J0403.5-2437_daily_bin1250.fits
Exposure map: /scratch/kocevski/184667/expmap_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.fits
Exposure cube: /scratch/kocevski/184667/ltcube_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/184667/Model_4FGL_J0403.5-2437_daily_bin1250.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) = 3871.04271269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12964E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11613E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.134       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7595       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.334       1.0000         .10000E-03   10000.    
    12 'norm      '    .68104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9511       1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.475       1.0000         .10000E-03   10000.    
    18 'norm      '    .44111       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.082       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3033       1.0000         .10000E-03   10000.    
    22 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.484       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86814       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3871.014     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3187 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    320.41       -.30986E-04** at limit **
   2  Prefactor     5.3306        12.234        .88076E-05   -.16729E-03
   3  Prefactor     .10000E-03    136.11        .84087E-05** at limit **
   4  Prefactor     .10000E-03    24.355       -.13643E-05** at limit **
   5  Prefactor     14.138        48.253        .10760E-05    .45138E-05
   6  Prefactor     .10000E-03    31.491        .87670E-06** at limit **
   7  Prefactor     .99702        4.5059        .15408E-05   -.13806E-03
   8  Prefactor     .10000E-03    5.1507        .55049E-07** at limit **
   9  Prefactor     .10000E-03    1.5420       -.24158E-07** at limit **
  10  norm          4.7597        1.5152        .29676E-07   -.18564E-03
  11  Prefactor     25.333        60.020        .18142E-06   -.22247E-04
  12  norm          .67902        1.9712        .12331E-07   -.38998E-03
  13  Prefactor     .10000E-03    33.372        .41072E-06** at limit **
  14  Prefactor     45.056        57.320        .49378E-06   -.13135E-04
  15  Prefactor     4.9515        4.1123        .55755E-07   -.10445E-03
  16  norm          .10000E-03    16.075        .15078E-06** at limit **
  17  Prefactor     21.484        38.257        .97724E-06   -.65258E-05
  18  norm          .44112        .28857        .33515E-07   -.78554E-04
  19  Prefactor     25.082        21.684        .15367E-06   -.15703E-04
  20  Prefactor     .10000E-03    1.8329       -.28435E-07** at limit **
  21  Prefactor     3.3035        28.165        .14820E-04   -.51410E-04
  22  norm          .10001E-03    68.840       -.40420E-05** at limit **
  23  Prefactor     .10000E-03    21.071        .56845E-06** at limit **
  24  norm          14.484        6.2264        .70828E-07   -.90897E-04
  25  Normalizat    .86812        .21253       -.69350E-06   -.12979E-03
  26  Prefactor     .78250        .19925       -.21132E-05   -.74711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100305
  Prefactor  = 5.33055
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 14.1382
  Prefactor  = 0.0001
  Prefactor  = 0.997023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.75971
  Prefactor  = 25.3328
  norm       = 0.679019
  Prefactor  = 0.0001
  Prefactor  = 45.0559
  Prefactor  = 4.95148
  norm       = 0.0001
  Prefactor  = 21.4843
  norm       = 0.441115
  Prefactor  = 25.0819
  Prefactor  = 0.0001
  Prefactor  = 3.30352
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 14.4839
  Normalizat = 0.868123
  Prefactor  = 0.7825
 **********
 **   18 **HESSE 
 **********

 FCN=   3871.014     FROM HESSE     STATUS=OK           460 CALLS     3647 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    341.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3306        12.210        .87016E-03   -1.5246    
   3  Prefactor     .10000E-03    137.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.138        48.273        .10654E-03   -1.4956    
   6  Prefactor     .10000E-03    31.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .99702        3.9772        .21603E-03   -1.5508    
   8  Prefactor     .10000E-03    5.3351        .27522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5440        .75419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7597        1.5189        .39948E-04   -1.5272    
  11  Prefactor     25.333        60.020        .79587E-04   -1.4701    
  12  norm          .67902        1.7967        .12299E-03   -1.5543    
  13  Prefactor     .10000E-03    33.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.056        57.205        .59733E-04   -1.4364    
  15  Prefactor     4.9515        4.0945        .10875E-03   -1.5263    
  16  norm          .10000E-03    16.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.484        38.209        .86434E-04   -1.4781    
  18  norm          .44112        .28684        .26042E-04   -1.5575    
  19  Prefactor     25.082        21.681        .79985E-04   -1.4706    
  20  Prefactor     .10000E-03    1.8380        .82251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3035        28.535        .11138E-02   -1.5344    
  22  norm          .10001E-03    69.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.484        6.2322        .97134E-04   -1.4947    
  25  Normalizat    .86812        .24006        .25461E-03   -.97589    
  26  Prefactor     .78250        .22512        .25171E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20013e-09
Minuit parameter uncertainties:
  1  0.0205252
  2  12.2155
  3  0.000839482
  4  0.000229602
  5  48.4064
  6  0.000139787
  7  3.97823
  8  1.48943e-06
  9  2.8368e-06
  10  1.51893
  11  60.1635
  12  1.79684
  13  8.79497e-05
  14  57.2746
  15  4.09476
  16  2.00205e-06
  17  38.2529
  18  0.286842
  19  21.6878
  20  2.30785e-06
  21  19.4304
  22  0.00118656
  23  8.68998e-05
  24  6.23251
  25  0.24036
  26  0.225383
Done.

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

Extracting fit parameters...

4FGL J0403.5-2437
   Spectrum: PowerLaw
265    Prefactor:  2.148e+01  3.825e+01  1.000e-04  1.000e+04 ( 1.000e-13)
266        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  9.153e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.825e-01  2.254e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  8.681e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 60.899 -24.617
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184667/likelihoodResults_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.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) = 3870.85672118
delta logL = 0.157335868475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3870.85314779
delta logL = 0.160909262425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.424       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0295       1.0000          .0000       10.000    
     3 'Normalizat'    .84350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   3870.853     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      289 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.421        35.234        .10546E-03    .74813E-04
   2  Index         3.0296        1.3324        .73289E-02    .38437E-04
   3  Normalizat    .84390        .23573        .25776E-03   -.43123E-03
   4  Prefactor     .79480        .21890        .24986E-03   -.46229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4209
  Index      = 3.02964
  Normalizat = 0.8439
  Prefactor  = 0.794804
 **********
 **   18 **HESSE 
 **********

 FCN=   3870.853     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.421        29.488        .42184E-05   -1.4948    
   2  Index         3.0296        1.1175        .29316E-03   -.40506    
   3  Normalizat    .84390        .23574        .51553E-04   -.98460    
   4  Prefactor     .79480        .21851        .49972E-04   -.99920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76318e-10
Minuit parameter uncertainties:
  1  29.5181
  2  1.12887
  3  0.236025
  4  0.21875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184667': 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) = 3870.85314611
delta logL = 0.160910937797

Extracting fit parameters...

4FGL J0403.5-2437
   Spectrum: PowerLaw
265    Prefactor:  1.442e+01  2.952e+01  1.000e-04  1.000e+04 ( 1.000e-13)
266        Index:  3.030e+00  1.129e+00  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  9.153e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.948e-01  2.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  8.439e-01  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
Ra Dec: 60.899 -24.617

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/184667/cmap_HighResolution_563328001_563587201_4FGL_J0403.5-2437_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-08-20 00:55:55.766865', job_id='184667', GAL2='0.79', fit_tolerance='1e-08', EG2='0.84', EG='0.87', time_epoch_completed='1629446155.77', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.61e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1250' AND source_name='4FGL J0403.5-2437' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 184667: <4FGL_J0403.5-2437_daily_bin1250> in cluster <slac> Done

Job <4FGL_J0403.5-2437_daily_bin1250> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 00:40:21 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:40:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 00:40:23 2021
Terminated at Fri Aug 20 00:55:58 2021
Results reported at Fri Aug 20 00:55:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.5-2437_daily_bin1250 60.8989 -24.6168 563328001 563587201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0403.5-2437 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   864.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

