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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin437
RA = 66.1945, Dec = 0.6028
tmin = 352598401, tmax = 352857601
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='412453', job_status='RUN', time_executed='2021-08-20 13:38:47.610167', time_epoch_executed='1629491927.61' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412453

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412453/ft1_4FGL_J0424.7+0036_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412453/ft2_4FGL_J0424.7+0036_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412453/ft1_4FGL_J0424.7+0036_daily_bin437.fits outfile=/scratch/kocevski/412453/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin437.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=352598401.0 tmax=352857601.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 4.54
user 3.90
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412453/ft2_4FGL_J0424.7+0036_daily_bin437.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/412453/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin437.fits evtable="EVENTS" outfile="/scratch/kocevski/412453/ft1_filtered_4FGL_J0424.7+0036_daily_bin437.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.92
user 0.33
sys 0.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412453/ft1_filtered_4FGL_J0424.7+0036_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/412453/ft2_4FGL_J0424.7+0036_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/412453/ltcube_352598401_352857601_4FGL_J0424.7+0036_daily_bin437.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/412453/ft2_4FGL_J0424.7+0036_daily_bin437.fits
.....................!
real 12.40
user 11.52
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412453/ft1_filtered_4FGL_J0424.7+0036_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/412453/ft2_4FGL_J0424.7+0036_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/412453/ltcube_352598401_352857601_4FGL_J0424.7+0036_daily_bin437.fits outfile=/scratch/kocevski/412453/expmap_352598401_352857601_4FGL_J0424.7+0036_daily_bin437.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/412453/ltcube_352598401_352857601_4FGL_J0424.7+0036_daily_bin437.fits
.....................!
real 191.17
user 185.55
sys 5.20

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/412453/ft1_filtered_4FGL_J0424.7+0036_daily_bin437.fits scfile=/scratch/kocevski/412453/ft2_4FGL_J0424.7+0036_daily_bin437.fits outfile=/scratch/kocevski/412453/cmap_352598401_352857601_4FGL_J0424.7+0036_daily_bin437.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.88
user 0.36
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412453/ft1_filtered_4FGL_J0424.7+0036_daily_bin437.fits scfile=/scratch/kocevski/412453/ft2_4FGL_J0424.7+0036_daily_bin437.fits outfile=/scratch/kocevski/412453/cmap_HighResolution_352598401_352857601_4FGL_J0424.7+0036_daily_bin437.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.08
user 0.37
sys 0.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412453/ft1_filtered_4FGL_J0424.7+0036_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/412453/ft2_4FGL_J0424.7+0036_daily_bin437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412453/Model_4FGL_J0424.7+0036_daily_bin437.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/412453/ft1_filtered_4FGL_J0424.7+0036_daily_bin437.fits.....................!
real 85.47
user 83.51
sys 1.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0906       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90646E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .18089E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.9506       1.0000         .10000E-03   10000.    
     9 'norm      '    34.293       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7408       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73800       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .73103E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1352       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30873       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.484       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3219       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12568E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.965       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .57195       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1406       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=   6027.418     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2979 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0897        2.8419        .20773E-06    .31248E-04
   2  Prefactor     .10003E-03    417.93       -.19370E-04** at limit **
   3  Prefactor     .10000E-03    4.5310       -.59440E-07** at limit **
   4  norm          .10000E-03    9.1201        .52629E-07** at limit **
   5  Prefactor     .10000E-03    55.300        .65157E-06** at limit **
   6  norm          .10001E-03    4.1926       -.21865E-06** at limit **
   7  Prefactor     .10000E-03    20.722        .32684E-06** at limit **
   8  norm          9.9467        9.2598        .50417E-06   -.30495E-05
   9  norm          34.309        34.123       -.12914E-05   -.79798E-04
  10  norm          1.7406        1.5825       -.84408E-07   -.33309E-03
  11  Prefactor     .73506        2.3369        .19323E-05    .19092E-03
  12  Prefactor     3.8608        29.869       -.20565E-05   -.71606E-04
  13  Prefactor     .10000E-03    32.874       -.50864E-06** at limit **
  14  Prefactor     .10000E-03    7.7366        .54570E-08** at limit **
  15  norm          .65139E-01    1.4425        .93357E-06   -.60170E-03
  16  Prefactor     .10000E-03    21.788       -.11882E-06** at limit **
  17  norm          6.1351        2.8023        .45011E-07   -.33412E-03
  18  Prefactor     .30518        8.0986       -.15849E-06    .60356E-03
  19  Prefactor     23.534        37.324       -.38509E-05    .88352E-05
  20  norm          1.3217        1.7733        .24397E-06   -.44789E-05
  21  Prefactor     .10000E-03    53.459        .81847E-05** at limit **
  22  norm          .10000E-03    .51125        .10413E-05** at limit **
  23  Prefactor     20.966        34.162        .11265E-05   -.12904E-04
  24  Normalizat    .57220        .28016       -.79454E-05   -.21272E-03
  25  Prefactor     1.1406        .10792       -.52490E-06   -.55899E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.08972
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 9.94672
  norm       = 34.3087
  norm       = 1.74058
  Prefactor  = 0.735056
  Prefactor  = 3.86085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0651391
  Prefactor  = 0.0001
  norm       = 6.13507
  Prefactor  = 0.305183
  Prefactor  = 23.5343
  norm       = 1.32168
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 20.9662
  Normalizat = 0.572204
  Prefactor  = 1.14062
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.418     FROM HESSE     STATUS=OK           435 CALLS     3414 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0897        2.8420        .85964E-04   -1.5214    
   2  Prefactor     .10003E-03    417.64        .41651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5347        .16139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.1235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    10.201        .29991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9467        9.2613        .12703E-03   -1.5077    
   9  norm          34.309        33.095        .68431E-04   -1.4536    
  10  norm          1.7406        1.4996        .81334E-04   -1.5444    
  11  Prefactor     .73506        2.2425        .17600E-03   -1.5537    
  12  Prefactor     3.8608        31.439        .20614E-03   -1.5315    
  13  Prefactor     .10000E-03    32.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .65139E-01    20.692        .16104E-02   -1.5657    
  16  Prefactor     .10000E-03    21.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1351        2.7963        .83740E-04   -1.5213    
  18  Prefactor     .30518        56.801        .39272E-02   -1.5597    
  19  Prefactor     23.534        37.675        .82658E-04   -1.4737    
  20  norm          1.3217        1.7410        .11369E-03   -1.5478    
  21  Prefactor     .10000E-03    53.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2052        .10214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.966        34.029        .87478E-04   -1.4792    
  24  Normalizat    .57220        .29000        .50320E-03   -1.0918    
  25  Prefactor     1.1406        .11300        .15202E-03   -.88179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69358e-08
Minuit parameter uncertainties:
  1  2.84202
  2  0.00663314
  3  1.36146e-05
  4  2.34379e-05
  5  0.000320702
  6  0.000588035
  7  0.000178218
  8  9.26265
  9  33.1129
  10  1.49967
  11  2.24274
  12  22.0502
  13  0.000225976
  14  4.76e-05
  15  2.32099
  16  1.08288e-05
  17  2.7964
  18  8.33367
  19  37.7135
  20  1.7411
  21  0.000434095
  22  9.81927e-05
  23  34.0608
  24  0.290769
  25  0.113023
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  7.351e-01  2.243e+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.141e+00  1.130e-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:  5.722e-01  2.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/412453/likelihoodResults_352598401_352857601_4FGL_J0424.7+0036_daily_bin437.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) = 6026.92349983
delta logL = 0.494204264013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6026.92225709
delta logL = 0.495447002838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82154       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0890       1.0000          .0000       10.000    
     3 'Normalizat'    .57349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1413       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=   6026.922     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82290        1.1208        .12520E-02    .63844E-03
   2  Index         1.0888        .48627        .29892       -.12702E-03
   3  Normalizat    .57342        .25465        .11330        .13151E-04
   4  Prefactor     1.1413        .10643        .36194E-01   -.28709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.822896
  Index      = 1.08876
  Normalizat = 0.573423
  Prefactor  = 1.14132
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.922     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82290        1.6675        .50080E-04   -1.5527    
   2  Index         1.0888        .80064        .11882E-01   -.89827    
   3  Normalizat    .57342        .26565        .50249E-03   -1.0912    
   4  Prefactor     1.1413        .11150        .15197E-03   -.88157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28672e-10
Minuit parameter uncertainties:
  1  1.66755
  2  0.809725
  3  0.26624
  4  0.11152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412453': 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) = 6026.92225572
delta logL = 0.495448370572

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  8.229e-01  1.668e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.089e+00  8.097e-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.141e+00  1.115e-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:  5.734e-01  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.09 +/- 0.81
Photon Flux (Free Index): 7.09e-09 +/- 1.23e-08
Energy Flux (Free Index): 8.15e-05 +/- 1.44e-04

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/412453/cmap_HighResolution_352598401_352857601_4FGL_J0424.7+0036_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='8.15e-05', dlogl='4.95e-01', photon_flux2='7.09e-09', job_status='DONE', time_completed='2021-08-20 13:49:41.108222', photon_index_error2='0.81', photon_index2='1.09', ts='0.15', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.44e-04', EG='0.57', time_epoch_completed='1629492581.11', return_code='0', job_id='412453', GAL2='1.14', EG2='0.57', return_code2='0', photon_flux_error2='1.23e-08', ts2='1.14', photon_index='2.21' WHERE bin_id='437' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:49:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 412453: <4FGL_J0424.7+0036_daily_bin437> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin437> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:36:12 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:36:14 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:36:14 2021
Terminated at Fri Aug 20 13:49:41 2021
Results reported at Fri Aug 20 13:49:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin437 66.1945 0.6028 352598401 352857601 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

