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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin334
RA = 220.561, Dec = 6.3755
tmin = 325900801, tmax = 326160001
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='712366', job_status='RUN', time_executed='2021-09-10 05:43:25.701789', time_epoch_executed='1631277805.7' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712366/ft1_4FGL_J1442.2+0622_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712366/ft2_4FGL_J1442.2+0622_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712366/ft1_4FGL_J1442.2+0622_daily_bin334.fits outfile=/scratch/kocevski/712366/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin334.fits ra=220.561 dec=6.3755 rad=12.0 tmin=325900801.0 tmax=326160001.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.46
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712366/ft1_filtered_4FGL_J1442.2+0622_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/712366/ft2_4FGL_J1442.2+0622_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/712366/ltcube_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.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/712366/ft2_4FGL_J1442.2+0622_daily_bin334.fits
.....................!
real 11.60
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712366/ft1_filtered_4FGL_J1442.2+0622_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/712366/ft2_4FGL_J1442.2+0622_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/712366/ltcube_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.fits outfile=/scratch/kocevski/712366/expmap_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.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/712366/ltcube_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.fits
.....................!
real 190.27
user 185.47
sys 4.40

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/712366/ft1_filtered_4FGL_J1442.2+0622_daily_bin334.fits scfile=/scratch/kocevski/712366/ft2_4FGL_J1442.2+0622_daily_bin334.fits outfile=/scratch/kocevski/712366/cmap_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712366/ft1_filtered_4FGL_J1442.2+0622_daily_bin334.fits scfile=/scratch/kocevski/712366/ft2_4FGL_J1442.2+0622_daily_bin334.fits outfile=/scratch/kocevski/712366/cmap_HighResolution_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.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.52
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/712366/ft1_filtered_4FGL_J1442.2+0622_daily_bin334.fits', '/scratch/kocevski/712366/ft2_4FGL_J1442.2+0622_daily_bin334.fits', expMap='/scratch/kocevski/712366/expmap_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.fits', expCube='/scratch/kocevski/712366/ltcube_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/712366/Model_4FGL_J1442.2+0622_daily_bin334.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/712366/ft1_filtered_4FGL_J1442.2+0622_daily_bin334.fits
Spacecraft file(s): /scratch/kocevski/712366/ft2_4FGL_J1442.2+0622_daily_bin334.fits
Exposure map: /scratch/kocevski/712366/expmap_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.fits
Exposure cube: /scratch/kocevski/712366/ltcube_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/712366/Model_4FGL_J1442.2+0622_daily_bin334.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) = 7308.76245904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.250       1.0000         .10000E-03   10000.    
     6 'norm      '    14.887       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.677       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.439       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .91451       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5402       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1980       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2880       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97572       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=   7308.756     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2515 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.531       -.42409E-06** at limit **
   2  Prefactor     .10000E-03    17.141       -.15222E-05** at limit **
   3  Prefactor     .10001E-03    43.553       -.39926E-05** at limit **
   4  norm          .10000E-03    19.195       -.86723E-06** at limit **
   5  Prefactor     44.242        28.676       -.79753E-06   -.20420E-03
   6  norm          14.887        18.641        .22539E-06    .14796E-05
   7  Prefactor     .69300        6.1742        .48228E-06   -.13438E-03
   8  Prefactor     .10000E-03    13.352        .22906E-06** at limit **
   9  Prefactor     .10001E-03    28.133        .47582E-05** at limit **
  10  Prefactor     12.676        14.706        .52147E-07    .18406E-05
  11  norm          .10000E-03    4.8277       -.26221E-07** at limit **
  12  Prefactor     .10000E-03    8.7888       -.72417E-06** at limit **
  13  Prefactor     15.429        27.398       -.14696E-05   -.15190E-03
  14  Prefactor     .10000E-03    8.9519       -.53285E-06** at limit **
  15  Prefactor     .10000E-03    7.5927        .46140E-06** at limit **
  16  Prefactor     .10000E-03    11.035        .17595E-05** at limit **
  17  norm          .91446        .25674        .13254E-07   -.10509E-03
  18  norm          1.5397        2.6644       -.50359E-07   -.24923E-03
  19  norm          .10000E-03    3.8841        .29675E-07** at limit **
  20  norm          4.1982        3.8555        .23047E-05   -.96089E-03
  21  Prefactor     .10000E-03    13.996        .41838E-07** at limit **
  22  Normalizat    1.2883        .21972        .62265E-06   -.67871E-04
  23  Prefactor     .97559        .12716       -.94260E-06    .83162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 44.2417
  norm       = 14.8872
  Prefactor  = 0.693005
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 12.6755
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.914464
  norm       = 1.53975
  norm       = 0.0001
  norm       = 4.19823
  Prefactor  = 0.0001
  Normalizat = 1.28828
  Prefactor  = 0.975591
 **********
 **   18 **HESSE 
 **********

 FCN=   7308.756     FROM HESSE     STATUS=OK           366 CALLS     2881 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    45.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    19.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.242        28.908        .60269E-04   -1.4377    
   6  norm          14.887        18.640        .10381E-03   -1.4936    
   7  Prefactor     .69300        18.425        .40093E-02   -1.5541    
   8  Prefactor     .10000E-03    13.824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    29.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.676        14.706        .11250E-03   -1.4996    
  11  norm          .10000E-03    4.8289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.429        27.676        .10193E-03   -1.4922    
  14  Prefactor     .10000E-03    8.9985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .91446        .25624        .21542E-04   -1.5517    
  18  norm          1.5397        2.6339        .16977E-03   -1.5460    
  19  norm          .10000E-03    3.9038        .16453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1982        3.9433        .78509E-03   -1.5298    
  21  Prefactor     .10000E-03    14.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2883        .26033        .30782E-03   -.83917    
  23  Prefactor     .97559        .15082        .20762E-03   -.93548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44561e-08
Minuit parameter uncertainties:
  1  7.38548e-05
  2  0.000278297
  3  0.00104353
  4  0.000159353
  5  28.9172
  6  18.6468
  7  7.14863
  8  2.44706e-05
  9  0.00116483
  10  14.7105
  11  1.25672e-06
  12  9.93398e-05
  13  27.6989
  14  6.8275e-05
  15  5.61811e-05
  16  0.000266293
  17  0.256235
  18  2.63408
  19  2.16691e-06
  20  3.9435
  21  4.12077e-06
  22  0.26059
  23  0.150882
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  1.257e-06  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:  9.756e-01  1.509e-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.288e+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: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712366/likelihoodResults_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.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) = 7308.75677133
delta logL = -0.000980531887762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7308.75579065
delta logL = 1.47975697473e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6763       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97558       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7308.756     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      251 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.791        .98209E-01** at limit **
   2  alpha         .72714        4.1034        .16513        .24235E-07
   3  Normalizat    1.2883        .94561E-02    .30782E-03    .19852E-03
   4  Prefactor     .97559        .56758E-02    .20762E-03    .35842E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 0.727142
  Normalizat = 1.28828
  Prefactor  = 0.97559
 **********
 **   18 **HESSE 
 **********

 FCN=   7308.756     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.381        .48433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .72714        2.8004        .66051E-02   -.78828    
   3  Normalizat    1.2883        .24827        .12313E-04   -.83917    
   4  Prefactor     .97559        .14910        .41525E-04   -.93548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.092e-10
Minuit parameter uncertainties:
  1  0.000106425
  2  345.271
  3  0.248503
  4  0.149158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712366': 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) = 7308.75578317
delta logL = 7.62479885452e-06

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  1.064e-04  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  7.271e-01  3.453e+02  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:  9.756e-01  1.492e-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.288e+00  2.485e-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/712366/cmap_HighResolution_325900801_326160001_4FGL_J1442.2+0622_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-05', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-10 05:53:53.413701', job_id='712366', GAL2='0.98', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631278433.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='334' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:53:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 712366: <4FGL_J1442.2+0622_daily_bin334> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin334> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 05:41:20 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:41:21 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:21 2021
Terminated at Fri Sep 10 05:53:54 2021
Results reported at Fri Sep 10 05:53:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin334 220.561 6.3755 325900801 326160001 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 :                                   623.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

