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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin236
RA = 220.561, Dec = 6.3755
tmin = 300499201, tmax = 300758401
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='712226', job_status='RUN', time_executed='2021-09-10 05:43:17.915935', time_epoch_executed='1631277797.92' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712226/ft1_4FGL_J1442.2+0622_daily_bin236.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712226/ft1_4FGL_J1442.2+0622_daily_bin236.fits outfile=/scratch/kocevski/712226/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin236.fits ra=220.561 dec=6.3755 rad=12.0 tmin=300499201.0 tmax=300758401.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.49
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.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/712226/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin236.fits evtable="EVENTS" outfile="/scratch/kocevski/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.fits" evtable="EVENTS" scfile=/scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits sctable="SC_DATA" outfile=/scratch/kocevski/712226/ltcube_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.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/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits
.....................!
real 11.71
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/712226/ltcube_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.fits outfile=/scratch/kocevski/712226/expmap_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.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/712226/ltcube_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.fits
.....................!
real 191.16
user 185.57
sys 5.06

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

Setting source of interest to:
4FGL J1442.2+0622 @ 220.561 6.3755

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.fits scfile=/scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits outfile=/scratch/kocevski/712226/cmap_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.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=220.561 yref=6.3755 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.fits scfile=/scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits outfile=/scratch/kocevski/712226/cmap_HighResolution_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.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=220.561 yref=6.3755 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/712226/Model_4FGL_J1442.2+0622_daily_bin236.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/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.fits.....................!
real 57.89
user 56.50
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.fits', '/scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits', expMap='/scratch/kocevski/712226/expmap_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.fits', expCube='/scratch/kocevski/712226/ltcube_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/712226/Model_4FGL_J1442.2+0622_daily_bin236.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1442.2+0622'

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  3.653e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.698e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
231         beta:  3.190e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
232           Eb:  1.225e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/712226/ft1_filtered_4FGL_J1442.2+0622_daily_bin236.fits
Spacecraft file(s): /scratch/kocevski/712226/ft2_4FGL_J1442.2+0622_daily_bin236.fits
Exposure map: /scratch/kocevski/712226/expmap_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.fits
Exposure cube: /scratch/kocevski/712226/ltcube_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/712226/Model_4FGL_J1442.2+0622_daily_bin236.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) = 7437.0461575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.923       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.212       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .53513E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34014E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.051       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22065E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9469       1.0000         .10000E-03   10000.    
    19 'norm      '    10.130       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0652       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1877       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7436.932     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2674 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.408        14.762        .13447E-05   -.16139E-03
   2  Prefactor     24.916        32.482        .47925E-05   -.14958E-03
   3  Prefactor     21.206        25.794        .32217E-06   -.21625E-04
   4  norm          .10000E-03    8.7771       -.42398E-07** at limit **
   5  Prefactor     .10000E-03    21.729       -.40828E-06** at limit **
   6  norm          .10000E-03    19.311        .54355E-07** at limit **
   7  Prefactor     .10000E-03    2.2030        .59906E-08** at limit **
   8  Prefactor     .10000E-03    3.2848        .74381E-07** at limit **
   9  Prefactor     15.097        32.495       -.52137E-06    .14141E-05
  10  Prefactor     .10000E-03    23.441        .45902E-06** at limit **
  11  norm          .10000E-03    12.041        .94588E-07** at limit **
  12  Prefactor     .10013E-03    16.924        .15979E-05** at limit **
  13  Prefactor     .10000E-03    69.891        .14542E-06** at limit **
  14  Prefactor     .10000E-03    10.537        .11766E-06** at limit **
  15  Prefactor     36.044        29.664       -.42628E-05    .82163E-04
  16  Prefactor     .10000E-03    31.561       -.27267E-07** at limit **
  17  norm          .22058E-01    .76536E-01   -.13266E-06   -.38698E-02
  18  norm          2.9468        2.5152       -.71102E-07   -.45558E-03
  19  norm          10.129        8.1505       -.13309E-06    .30145E-04
  20  norm          .10000E-03    2.5396        .23966E-08** at limit **
  21  Prefactor     .10000E-03    15.110        .22199E-07** at limit **
  22  Normalizat    1.0652        .22288       -.47137E-06   -.21397E-04
  23  Prefactor     1.1878        .13442        .17220E-06   -.55394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4084
  Prefactor  = 24.9156
  Prefactor  = 21.2063
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0971
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.0439
  Prefactor  = 0.0001
  norm       = 0.0220576
  norm       = 2.94684
  norm       = 10.1289
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06515
  Prefactor  = 1.18776
 **********
 **   18 **HESSE 
 **********

 FCN=   7436.932     FROM HESSE     STATUS=OK           384 CALLS     3058 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.408        14.677        .11370E-03   -1.5003    
   2  Prefactor     24.916        31.896        .80239E-04   -1.4709    
   3  Prefactor     21.206        25.813        .86966E-04   -1.4787    
   4  norm          .10000E-03    8.8913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2062        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6267        .30207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.097        32.497        .10309E-03   -1.4931    
  10  Prefactor     .10000E-03    23.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.655        .95422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10013E-03    19.416        .10889       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    71.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.044        29.835        .66746E-04   -1.4507    
  16  Prefactor     .10000E-03    31.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22058E-01    .10053        .44165E-03   -1.5678    
  18  norm          2.9468        2.5139        .11967E-03   -1.5365    
  19  norm          10.129        8.1278        .12590E-03   -1.5071    
  20  norm          .10000E-03    2.5779        .13411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0652        .26025        .32938E-03   -.90879    
  23  Prefactor     1.1878        .15858        .19436E-03   -.86709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20686e-10
Minuit parameter uncertainties:
  1  14.6813
  2  31.9179
  3  25.8266
  4  3.19941e-06
  5  1.65244e-05
  6  2.18126e-05
  7  2.68975e-07
  8  2.31626e-05
  9  32.5346
  10  2.35629e-05
  11  0.000290967
  12  0.00312808
  13  0.000193924
  14  4.40098e-05
  15  29.8471
  16  0.000120942
  17  0.0939681
  18  2.51403
  19  8.1287
  20  1.49293e-06
  21  1.35955e-06
  22  0.260563
  23  0.15864
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  2.910e-04  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.698e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
231         beta:  3.190e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
232           Eb:  1.225e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.188e+00  1.586e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.065e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 220.561 6.375
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712226/likelihoodResults_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.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): 102
logL (Free Index) = 7436.93239019
delta logL = -2.53080934272e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7436.93239019
delta logL = -2.53021307799e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96352E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6975       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1878       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7436.931     FROM MIGRAD    STATUS=CONVERGED    184 CALLS      354 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81611        794.22        .36285E-03    .48626E-04
   2  alpha         2.2545        2.6601        .13782        .10199E-04
   3  Normalizat    1.0655        .25347        .32934E-03    .16169E-03
   4  Prefactor     1.1871        .16107        .19440E-03   -.35003E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.816114
  alpha      = 2.25449
  Normalizat = 1.06548
  Prefactor  = 1.18714
 **********
 **   18 **HESSE 
 **********

 FCN=   7436.931     FROM HESSE     STATUS=OK            25 CALLS      379 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81611        75.783        .14514E-04   -1.5527    
   2  alpha         2.2545        3.5094        .55129E-02   -.98362E-01
   3  Normalizat    1.0655        .25196        .13174E-04   -.90868    
   4  Prefactor     1.1871        .15739        .38880E-04   -.86728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03053e-09
Minuit parameter uncertainties:
  1  15.7483
  2  4.75232
  3  0.252246
  4  0.157449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712226': 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) = 7436.93095942
delta logL = 0.00140547052251

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  8.161e-01  1.575e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.254e+00  4.752e+00  0.000e+00  5.000e+00 ( 1.000e+00)
231         beta:  3.190e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
232           Eb:  1.225e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.187e+00  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.065e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 220.561 6.375

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/712226/cmap_HighResolution_300499201_300758401_4FGL_J1442.2+0622_daily_bin236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-10 05:54:23.508064', job_id='712226', GAL2='1.19', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631278463.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.41e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='236' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:54:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 712226: <4FGL_J1442.2+0622_daily_bin236> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin236> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 05:41:12 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:41:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 05:41:13 2021
Terminated at Fri Sep 10 05:54:24 2021
Results reported at Fri Sep 10 05:54:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin236 220.561 6.3755 300499201 300758401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1442.2+0622 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

