/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 173 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 = 7683
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0424.7+0036_daily_bin378
RA = 66.1945, Dec = 0.6028
tmin = 337305601, tmax = 337564801
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='412344', job_status='RUN', time_executed='2021-08-20 13:39:09.266618', time_epoch_executed='1629491949.27' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412344

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412344/ft1_4FGL_J0424.7+0036_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412344/ft1_4FGL_J0424.7+0036_daily_bin378.fits outfile=/scratch/kocevski/412344/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin378.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=337305601.0 tmax=337564801.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 8.17
user 7.23
sys 0.91

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.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/412344/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin378.fits evtable="EVENTS" outfile="/scratch/kocevski/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.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.15
user 0.31
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/412344/ltcube_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.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/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits
.....................!
real 12.45
user 11.33
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/412344/ltcube_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.fits outfile=/scratch/kocevski/412344/expmap_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.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/412344/ltcube_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.fits
.....................!
real 193.39
user 187.34
sys 5.65

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

Setting source of interest to:
4FGL J0424.7+0036 @ 66.1945 0.6028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.fits scfile=/scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits outfile=/scratch/kocevski/412344/cmap_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.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=66.1945 yref=0.6028 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 1.16
user 0.38
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.fits scfile=/scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits outfile=/scratch/kocevski/412344/cmap_HighResolution_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.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=66.1945 yref=0.6028 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 1.18
user 0.37
sys 0.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412344/Model_4FGL_J0424.7+0036_daily_bin378.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/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.fits.....................!
real 112.99
user 110.62
sys 2.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.fits', '/scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits', expMap='/scratch/kocevski/412344/expmap_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.fits', expCube='/scratch/kocevski/412344/ltcube_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412344/Model_4FGL_J0424.7+0036_daily_bin378.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0424.7+0036'

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/412344/ft1_filtered_4FGL_J0424.7+0036_daily_bin378.fits
Spacecraft file(s): /scratch/kocevski/412344/ft2_4FGL_J0424.7+0036_daily_bin378.fits
Exposure map: /scratch/kocevski/412344/expmap_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.fits
Exposure cube: /scratch/kocevski/412344/ltcube_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412344/Model_4FGL_J0424.7+0036_daily_bin378.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) = 7560.72793164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.162       1.0000         .10000E-03   10000.    
     6 'norm      '    .70969       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12906E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .67904       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8070       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26655       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.812       1.0000         .10000E-03   10000.    
    17 'norm      '    .25074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93008E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13626E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.294       1.0000         .10000E-03   10000.    
    22 'norm      '    8.2057       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99188       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7560.724     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2999 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5923        1.9814        .36346E-06    .74970E-06
   2  Prefactor     13.402        71.945        .38086E-06   -.63900E-04
   3  Prefactor     .10000E-03    12.381       -.19237E-05** at limit **
   4  norm          .10000E-03    11.096        .45548E-07** at limit **
   5  Prefactor     44.149        44.341       -.13181E-06   -.41066E-04
   6  norm          .71345        7.2459        .51894E-05   -.10280E-03
   7  Prefactor     .10000E-03    14.121        .12332E-06** at limit **
   8  norm          .10004E-03    5.1427        .11042E-05** at limit **
   9  norm          .10000E-03    25.372       -.52297E-07** at limit **
  10  norm          .68014        .98508       -.38190E-06   -.18416E-02
  11  Prefactor     2.8076        2.0309       -.38596E-07   -.11430E-03
  12  Prefactor     9.7049        21.727        .44686E-06    .96036E-05
  13  Prefactor     .10000E-03    21.738        .22790E-06** at limit **
  14  Prefactor     .98221E-01    6.1016        .46501E-06   -.51976E-04
  15  norm          .10000E-03    .89874        .13645E-06** at limit **
  16  Prefactor     28.811        32.262        .10353E-06    .40182E-05
  17  norm          .24278        1.2380        .45728E-07    .43552E-03
  18  Prefactor     .10048E-03    4.6532       -.19557E-06** at limit **
  19  Prefactor     .10000E-03    21.465       -.30348E-06** at limit **
  20  norm          .10000E-03    .84912        .25780E-06** at limit **
  21  Prefactor     39.260        49.072       -.31078E-06   -.45793E-04
  22  norm          8.2055        1.5366        .61772E-07   -.81613E-04
  23  Prefactor     .10000E-03    16.774        .49110E-07** at limit **
  24  Normalizat    .99292        .25923       -.49110E-05   -.16757E-03
  25  Prefactor     1.0070        .93770E-01    .39142E-06   -.51503E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59231
  Prefactor  = 13.4017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.1494
  norm       = 0.713455
  Prefactor  = 0.0001
  norm       = 0.000100037
  norm       = 0.0001
  norm       = 0.68014
  Prefactor  = 2.80756
  Prefactor  = 9.70486
  Prefactor  = 0.0001
  Prefactor  = 0.0982209
  norm       = 0.0001
  Prefactor  = 28.8106
  norm       = 0.242785
  Prefactor  = 0.000100475
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.2602
  norm       = 8.20553
  Prefactor  = 0.0001
  Normalizat = 0.992916
  Prefactor  = 1.00704
 **********
 **   18 **HESSE 
 **********

 FCN=   7560.724     FROM HESSE     STATUS=OK           445 CALLS     3444 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5923        1.9681        .13077E-03   -1.5456    
   2  Prefactor     13.402        72.480        .10906E-03   -1.4976    
   3  Prefactor     .10000E-03    12.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.149        44.123        .60329E-04   -1.4378    
   6  norm          .71345        7.2216        .43467E-03   -1.5539    
   7  Prefactor     .10000E-03    14.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10004E-03    28.818        .36929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .68014        .83853        .98805E-03   -1.5543    
  11  Prefactor     2.8076        2.0109        .97216E-04   -1.5373    
  12  Prefactor     9.7049        21.662        .12856E-03   -1.5085    
  13  Prefactor     .10000E-03    21.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .98221E-01    12.879        .63528E-01   -1.5645    
  15  norm          .10000E-03    .90266        .80336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.811        32.288        .74639E-04   -1.4634    
  17  norm          .24278        5.7180        .17899E-02   -1.5609    
  18  Prefactor     .10048E-03    5.9590        .57193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.8092        .15457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.260        49.464        .63942E-04   -1.4454    
  22  norm          8.2055        1.5484        .39861E-04   -1.5135    
  23  Prefactor     .10000E-03    16.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99292        .29072        .42173E-03   -.93268    
  25  Prefactor     1.0070        .10577        .16679E-03   -.92495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35018e-09
Minuit parameter uncertainties:
  1  1.96818
  2  62.4504
  3  2.9595e-05
  4  3.63333e-06
  5  44.1556
  6  4.54011
  7  7.99662e-05
  8  0.00207719
  9  1.46715e-06
  10  0.838543
  11  2.01094
  12  21.6797
  13  8.38673e-05
  14  2.24874
  15  2.69412e-06
  16  32.3075
  17  2.35623
  18  0.00336529
  19  8.32993e-05
  20  9.63523e-05
  21  49.5158
  22  1.54843
  23  6.06861e-05
  24  0.291183
  25  0.105789
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.808e+00  2.011e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.007e+00  1.058e-01  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  9.929e-01  2.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.70
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 7.06e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 2.22e-05

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) = 7560.62009829
delta logL = 0.103602446853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7560.61468607
delta logL = 0.109014665864

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7560.615     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      236 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0731        75.655        .57841E-02    .19077E-03
   2  Index         1.9590        5.4933        .16507        .49540E-04
   3  Normalizat    1.0100        .26076        .94507E-01    .39000E-04
   4  Prefactor     1.0047        .56102E-01    .44255E-01   -.54986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07309
  Index      = 1.95903
  Normalizat = 1.01004
  Prefactor  = 1.00468
 **********
 **   18 **HESSE 
 **********

 FCN=   7560.615     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0731        2.2775        .10894E-03   -1.5357    
   2  Index         1.9590        .54471        .95523E-02   -.65378    
   3  Normalizat    1.0100        .25624        .41862E-03   -.92695    
   4  Prefactor     1.0047        .10183        .16700E-03   -.92574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46374e-11
Minuit parameter uncertainties:
  1  2.27753
  2  0.546433
  3  0.256549
  4  0.101849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412344': 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) = 7560.61468498
delta logL = 0.109015750299

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.073e+00  2.278e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.959e+00  5.464e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.005e+00  1.018e-01  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  1.010e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.91
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.96 +/- 0.55
Photon Flux (Free Index): 5.06e-08 +/- 5.50e-08
Energy Flux (Free Index): 3.88e-05 +/- 3.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/412344/cmap_HighResolution_337305601_337564801_4FGL_J0424.7+0036_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.06e-08', energy_flux2='3.88e-05', photon_flux_error='5.06e-08', dlogl='1.09e-01', energy_flux='3.10e-05', photon_flux2='5.06e-08', job_status='DONE', time_completed='2021-08-20 13:50:56.154225', photon_index_error2='0.55', photon_index2='1.96', ts='6.70', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.73e-05', EG='0.99', time_epoch_completed='1629492656.15', return_code='0', job_id='412344', GAL2='1.00', EG2='1.01', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='5.50e-08', ts2='6.91', photon_index='2.21' WHERE bin_id='378' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:50:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 412344: <4FGL_J0424.7+0036_daily_bin378> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin378> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:55 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:35:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:35:56 2021
Terminated at Fri Aug 20 13:50:56 2021
Results reported at Fri Aug 20 13:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin378 66.1945 0.6028 337305601 337564801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0424.7+0036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

