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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin843
RA = 66.1945, Dec = 0.6028
tmin = 457833601, tmax = 458092801
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='415110', job_status='RUN', time_executed='2021-08-20 13:48:08.907425', time_epoch_executed='1629492488.91' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='843'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415110

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415110/ft1_4FGL_J0424.7+0036_daily_bin843.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415110/ft2_4FGL_J0424.7+0036_daily_bin843.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415110/ft1_4FGL_J0424.7+0036_daily_bin843.fits outfile=/scratch/kocevski/415110/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin843.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=457833601.0 tmax=458092801.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 3.95
user 3.47
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415110/ft1_filtered_4FGL_J0424.7+0036_daily_bin843.fits" evtable="EVENTS" scfile=/scratch/kocevski/415110/ft2_4FGL_J0424.7+0036_daily_bin843.fits sctable="SC_DATA" outfile=/scratch/kocevski/415110/ltcube_457833601_458092801_4FGL_J0424.7+0036_daily_bin843.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/415110/ft2_4FGL_J0424.7+0036_daily_bin843.fits
.....................!
real 12.10
user 11.48
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415110/ft1_filtered_4FGL_J0424.7+0036_daily_bin843.fits evtable="EVENTS" scfile=/scratch/kocevski/415110/ft2_4FGL_J0424.7+0036_daily_bin843.fits sctable="SC_DATA" expcube=/scratch/kocevski/415110/ltcube_457833601_458092801_4FGL_J0424.7+0036_daily_bin843.fits outfile=/scratch/kocevski/415110/expmap_457833601_458092801_4FGL_J0424.7+0036_daily_bin843.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/415110/ltcube_457833601_458092801_4FGL_J0424.7+0036_daily_bin843.fits
.....................!
real 192.40
user 186.73
sys 5.35

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/415110/ft1_filtered_4FGL_J0424.7+0036_daily_bin843.fits scfile=/scratch/kocevski/415110/ft2_4FGL_J0424.7+0036_daily_bin843.fits outfile=/scratch/kocevski/415110/cmap_457833601_458092801_4FGL_J0424.7+0036_daily_bin843.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 0.78
user 0.38
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415110/ft1_filtered_4FGL_J0424.7+0036_daily_bin843.fits scfile=/scratch/kocevski/415110/ft2_4FGL_J0424.7+0036_daily_bin843.fits outfile=/scratch/kocevski/415110/cmap_HighResolution_457833601_458092801_4FGL_J0424.7+0036_daily_bin843.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 0.80
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415110/ft1_filtered_4FGL_J0424.7+0036_daily_bin843.fits evtable="EVENTS" scfile=/scratch/kocevski/415110/ft2_4FGL_J0424.7+0036_daily_bin843.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415110/Model_4FGL_J0424.7+0036_daily_bin843.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/415110/ft1_filtered_4FGL_J0424.7+0036_daily_bin843.fits.....................!
real 107.60
user 105.76
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3845       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .75619       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8147       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.943       1.0000         .10000E-03   10000.    
     8 'norm      '    7.7877       1.0000         .10000E-03   10000.    
     9 'norm      '    25.935       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4847       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7642       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5347       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9351       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.530       1.0000         .10000E-03   10000.    
    22 'norm      '    3.2487       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71163       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98390       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=   7441.900     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     3761 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3845        2.7410        .39618E-07    .82041E-05
   2  Prefactor     .10000E-03    13.964       -.92560E-06** at limit **
   3  Prefactor     .72366        7.9839        .14349E-06   -.18049E-04
   4  norm          .10000E-03    9.1803        .89616E-06** at limit **
   5  Prefactor     .10000E-03    8.7259       -.59647E-06** at limit **
   6  norm          2.8147        3.5471        .36574E-06    .31967E-03
   7  Prefactor     49.943        29.720        .12849E-06    .40067E-05
   8  norm          7.7879        9.7128        .21675E-05   -.22799E-03
   9  norm          25.932        28.007       -.23451E-06   -.72689E-04
  10  norm          1.2877        1.0968        .12891E-07   -.96792E-04
  11  Prefactor     2.4847        1.7154        .71120E-09    .43587E-05
  12  Prefactor     19.800        28.542       -.79408E-06   -.11845E-03
  13  Prefactor     .10000E-03    29.538       -.53186E-06** at limit **
  14  Prefactor     .10000E-03    4.0508       -.31294E-07** at limit **
  15  norm          2.7650        3.0062        .23692E-06   -.21509E-04
  16  Prefactor     .10000E-03    29.609       -.55072E-06** at limit **
  17  norm          1.5346        2.3097        .32740E-06   -.84015E-04
  18  Prefactor     .10000E-03    4.4626        .23450E-07** at limit **
  19  Prefactor     .10000E-03    21.001        .12786E-05** at limit **
  20  norm          1.9351        2.0374        .17938E-06   -.85960E-04
  21  Prefactor     37.530        31.062        .20139E-06   -.99049E-05
  22  norm          3.2486        .93493        .97316E-08   -.58140E-04
  23  Prefactor     .10000E-03    19.047        .30934E-06** at limit **
  24  Normalizat    .71157        .24159       -.14735E-05   -.14403E-04
  25  Prefactor     .98395        .89925E-01    .38897E-07   -.57360E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.38446
  Prefactor  = 0.0001
  Prefactor  = 0.723663
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81475
  Prefactor  = 49.9431
  norm       = 7.7879
  norm       = 25.9324
  norm       = 1.28765
  Prefactor  = 2.48474
  Prefactor  = 19.8004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76504
  Prefactor  = 0.0001
  norm       = 1.53461
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.9351
  Prefactor  = 37.5299
  norm       = 3.2486
  Prefactor  = 0.0001
  Normalizat = 0.711569
  Prefactor  = 0.98395
 **********
 **   18 **HESSE 
 **********

 FCN=   7441.900     FROM HESSE     STATUS=OK           435 CALLS     4196 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3845        2.7415        .73644E-04   -1.5095    
   2  Prefactor     .10000E-03    14.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72366        29.896        .46470E-02   -1.5538    
   4  norm          .10000E-03    9.3912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8147        3.5717        .17702E-03   -1.5372    
   7  Prefactor     49.943        29.653        .56746E-04   -1.4293    
   8  norm          7.7879        9.8926        .71845E-03   -1.5150    
   9  norm          25.932        27.965        .78661E-04   -1.4689    
  10  norm          1.2877        1.0776        .77192E-04   -1.5481    
  11  Prefactor     2.4847        1.7082        .86737E-04   -1.5393    
  12  Prefactor     19.800        28.511        .89996E-04   -1.4818    
  13  Prefactor     .10000E-03    29.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0664        .16951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7650        2.9678        .13150E-03   -1.5375    
  16  Prefactor     .10000E-03    29.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5346        2.2882        .15081E-03   -1.5460    
  18  Prefactor     .10000E-03    4.5295        .17784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9351        2.0239        .12032E-03   -1.5430    
  21  Prefactor     37.530        31.208        .65422E-04   -1.4482    
  22  norm          3.2486        .93923        .41262E-04   -1.5347    
  23  Prefactor     .10000E-03    19.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71157        .25993        .44979E-03   -1.0344    
  25  Prefactor     .98395        .99151E-01    .15791E-03   -.93266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70585e-08
Minuit parameter uncertainties:
  1  2.7415
  2  0.000162393
  3  9.30699
  4  0.000126316
  5  8.11827e-05
  6  3.57195
  7  29.6621
  8  9.89472
  9  27.9793
  10  1.07765
  11  1.70828
  12  28.5301
  13  0.000119185
  14  6.3126e-06
  15  2.96795
  16  0.000138295
  17  2.28833
  18  4.18801e-06
  19  0.000275082
  20  2.02394
  21  31.2212
  22  0.939236
  23  5.99766e-05
  24  0.26038
  25  0.0991694
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.485e+00  1.708e+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:  9.840e-01  9.917e-02  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:  7.116e-01  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.15
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.88e-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) = 7441.85639641
delta logL = 0.0437047582182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7441.85062705
delta logL = 0.0494741151406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6300       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9906       1.0000          .0000       10.000    
     3 'Normalizat'    .72768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98128       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7441.851     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6301        1.8375        .94013E-04   -.14737E-02
   2  Index         1.9905        .70307        .10692E-01   -.13052E-03
   3  Normalizat    .72770        .24137        .44532E-03    .27360E-03
   4  Prefactor     .98127        .97378E-01    .15814E-03    .90329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63012
  Index      = 1.99055
  Normalizat = 0.727696
  Prefactor  = 0.981268
 **********
 **   18 **HESSE 
 **********

 FCN=   7441.851     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6301        1.8309        .37605E-05   -1.5384    
   2  Index         1.9905        .69945        .42769E-03   -.64587    
   3  Normalizat    .72770        .24113        .17813E-04   -1.0281    
   4  Prefactor     .98127        .97379E-01    .31628E-04   -.93357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25679e-09
Minuit parameter uncertainties:
  1  1.8309
  2  0.703075
  3  0.241482
  4  0.0973966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415110': 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) = 7441.85062704
delta logL = 0.0494741291232

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.630e+00  1.831e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.991e+00  7.031e-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:  9.813e-01  9.740e-02  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:  7.277e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.25
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.99 +/- 0.70
Photon Flux (Free Index): 4.55e-08 +/- 5.80e-08
Energy Flux (Free Index): 3.22e-05 +/- 3.14e-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/415110/cmap_HighResolution_457833601_458092801_4FGL_J0424.7+0036_daily_bin843.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='3.22e-05', photon_flux_error='4.30e-08', dlogl='4.95e-02', energy_flux='2.74e-05', photon_flux2='4.55e-08', job_status='DONE', time_completed='2021-08-20 14:00:19.843126', photon_index_error2='0.70', photon_index2='1.99', ts='8.15', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.14e-05', EG='0.71', time_epoch_completed='1629493219.84', return_code='0', job_id='415110', GAL2='0.98', EG2='0.73', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='5.80e-08', ts2='8.25', photon_index='2.21' WHERE bin_id='843' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:00:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 415110: <4FGL_J0424.7+0036_daily_bin843> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin843> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:45:30 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:45:31 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:45:31 2021
Terminated at Fri Aug 20 14:00:20 2021
Results reported at Fri Aug 20 14:00:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin843 66.1945 0.6028 457833601 458092801 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 :                                   734.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

