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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1532
RA = 65.0936, Dec = -37.7522
tmin = 636422401, tmax = 636681601
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='392956', job_status='RUN', time_executed='2021-08-20 12:37:43.791980', time_epoch_executed='1629488263.79' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392956/ft1_4FGL_J0420.3-3745_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392956/ft1_4FGL_J0420.3-3745_daily_bin1532.fits outfile=/scratch/kocevski/392956/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1532.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=636422401.0 tmax=636681601.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 10.05
user 3.39
sys 6.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.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/392956/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1532.fits evtable="EVENTS" outfile="/scratch/kocevski/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.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 6.65
user 0.33
sys 6.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.fits" evtable="EVENTS" scfile=/scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits sctable="SC_DATA" outfile=/scratch/kocevski/392956/ltcube_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.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/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits
.....................!
real 19.30
user 11.71
sys 7.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/392956/ltcube_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.fits outfile=/scratch/kocevski/392956/expmap_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.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/392956/ltcube_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.fits
.....................!
real 199.36
user 185.22
sys 13.68

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 177 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 J0420.3-3745 @ 65.0936 -37.7522

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.fits scfile=/scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits outfile=/scratch/kocevski/392956/cmap_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.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=65.0936 yref=-37.7522 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 6.82
user 0.35
sys 6.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.fits scfile=/scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits outfile=/scratch/kocevski/392956/cmap_HighResolution_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.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=65.0936 yref=-37.7522 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 6.52
user 0.38
sys 6.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392956/Model_4FGL_J0420.3-3745_daily_bin1532.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/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.fits.....................!
real 122.00
user 112.56
sys 9.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.fits', '/scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits', expMap='/scratch/kocevski/392956/expmap_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.fits', expCube='/scratch/kocevski/392956/ltcube_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/392956/Model_4FGL_J0420.3-3745_daily_bin1532.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0420.3-3745'

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  7.305e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.236e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/392956/ft1_filtered_4FGL_J0420.3-3745_daily_bin1532.fits
Spacecraft file(s): /scratch/kocevski/392956/ft2_4FGL_J0420.3-3745_daily_bin1532.fits
Exposure map: /scratch/kocevski/392956/expmap_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.fits
Exposure cube: /scratch/kocevski/392956/ltcube_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/392956/Model_4FGL_J0420.3-3745_daily_bin1532.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5284.82911651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13607E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    4.8515       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.650       1.0000         .10000E-03   10000.    
     6 'norm      '    6.9701       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22138E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2409       1.0000         .10000E-03   10000.    
     9 'norm      '    48.961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.392       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22964E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3633       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    94.303       1.0000         .10000E-03   10000.    
    16 'norm      '    .12644E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3560       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.539       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4749       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90698       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+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=   5281.002     FROM MIGRAD    STATUS=CONVERGED   1137 CALLS     2787 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.825        .13703    ** at limit **
   2  norm          4.8514        3.4890        .11129E-03    .34834E-04
   3  norm          3.0082        1.3389        .53398E-04    .45774E-04
   4  Prefactor     24.147        46.773        .81509E-04    .10461E-04
   5  Prefactor     33.650        26.644        .69080E-04   -.37194E-04
   6  norm          6.9701        2.4893        .66135E-04   -.19115E-03
   7  Prefactor     .10000E-03    1083.9        .18142E-02** at limit **
   8  norm          1.2411        .59749        .35215E-04   -.27861E-03
   9  norm          48.963        17.750        .57309E-04    .80183E-04
  10  Prefactor     57.943        57.770        .52709E-04   -.41412E-04
  11  Prefactor     16.393        30.994        .98924E-04    .28731E-04
  12  Prefactor     .10000E-03    148.60        .50265E-02** at limit **
  13  norm          5.3629        1.3806        .37087E-04    .49996E-03
  14  Prefactor     .10000E-03    11.620        .22469E-02** at limit **
  15  norm          94.304        23.138        .41387E-04   -.12696E-03
  16  norm          .10000E-03    96.903        .18142E-02** at limit **
  17  norm          .10000E-03    .59362        .54516E-03** at limit **
  18  Prefactor     3.3562        5.1502        .15826E-03   -.20875E-03
  19  Prefactor     20.540        32.862        .88378E-04   -.13070E-03
  20  norm          4.4754        4.7636        .15833E-03   -.32671E-04
  21  norm          .10000E-03    5.2976        .16269E-02** at limit **
  22  Prefactor     .10000E-03    21.708        .18142E-02** at limit **
  23  Prefactor     .10000E-03    7.4507        .36285E-03** at limit **
  24  Prefactor     .10000E-03    16.718        .18142E-02** at limit **
  25  Normalizat    .90658        .31658        .32775E-03   -.78462E-04
  26  Prefactor     1.0666        .29842        .31568E-03   -.63455E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 4.85143
  norm       = 3.00821
  Prefactor  = 24.1471
  Prefactor  = 33.6503
  norm       = 6.97011
  Prefactor  = 0.000100005
  norm       = 1.24107
  norm       = 48.963
  Prefactor  = 57.9435
  Prefactor  = 16.3928
  Prefactor  = 0.000100003
  norm       = 5.36287
  Prefactor  = 0.000100003
  norm       = 94.3039
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.35619
  Prefactor  = 20.5402
  norm       = 4.47541
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.906585
  Prefactor  = 1.06664
 **********
 **   18 **HESSE 
 **********

 FCN=   5281.002     FROM HESSE     STATUS=OK           440 CALLS     3227 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.081        .13651       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8514        3.4889        .44516E-05   -1.5267    
   3  norm          3.0082        1.3389        .21359E-05   -1.5361    
   4  Prefactor     24.147        46.762        .32604E-05   -1.4725    
   5  Prefactor     33.650        26.643        .27632E-05   -1.4547    
   6  norm          6.9701        2.4893        .26454E-05   -1.5180    
   7  Prefactor     .10000E-03    1084.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2411        .59748        .14086E-05   -1.5485    
   9  norm          48.963        17.750        .11462E-04   -1.4307    
  10  Prefactor     57.943        57.771        .10542E-04   -1.4184    
  11  Prefactor     16.393        30.955        .39570E-05   -1.4898    
  12  Prefactor     .10000E-03    152.39        .20106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3629        1.3780        .74175E-05   -1.5245    
  14  Prefactor     .10000E-03    11.651        .44938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          94.304        23.132        .82774E-05   -1.3763    
  16  norm          .10000E-03    96.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .59362        .10903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3562        5.1460        .63304E-05   -1.5342    
  19  Prefactor     20.540        32.828        .35351E-05   -1.4801    
  20  norm          4.4754        4.7635        .63331E-05   -1.5285    
  21  norm          .10000E-03    5.2979        .32537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.4510        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90658        .31681        .13110E-04   -.96229    
  26  Prefactor     1.0666        .29872        .12627E-04   -.90540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29692e-10
Minuit parameter uncertainties:
  1  0.00047171
  2  3.48908
  3  1.33892
  4  46.8335
  5  26.6527
  6  2.48931
  7  0.00462622
  8  0.597486
  9  17.7517
  10  57.8266
  11  30.9855
  12  0.00141033
  13  1.37797
  14  0.000391021
  15  23.1339
  16  9.67971e-07
  17  6.52592e-06
  18  5.14666
  19  32.8569
  20  4.76392
  21  3.65242e-06
  22  1.89703e-05
  23  2.11252e-05
  24  6.66244e-06
  25  0.317468
  26  0.299188
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.639e+01  3.099e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.236e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.067e+00  2.992e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.066e-01  3.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.39
Ra Dec: 65.094 -37.752
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392956/likelihoodResults_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.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) = 5280.54853151
delta logL = 0.453320059495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5280.53996705
delta logL = 0.461884522331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9465       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9563       1.0000          .0000       10.000    
     3 'Normalizat'    .85635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0963       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+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=   5280.540     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      313 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9439        21.686        .12706E-03   -.67377E-04
   2  Index         2.9564        1.0184        .54104E-02   -.43772E-04
   3  Normalizat    .85643        .28671        .33538E-03   -.24101E-03
   4  Prefactor     1.0962        .29342        .31144E-03   -.21160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.94386
  Index      = 2.95643
  Normalizat = 0.856435
  Prefactor  = 1.0962
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.540     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9439        16.920        .50822E-05   -1.5077    
   2  Index         2.9564        .79583        .21641E-03   -.42104    
   3  Normalizat    .85643        .28677        .13415E-04   -.98008    
   4  Prefactor     1.0962        .29324        .62288E-04   -.89588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92904e-10
Minuit parameter uncertainties:
  1  16.9276
  2  0.799922
  3  0.287283
  4  0.293675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392956': 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) = 5280.53996697
delta logL = 0.461884603626

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  9.944e+00  1.693e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.956e+00  7.999e-01  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.096e+00  2.937e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.564e-01  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 2.96 +/- 0.80
Photon Flux (Free Index): 1.04e-07 +/- 9.95e-08
Energy Flux (Free Index): 2.11e-05 +/- 2.02e-05

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/392956/cmap_HighResolution_636422401_636681601_4FGL_J0420.3-3745_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', energy_flux2='2.11e-05', dlogl='4.62e-01', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-08-20 12:51:08.111555', photon_index_error2='0.80', photon_index2='2.96', ts='0.39', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='2.02e-05', EG='0.91', time_epoch_completed='1629489068.11', return_code='0', job_id='392956', GAL2='1.10', EG2='0.86', return_code2='0', photon_flux_error2='9.95e-08', ts2='1.39', photon_index='2.24' WHERE bin_id='1532' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 392956: <4FGL_J0420.3-3745_daily_bin1532> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1532> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 12:35:51 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:35:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:35:52 2021
Terminated at Fri Aug 20 12:51:10 2021
Results reported at Fri Aug 20 12:51:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1532 65.0936 -37.7522 636422401 636681601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0420.3-3745 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   897.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

