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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin617
RA = 66.1945, Dec = 0.6028
tmin = 399254401, tmax = 399513601
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='413732', job_status='RUN', time_executed='2021-08-20 13:44:48.088576', time_epoch_executed='1629492288.09' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413732/ft1_4FGL_J0424.7+0036_daily_bin617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413732/ft1_4FGL_J0424.7+0036_daily_bin617.fits outfile=/scratch/kocevski/413732/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin617.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=399254401.0 tmax=399513601.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 6.47
user 5.01
sys 1.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.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/413732/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin617.fits evtable="EVENTS" outfile="/scratch/kocevski/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.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.61
user 0.34
sys 1.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.fits" evtable="EVENTS" scfile=/scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits sctable="SC_DATA" outfile=/scratch/kocevski/413732/ltcube_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.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/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits
.....................!
real 13.04
user 11.41
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.fits evtable="EVENTS" scfile=/scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits sctable="SC_DATA" expcube=/scratch/kocevski/413732/ltcube_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.fits outfile=/scratch/kocevski/413732/expmap_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.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/413732/ltcube_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.fits
.....................!
real 191.55
user 185.69
sys 5.53

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/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.fits scfile=/scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits outfile=/scratch/kocevski/413732/cmap_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.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.64
user 0.38
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.fits scfile=/scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits outfile=/scratch/kocevski/413732/cmap_HighResolution_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.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.66
user 0.39
sys 1.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.fits evtable="EVENTS" scfile=/scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413732/Model_4FGL_J0424.7+0036_daily_bin617.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/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.fits.....................!
real 99.20
user 96.35
sys 2.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.fits', '/scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits', expMap='/scratch/kocevski/413732/expmap_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.fits', expCube='/scratch/kocevski/413732/ltcube_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413732/Model_4FGL_J0424.7+0036_daily_bin617.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/413732/ft1_filtered_4FGL_J0424.7+0036_daily_bin617.fits
Spacecraft file(s): /scratch/kocevski/413732/ft2_4FGL_J0424.7+0036_daily_bin617.fits
Exposure map: /scratch/kocevski/413732/expmap_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.fits
Exposure cube: /scratch/kocevski/413732/ltcube_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413732/Model_4FGL_J0424.7+0036_daily_bin617.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) = 6481.69649208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.273       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2947       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8202       1.0000         .10000E-03   10000.    
     9 'norm      '    10.437       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2780       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.198       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.101       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3204       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9288       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.281       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .27836       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1333       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=   6481.655     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2923 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7814        1.9708       -.24248E-07   -.22236E-03
   2  Prefactor     .10000E-03    32.795        .15634E-05** at limit **
   3  Prefactor     .10000E-03    8.2526        .10763E-05** at limit **
   4  norm          .10000E-03    8.5463       -.70736E-06** at limit **
   5  Prefactor     36.286        31.314        .93583E-05   -.14163E-03
   6  norm          2.2955        4.8710       -.28510E-05   -.40596E-03
   7  Prefactor     .10000E-03    16.543       -.48587E-06** at limit **
   8  norm          3.8098        14.924        .55316E-06   -.57181E-04
   9  norm          10.426        34.005       -.17351E-04    .75234E-04
  10  norm          2.2781        1.4409        .19782E-06    .89255E-04
  11  Prefactor     1.4642        2.1493        .42910E-06   -.42095E-03
  12  Prefactor     .10000E-03    7.1622        .69940E-07** at limit **
  13  Prefactor     .10000E-03    63.953        .70712E-06** at limit **
  14  Prefactor     14.201        14.176       -.93581E-07    .40925E-04
  15  norm          5.0107        3.5636        .13785E-06   -.85523E-04
  16  Prefactor     .10000E-03    32.474        .72046E-06** at limit **
  17  norm          21.101        4.9674        .59420E-06   -.70668E-04
  18  Prefactor     5.6736        8.7945       -.21675E-06   -.10484E-03
  19  Prefactor     .10000E-03    20.146        .38233E-05** at limit **
  20  norm          2.3205        2.2692       -.30497E-06   -.12376E-03
  21  Prefactor     .10000E-03    23.738       -.52711E-05** at limit **
  22  norm          1.9288        .81549        .19155E-08    .25175E-03
  23  Prefactor     24.287        31.454        .45348E-05   -.43891E-04
  24  Normalizat    .27828        .44270       -.47350E-05   -.88039E-04
  25  Prefactor     1.1333        .14946        .98224E-06    .16542E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.2859
  norm       = 2.29547
  Prefactor  = 0.0001
  norm       = 3.80982
  norm       = 10.426
  norm       = 2.27814
  Prefactor  = 1.46418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2006
  norm       = 5.01066
  Prefactor  = 0.0001
  norm       = 21.101
  Prefactor  = 5.67357
  Prefactor  = 0.0001
  norm       = 2.3205
  Prefactor  = 0.0001
  norm       = 1.92883
  Prefactor  = 24.2871
  Normalizat = 0.278284
  Prefactor  = 1.13332
 **********
 **   18 **HESSE 
 **********

 FCN=   6481.655     FROM HESSE     STATUS=OK           431 CALLS     3354 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7814        1.9328        .11323E-03   -1.5441    
   2  Prefactor     .10000E-03    32.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.2673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.5457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.286        31.139        .66543E-04   -1.4502    
   6  norm          2.2955        4.8824        .24708E-03   -1.5405    
   7  Prefactor     .10000E-03    16.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8098        13.873        .20650E-03   -1.5318    
   9  norm          10.426        33.076        .12402E-03   -1.5062    
  10  norm          2.2781        1.4248        .69919E-04   -1.5406    
  11  Prefactor     1.4642        2.0824        .12543E-03   -1.5466    
  12  Prefactor     .10000E-03    7.1657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    64.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.201        13.720        .10630E-03   -1.4954    
  15  norm          5.0107        3.5399        .11866E-03   -1.5260    
  16  Prefactor     .10000E-03    32.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.101        4.7602        .76650E-04   -1.4789    
  18  Prefactor     5.6736        8.4523        .16862E-03   -1.5232    
  19  Prefactor     .10000E-03    20.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3205        2.2206        .11021E-03   -1.5403    
  21  Prefactor     .10000E-03    23.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9288        .80225        .44785E-04   -1.5430    
  23  Prefactor     24.287        31.155        .81292E-04   -1.4722    
  24  Normalizat    .27828        .30356        .73137E-03   -1.2416    
  25  Prefactor     1.1333        .11228        .15379E-03   -.88409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19484e-10
Minuit parameter uncertainties:
  1  1.93289
  2  4.39865e-05
  3  1.50709e-05
  4  1.89593e-05
  5  31.1526
  6  4.88325
  7  1.88302e-05
  8  13.8844
  9  33.1339
  10  1.42481
  11  2.0825
  12  1.61765e-05
  13  1.05337e-07
  14  13.7227
  15  3.54001
  16  2.26954e-05
  17  4.76031
  18  8.4541
  19  8.68399e-05
  20  2.22068
  21  0.000155771
  22  0.802259
  23  31.176
  24  0.305374
  25  0.112302
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.464e+00  2.082e+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.133e+00  1.123e-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:  2.783e-01  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413732/likelihoodResults_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.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) = 6481.49103869
delta logL = 0.163773756313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6481.48894043
delta logL = 0.165872018366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99784       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6502       1.0000          .0000       10.000    
     3 'Normalizat'    .26473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1354       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=   6481.489     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      246 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99964        22.820        .20129E-01    .96093E-03
   2  Index         2.6493        3.1887        .13513        .12445E-03
   3  Normalizat    .26458        .59483E-01    .17012        .79036E-04
   4  Prefactor     1.1354        .24621E-01    .36375E-01   -.18156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.999636
  Index      = 2.64926
  Normalizat = 0.264585
  Prefactor  = 1.13543
 **********
 **   18 **HESSE 
 **********

 FCN=   6481.489     FROM HESSE     STATUS=OK            35 CALLS      281 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99964        2.1850        .92142E-03   -1.5508    
   2  Index         2.6493        1.0555        .77841E-02   -.48946    
   3  Normalizat    .26458        .26551        .74829E-03   -1.2502    
   4  Prefactor     1.1354        .10891        .15361E-03   -.88342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91769e-12
Minuit parameter uncertainties:
  1  2.18519
  2  1.06583
  3  0.266783
  4  0.108928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413732': 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) = 6481.48893946
delta logL = 0.165872985856

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  9.996e-01  2.185e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.649e+00  1.066e+00  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.135e+00  1.089e-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:  2.646e-01  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.65 +/- 1.07
Photon Flux (Free Index): 5.71e-08 +/- 6.51e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.88e-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/413732/cmap_HighResolution_399254401_399513601_4FGL_J0424.7+0036_daily_bin617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='1.66e-01', photon_flux2='5.71e-08', job_status='DONE', time_completed='2021-08-20 13:56:16.335207', photon_index_error2='1.07', photon_index2='2.65', ts='0.74', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.88e-05', EG='0.28', time_epoch_completed='1629492976.34', return_code='0', job_id='413732', GAL2='1.14', EG2='0.26', return_code2='0', photon_flux_error2='6.51e-08', ts2='1.08', photon_index='2.21' WHERE bin_id='617' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 413732: <4FGL_J0424.7+0036_daily_bin617> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin617> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 13:40:40 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:40:40 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:40:40 2021
Terminated at Fri Aug 20 13:56:17 2021
Results reported at Fri Aug 20 13:56:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin617 66.1945 0.6028 399254401 399513601 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 :                                   705.57 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             257.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

