/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 123 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 = 7428
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1442.2+0622_daily_bin111
RA = 220.561, Dec = 6.3755
tmin = 268099201, tmax = 268358401
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='711019', job_status='RUN', time_executed='2021-09-10 05:38:55.149777', time_epoch_executed='1631277535.15' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711019/ft1_4FGL_J1442.2+0622_daily_bin111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711019/ft2_4FGL_J1442.2+0622_daily_bin111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711019/ft1_4FGL_J1442.2+0622_daily_bin111.fits outfile=/scratch/kocevski/711019/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin111.fits ra=220.561 dec=6.3755 rad=12.0 tmin=268099201.0 tmax=268358401.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 1.46
user 1.28
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711019/ft1_filtered_4FGL_J1442.2+0622_daily_bin111.fits evtable="EVENTS" scfile=/scratch/kocevski/711019/ft2_4FGL_J1442.2+0622_daily_bin111.fits sctable="SC_DATA" expcube=/scratch/kocevski/711019/ltcube_268099201_268358401_4FGL_J1442.2+0622_daily_bin111.fits outfile=/scratch/kocevski/711019/expmap_268099201_268358401_4FGL_J1442.2+0622_daily_bin111.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/711019/ltcube_268099201_268358401_4FGL_J1442.2+0622_daily_bin111.fits
.....................!
real 192.32
user 186.76
sys 5.12

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/711019/ft1_filtered_4FGL_J1442.2+0622_daily_bin111.fits scfile=/scratch/kocevski/711019/ft2_4FGL_J1442.2+0622_daily_bin111.fits outfile=/scratch/kocevski/711019/cmap_268099201_268358401_4FGL_J1442.2+0622_daily_bin111.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.84
user 0.36
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711019/ft1_filtered_4FGL_J1442.2+0622_daily_bin111.fits scfile=/scratch/kocevski/711019/ft2_4FGL_J1442.2+0622_daily_bin111.fits outfile=/scratch/kocevski/711019/cmap_HighResolution_268099201_268358401_4FGL_J1442.2+0622_daily_bin111.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9392       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.246       1.0000         .10000E-03   10000.    
     6 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6931       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78850E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.323       1.0000         .10000E-03   10000.    
    11 'norm      '    .14522E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0059       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8703       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5827       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7125       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76551       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=   10330.94     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2570 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0642       -.85126E-08** at limit **
   2  Prefactor     .10000E-03    6.0866       -.19959E-07** at limit **
   3  Prefactor     5.9425        19.171       -.32017E-07   -.37629E-04
   4  norm          4.2967        9.9492        .52450E-05   -.52044E-03
   5  Prefactor     21.241        21.479        .16058E-06   -.11832E-04
   6  norm          .10000E-03    12.711        .93913E-06** at limit **
   7  Prefactor     3.7040        5.4725       -.63061E-06   -.53297E-03
   8  Prefactor     .74448E-02    3.3809       -.13748E-06    .27523E-03
   9  Prefactor     .10000E-03    11.162       -.37427E-06** at limit **
  10  Prefactor     26.268        22.455        .30244E-05    .51872E-03
  11  norm          .10001E-03    47.584        .33003E-05** at limit **
  12  Prefactor     .10000E-03    15.285       -.20039E-05** at limit **
  13  Prefactor     .10000E-03    6.8467        .16040E-06** at limit **
  14  Prefactor     .10000E-03    27.727       -.94195E-06** at limit **
  15  Prefactor     2.9918        42.986        .25293E-05    .50192E-04
  16  Prefactor     .10000E-03    13.510        .28082E-06** at limit **
  17  norm          1.8702        .24978        .54639E-08    .22855E-04
  18  norm          3.5818        2.0644        .87299E-07   -.16172E-03
  19  norm          .10000E-03    1.7237       -.34424E-07** at limit **
  20  norm          .10000E-03    1.4187        .23255E-07** at limit **
  21  Prefactor     .10000E-03    19.534        .20996E-05** at limit **
  22  Normalizat    1.7128        .19235       -.43157E-06   -.89559E-05
  23  Prefactor     .76541        .10951       -.26826E-06   -.62192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.9425
  norm       = 4.29667
  Prefactor  = 21.2406
  norm       = 0.0001
  Prefactor  = 3.70405
  Prefactor  = 0.00744476
  Prefactor  = 0.0001
  Prefactor  = 26.2679
  norm       = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.9918
  Prefactor  = 0.0001
  norm       = 1.87018
  norm       = 3.58176
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.71279
  Prefactor  = 0.765415
 **********
 **   18 **HESSE 
 **********

 FCN=   10330.94     FROM HESSE     STATUS=OK           376 CALLS     2946 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9425        19.160        .16477E-03   -1.5220    
   4  norm          4.2967        10.525        .97170E-03   -1.5293    
   5  Prefactor     21.241        21.572        .86896E-04   -1.4786    
   6  norm          .10000E-03    12.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7040        5.5713        .21016E-03   -1.5323    
   8  Prefactor     .74448E-02    3.9979        .57778E-01   -1.5691    
   9  Prefactor     .10000E-03    11.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.268        23.395        .78081E-04   -1.4682    
  11  norm          .10001E-03    47.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.8583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9918        43.342        .23411E-03   -1.5362    
  16  Prefactor     .10000E-03    13.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8702        .25054        .17764E-04   -1.5434    
  18  norm          3.5818        2.0410        .10418E-03   -1.5329    
  19  norm          .10000E-03    1.7261        .13032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1843        .23273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7128        .22936        .28386E-03   -.71962    
  23  Prefactor     .76541        .12949        .23599E-03   -1.0102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2849e-09
Minuit parameter uncertainties:
  1  1.12666e-06
  2  3.37632e-07
  3  19.1803
  4  10.5293
  5  21.5794
  6  0.000119757
  7  5.57203
  8  0.342741
  9  5.11803e-05
  10  23.4035
  11  0.00107577
  12  0.000316897
  13  8.07429e-06
  14  0.000238421
  15  22.7943
  16  2.68624e-05
  17  0.250538
  18  2.04102
  19  1.58073e-06
  20  2.52098e-06
  21  0.000349989
  22  0.229498
  23  0.12954
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  1.076e-03  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:  7.654e-01  1.295e-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.713e+00  2.295e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711019/likelihoodResults_268099201_268358401_4FGL_J1442.2+0622_daily_bin111.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) = 10330.9450758
delta logL = -9.94280635496e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10330.9449758
delta logL = 5.71546479478e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11420E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1081       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76542       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=   10330.94     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      284 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10371E-03    .81894        .54444E-01** at limit **
   2  alpha         3.7340        4.1008        .17123        .77550E-07
   3  Normalizat    1.7128        .25500E-02    .28386E-03    .26388E-03
   4  Prefactor     .76542        .15006E-02    .23599E-03    .26361E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000103708
  alpha      = 3.73404
  Normalizat = 1.71279
  Prefactor  = 0.765415
 **********
 **   18 **HESSE 
 **********

 FCN=   10330.94     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      317 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10371E-03    2.4246        .46056E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.7340        2.7759        .68491E-02    .51624    
   3  Normalizat    1.7128        .38301E-02    .56772E-04   -.71962    
   4  Prefactor     .76542        .22539E-02    .94398E-05   -1.0102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4927e-12
Minuit parameter uncertainties:
  1  0.00599676
  2  340.915
  3  0.00383012
  4  0.00225387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711019': 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): 102
logL (Free Index) = 10330.9449752
delta logL = 1.22751953313e-06

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.037e-04  5.997e-03  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  3.734e+00  3.409e+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:  7.654e-01  2.254e-03  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.713e+00  3.830e-03  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/711019/cmap_HighResolution_268099201_268358401_4FGL_J1442.2+0622_daily_bin111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-10 05:52:12.472963', job_id='711019', GAL2='0.77', fit_tolerance='1e-08', EG2='1.71', EG='1.71', time_epoch_completed='1631278332.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.23e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='111' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:52:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 711019: <4FGL_J1442.2+0622_daily_bin111> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin111> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 05:36:42 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:36:44 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:36:44 2021
Terminated at Fri Sep 10 05:52:13 2021
Results reported at Fri Sep 10 05:52:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin111 220.561 6.3755 268099201 268358401 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 :                                   797.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

