/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 145 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1442.2+0622_daily_bin159
RA = 220.561, Dec = 6.3755
tmin = 280540801, tmax = 280800001
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='712116', job_status='RUN', time_executed='2021-09-10 05:43:41.157944', time_epoch_executed='1631277821.16' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712116

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712116/ft1_4FGL_J1442.2+0622_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712116/ft2_4FGL_J1442.2+0622_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712116/ft1_4FGL_J1442.2+0622_daily_bin159.fits outfile=/scratch/kocevski/712116/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin159.fits ra=220.561 dec=6.3755 rad=12.0 tmin=280540801.0 tmax=280800001.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.50
user 3.28
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712116/ft1_filtered_4FGL_J1442.2+0622_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/712116/ft2_4FGL_J1442.2+0622_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/712116/ltcube_280540801_280800001_4FGL_J1442.2+0622_daily_bin159.fits outfile=/scratch/kocevski/712116/expmap_280540801_280800001_4FGL_J1442.2+0622_daily_bin159.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/712116/ltcube_280540801_280800001_4FGL_J1442.2+0622_daily_bin159.fits
.....................!
real 190.92
user 185.72
sys 4.83

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/712116/ft1_filtered_4FGL_J1442.2+0622_daily_bin159.fits scfile=/scratch/kocevski/712116/ft2_4FGL_J1442.2+0622_daily_bin159.fits outfile=/scratch/kocevski/712116/cmap_280540801_280800001_4FGL_J1442.2+0622_daily_bin159.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712116/ft1_filtered_4FGL_J1442.2+0622_daily_bin159.fits scfile=/scratch/kocevski/712116/ft2_4FGL_J1442.2+0622_daily_bin159.fits outfile=/scratch/kocevski/712116/cmap_HighResolution_280540801_280800001_4FGL_J1442.2+0622_daily_bin159.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.657       1.0000         .10000E-03   10000.    
     4 'norm      '    10.403       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.973       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.338       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.941       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2456       1.0000         .10000E-03   10000.    
    18 'norm      '    .42877       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8097       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9807       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4077       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80341       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=   6208.732     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     3149 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.762        .44763E-05** at limit **
   2  Prefactor     .10000E-03    52.970       -.27743E-05** at limit **
   3  Prefactor     14.657        26.013        .50425E-06    .48716E-04
   4  norm          10.403        10.124       -.66233E-07    .21743E-04
   5  Prefactor     14.969        24.602       -.30777E-05    .49064E-06
   6  norm          .10000E-03    11.226        .29729E-05** at limit **
   7  Prefactor     .10000E-03    11.492       -.61984E-05** at limit **
   8  Prefactor     4.3727        6.8278        .21441E-05   -.10300E-03
   9  Prefactor     63.326        75.942       -.13321E-04    .19547E-04
  10  Prefactor     .10000E-03    18.338       -.78284E-05** at limit **
  11  norm          .10000E-03    16.884       -.21649E-05** at limit **
  12  Prefactor     .10000E-03    15.250        .49032E-05** at limit **
  13  Prefactor     32.419        25.714       -.11947E-05    .40631E-04
  14  Prefactor     34.939        20.520       -.83999E-06   -.12644E-04
  15  Prefactor     .10000E-03    16.573       -.63082E-06** at limit **
  16  Prefactor     .10000E-03    25.081        .61308E-05** at limit **
  17  norm          1.2455        .28515       -.68230E-08    .56021E-03
  18  norm          .42909        1.8842       -.82371E-06   -.52866E-03
  19  norm          .10000E-03    2.4623       -.26624E-07** at limit **
  20  norm          3.8096        3.0067        .59861E-07    .19366E-03
  21  Prefactor     7.9802        26.470       -.29966E-05   -.31817E-03
  22  Normalizat    1.4079        .24054        .16597E-05    .14509E-03
  23  Prefactor     .80330        .13602        .27484E-06    .26601E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6575
  norm       = 10.4028
  Prefactor  = 14.9693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37268
  Prefactor  = 63.3259
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4188
  Prefactor  = 34.9391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24554
  norm       = 0.42909
  norm       = 0.0001
  norm       = 3.8096
  Prefactor  = 7.9802
  Normalizat = 1.40788
  Prefactor  = 0.803302
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.732     FROM HESSE     STATUS=OK           368 CALLS     3517 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.657        26.068        .10462E-03   -1.4942    
   4  norm          10.403        10.126        .12423E-03   -1.5063    
   5  Prefactor     14.969        24.748        .10351E-03   -1.4934    
   6  norm          .10000E-03    11.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3727        6.7764        .19264E-03   -1.5290    
   9  Prefactor     63.326        75.812        .50422E-04   -1.4115    
  10  Prefactor     .10000E-03    18.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.419        25.735        .70373E-04   -1.4569    
  14  Prefactor     34.939        20.591        .67795E-04   -1.4525    
  15  Prefactor     .10000E-03    16.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2455        .28567        .18967E-04   -1.5485    
  18  norm          .42909        3.5395        .19987E-02   -1.5577    
  19  norm          .10000E-03    2.4633        .12075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.8096        3.0044        .11723E-03   -1.5318    
  21  Prefactor     7.9802        27.066        .70965E-03   -1.5143    
  22  Normalizat    1.4079        .28951        .28627E-03   -.80401    
  23  Prefactor     .80330        .16323        .22001E-03   -.99607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32992e-09
Minuit parameter uncertainties:
  1  3.30523e-05
  2  1.76115e-05
  3  26.0882
  4  10.1276
  5  24.765
  6  1.37723e-05
  7  9.26067e-05
  8  6.77759
  9  75.9277
  10  3.12758e-05
  11  4.16947e-05
  12  2.78898e-05
  13  25.7438
  14  20.595
  15  1.03174e-05
  16  6.46168e-06
  17  0.285672
  18  2.46468
  19  1.52915e-07
  20  3.00454
  21  27.1072
  22  0.289849
  23  0.163332
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  4.169e-05  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:  8.033e-01  1.633e-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.408e+00  2.898e-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: 7.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712116/likelihoodResults_280540801_280800001_4FGL_J1442.2+0622_daily_bin159.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) = 6208.7325188
delta logL = -0.000281179012745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6208.73224325
delta logL = -5.62738296139e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10641E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5903       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80330       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6208.732     FROM MIGRAD    STATUS=FAILED       107 CALLS      290 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1925.9        .36285E-02** at limit **
   2  alpha         2.2022        3.5880        .19081        .65599E-07
   3  Normalizat    1.4079        .68162E-01    .28627E-03    .39409E-02
   4  Prefactor     .80331        .41103E-01    .22001E-03    .50431E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6208.732     FROM SIMPLEX   STATUS=UNCHANGED    189 CALLS      479 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1925.9        .66598E-03** at limit **
   2  alpha         2.2022        3.5880        .87296E-07    .65599E-07
   3  Normalizat    1.4079        .68162E-01    .29954E-08    .39409E-02
   4  Prefactor     .80331        .41103E-01    .56614E-09    .50431E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6208.732     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      514 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.282        .72569E-03** at limit **
   2  alpha         2.1965        3.3870        .76324E-01    .26663E-07
   3  Normalizat    1.4079        .26708        .57255E-04    .20849E-04
   4  Prefactor     .80330        .16111        .44002E-04   -.47023E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.19653
  Normalizat = 1.40788
  Prefactor  = 0.803301
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.732     FROM HESSE     STATUS=OK            23 CALLS      537 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.667        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1965        3.0590        .30530E-02   -.12169    
   3  Normalizat    1.4079        .26715        .11451E-04   -.80401    
   4  Prefactor     .80330        .16115        .88003E-05   -.99607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9848e-11
Minuit parameter uncertainties:
  1  0.000244488
  2  609.279
  3  0.267414
  4  0.161243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712116': 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) = 6208.73223721
delta logL = 4.06928847951e-07

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  2.445e-04  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.197e+00  6.093e+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:  8.033e-01  1.612e-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.408e+00  2.674e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/712116/cmap_HighResolution_280540801_280800001_4FGL_J1442.2+0622_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-10 05:54:25.316525', job_id='712116', GAL2='0.80', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631278465.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='4.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='159' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:54:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 712116: <4FGL_J1442.2+0622_daily_bin159> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin159 220.561 6.3755 280540801 280800001 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 :                                   641.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            803 sec.

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

