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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1143
RA = 65.0936, Dec = -37.7522
tmin = 535593601, tmax = 535852801
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='391087', job_status='RUN', time_executed='2021-08-20 12:34:03.938048', time_epoch_executed='1629488043.94' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1143'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391087

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391087/ft1_4FGL_J0420.3-3745_daily_bin1143.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391087/ft1_4FGL_J0420.3-3745_daily_bin1143.fits outfile=/scratch/kocevski/391087/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1143.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=535593601.0 tmax=535852801.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 14.48
user 4.76
sys 9.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.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/391087/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1143.fits evtable="EVENTS" outfile="/scratch/kocevski/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.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.32
sys 9.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.fits" evtable="EVENTS" scfile=/scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits sctable="SC_DATA" outfile=/scratch/kocevski/391087/ltcube_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.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/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits
.....................!
real 22.44
user 11.68
sys 10.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits sctable="SC_DATA" expcube=/scratch/kocevski/391087/ltcube_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.fits outfile=/scratch/kocevski/391087/expmap_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.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/391087/ltcube_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.fits
.....................!
real 204.20
user 187.33
sys 16.37

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/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.fits scfile=/scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits outfile=/scratch/kocevski/391087/cmap_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.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 9.52
user 0.37
sys 9.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.fits scfile=/scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits outfile=/scratch/kocevski/391087/cmap_HighResolution_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.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 9.53
user 0.38
sys 9.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.fits evtable="EVENTS" scfile=/scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/391087/Model_4FGL_J0420.3-3745_daily_bin1143.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/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.fits......................!
real 100.32
user 86.76
sys 13.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.fits', '/scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits', expMap='/scratch/kocevski/391087/expmap_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.fits', expCube='/scratch/kocevski/391087/ltcube_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/391087/Model_4FGL_J0420.3-3745_daily_bin1143.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/391087/ft1_filtered_4FGL_J0420.3-3745_daily_bin1143.fits
Spacecraft file(s): /scratch/kocevski/391087/ft2_4FGL_J0420.3-3745_daily_bin1143.fits
Exposure map: /scratch/kocevski/391087/expmap_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.fits
Exposure cube: /scratch/kocevski/391087/ltcube_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/391087/Model_4FGL_J0420.3-3745_daily_bin1143.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) = 4064.55028702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.055       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.290       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .48480       1.0000         .10000E-03   10000.    
     9 'norm      '    9.3911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.604       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9486       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2978       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    37.928       1.0000         .10000E-03   10000.    
    16 'norm      '    33.439       1.0000         .10000E-03   10000.    
    17 'norm      '    8.2180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.319       1.0000         .10000E-03   10000.    
    20 'norm      '    3.7247       1.0000         .10000E-03   10000.    
    21 'norm      '    5.9425       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5797       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54071       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.

 FCN=   4064.544     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3498 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.040        39.317        .22144E-05    .56468E-04
   2  norm          .10000E-03    1.8050       -.79462E-07** at limit **
   3  norm          .10000E-03    .49962       -.11726E-06** at limit **
   4  Prefactor     38.279        61.409        .21852E-05    .25980E-04
   5  Prefactor     .10000E-03    22.886        .12154E-06** at limit **
   6  norm          2.8852        2.0787        .66308E-07   -.68140E-05
   7  Prefactor     .10000E-03    83.938        .35827E-07** at limit **
   8  norm          .48465        .48265        .19734E-07    .15811E-03
   9  norm          9.3877        11.690        .40638E-06   -.17868E-04
  10  Prefactor     .10000E-03    17.136        .10218E-07** at limit **
  11  Prefactor     10.603        14.845       -.71545E-06    .42966E-05
  12  Prefactor     1.9459        15.039        .11254E-04   -.56691E-04
  13  norm          1.2979        .75746       -.27776E-06    .45468E-05
  14  Prefactor     .10000E-03    1.6136       -.40165E-07** at limit **
  15  norm          37.922        19.163       -.10742E-06    .18135E-04
  16  norm          33.317        476.93        .25008E-04    .14444E-04
  17  norm          8.2175        3.2281        .37215E-08    .48283E-04
  18  Prefactor     .10000E-03    4.5792       -.28887E-06** at limit **
  19  Prefactor     13.320        20.379        .14819E-06    .17030E-04
  20  norm          3.7246        7.5656       -.27134E-07   -.56312E-04
  21  norm          5.9411        7.2213        .53706E-06    .10582E-03
  22  Prefactor     .10000E-03    28.610        .20962E-06** at limit **
  23  Prefactor     .10000E-03    2.7325        .73037E-07** at limit **
  24  Prefactor     .10000E-03    29.143       -.18280E-06** at limit **
  25  Normalizat    1.5802        .26152       -.20818E-05    .70959E-05
  26  Prefactor     .54024        .25886        .96252E-06    .20863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.0399
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.2787
  Prefactor  = 0.0001
  norm       = 2.8852
  Prefactor  = 0.0001
  norm       = 0.484651
  norm       = 9.38773
  Prefactor  = 0.0001
  Prefactor  = 10.6027
  Prefactor  = 1.94595
  norm       = 1.29786
  Prefactor  = 0.0001
  norm       = 37.9217
  norm       = 33.3172
  norm       = 8.21752
  Prefactor  = 0.0001
  Prefactor  = 13.3195
  norm       = 3.72456
  norm       = 5.94114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.58017
  Prefactor  = 0.540244
 **********
 **   18 **HESSE 
 **********

 FCN=   4064.544     FROM HESSE     STATUS=OK           458 CALLS     3956 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.040        39.384        .73083E-04   -1.4611    
   2  norm          .10000E-03    1.8131        .83642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .52013        .87943E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.279        61.423        .64772E-04   -1.4470    
   5  Prefactor     .10000E-03    22.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8852        2.0784        .75470E-04   -1.5368    
   7  Prefactor     .10000E-03    83.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .48465        .46418        .40295E-03   -1.5569    
   9  norm          9.3877        11.629        .65388E-03   -1.5095    
  10  Prefactor     .10000E-03    17.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.603        14.841        .12304E-03   -1.5057    
  12  Prefactor     1.9459        15.158        .14866E-02   -1.5429    
  13  norm          1.2979        .76430        .38652E-04   -1.5480    
  14  Prefactor     .10000E-03    1.6234        .78995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          37.922        19.154        .65080E-04   -1.4476    
  16  norm          33.317        480.23        .69296E-04   -1.4553    
  17  norm          8.2175        3.2218        .66218E-04   -1.5135    
  18  Prefactor     .10000E-03    4.7373        .26463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.320        20.329        .10975E-03   -1.4978    
  20  norm          3.7246        7.5590        .20923E-03   -1.5322    
  21  norm          5.9411        7.2020        .16473E-03   -1.5220    
  22  Prefactor     .10000E-03    28.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7370        .10292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5802        .30134        .23483E-03   -.75550    
  26  Prefactor     .54024        .29525        .38425E-03   -1.1016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36113e-10
Minuit parameter uncertainties:
  1  39.4181
  2  6.03137e-06
  3  4.45527e-06
  4  61.5251
  5  7.41308e-06
  6  2.07847
  7  2.44878e-05
  8  0.464187
  9  11.632
  10  7.31148e-06
  11  14.8461
  12  10.8658
  13  0.764307
  14  2.97476e-06
  15  19.1566
  16  255.494
  17  3.22191
  18  3.54576e-05
  19  20.34
  20  7.56096
  21  7.20304
  22  2.79981e-05
  23  6.80856e-06
  24  8.33726e-06
  25  0.301684
  26  0.296097
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.060e+01  1.485e+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:  5.402e-01  2.961e-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:  1.580e+00  3.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/391087/likelihoodResults_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.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) = 4064.12054151
delta logL = 0.423327664214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4064.10192481
delta logL = 0.441944365456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.619       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4970       1.0000          .0000       10.000    
     3 'Normalizat'    1.5976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52765       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=   4064.102     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      246 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.629        17.304        .10854E-03   -.15940E-03
   2  Index         1.4973        .69804        .96149E-02   -.22389E-04
   3  Normalizat    1.5975        .28628        .23379E-03   -.10998E-02
   4  Prefactor     .52778        .28986        .38818E-03   -.55627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.629
  Index      = 1.49725
  Normalizat = 1.59752
  Prefactor  = 0.527784
 **********
 **   18 **HESSE 
 **********

 FCN=   4064.102     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.629        17.540        .21708E-04   -1.4969    
   2  Index         1.4973        .70758        .38460E-03   -.77617    
   3  Normalizat    1.5975        .28643        .46758E-04   -.75074    
   4  Prefactor     .52778        .29002        .77636E-04   -1.1072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75763e-09
Minuit parameter uncertainties:
  1  17.5466
  2  0.712304
  3  0.286728
  4  0.290843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391087': 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) = 4064.10192435
delta logL = 0.441944824886

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.363e+01  1.755e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  1.497e+00  7.123e-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:  5.278e-01  2.908e-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:  1.598e+00  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 1.50 +/- 0.71
Photon Flux (Free Index): 1.26e-08 +/- 2.01e-08
Energy Flux (Free Index): 4.01e-05 +/- 7.09e-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/391087/cmap_HighResolution_535593601_535852801_4FGL_J0420.3-3745_daily_bin1143.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='4.01e-05', dlogl='4.42e-01', photon_flux2='1.26e-08', job_status='DONE', time_completed='2021-08-20 12:47:16.691460', photon_index_error2='0.71', photon_index2='1.50', ts='0.93', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='7.09e-05', EG='1.58', time_epoch_completed='1629488836.69', return_code='0', job_id='391087', GAL2='0.53', EG2='1.60', return_code2='0', photon_flux_error2='2.01e-08', ts2='1.83', photon_index='2.24' WHERE bin_id='1143' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:47:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 391087: <4FGL_J0420.3-3745_daily_bin1143> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1143> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 12:31:00 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:31:01 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:31:01 2021
Terminated at Fri Aug 20 12:47:19 2021
Results reported at Fri Aug 20 12:47:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1143 65.0936 -37.7522 535593601 535852801 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 :                                   928.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

