/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 126 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1442.2+0622_daily_bin668
RA = 220.561, Dec = 6.3755
tmin = 412473601, tmax = 412732801
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='713993', job_status='RUN', time_executed='2021-09-10 05:48:41.878145', time_epoch_executed='1631278121.88' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713993/ft1_4FGL_J1442.2+0622_daily_bin668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713993/ft2_4FGL_J1442.2+0622_daily_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713993/ft1_4FGL_J1442.2+0622_daily_bin668.fits outfile=/scratch/kocevski/713993/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin668.fits ra=220.561 dec=6.3755 rad=12.0 tmin=412473601.0 tmax=412732801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.66
user 3.23
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713993/ft1_filtered_4FGL_J1442.2+0622_daily_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/713993/ft2_4FGL_J1442.2+0622_daily_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/713993/ltcube_412473601_412732801_4FGL_J1442.2+0622_daily_bin668.fits outfile=/scratch/kocevski/713993/expmap_412473601_412732801_4FGL_J1442.2+0622_daily_bin668.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/713993/ltcube_412473601_412732801_4FGL_J1442.2+0622_daily_bin668.fits
.....................!
real 191.13
user 185.80
sys 4.93

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/713993/ft1_filtered_4FGL_J1442.2+0622_daily_bin668.fits scfile=/scratch/kocevski/713993/ft2_4FGL_J1442.2+0622_daily_bin668.fits outfile=/scratch/kocevski/713993/cmap_412473601_412732801_4FGL_J1442.2+0622_daily_bin668.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713993/ft1_filtered_4FGL_J1442.2+0622_daily_bin668.fits scfile=/scratch/kocevski/713993/ft2_4FGL_J1442.2+0622_daily_bin668.fits outfile=/scratch/kocevski/713993/cmap_HighResolution_412473601_412732801_4FGL_J1442.2+0622_daily_bin668.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.374       1.0000         .10000E-03   10000.    
     4 'norm      '    .11498E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    105.21       1.0000         .10000E-03   10000.    
     6 'norm      '    .17699E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12229E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32312E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10732E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.869       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.799       1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.105       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    23.568       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2232       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=   1558.508     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2610 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.136       -.99081E-06** at limit **
   2  Prefactor     .10000E-03    47.735       -.45838E-05** at limit **
   3  Prefactor     45.384        50.873       -.14709E-04   -.58214E-04
   4  norm          .10000E-03    141.93       -.57759E-05** at limit **
   5  Prefactor     105.28        96.893       -.48050E-06   -.21850E-04
   6  norm          .10000E-03    45.547        .50939E-05** at limit **
   7  Prefactor     .10000E-03    18.621        .13828E-06** at limit **
   8  Prefactor     9.5092        12.761        .54056E-06   -.12531E-03
   9  Prefactor     .10000E-03    143.61       -.21706E-04** at limit **
  10  Prefactor     .10012E-03    1942.4       -.83635E-04** at limit **
  11  norm          .10000E-03    185.44        .18824E-04** at limit **
  12  Prefactor     17.877        43.225       -.29262E-05    .41690E-04
  13  Prefactor     2.5232        154.88        .43199E-05   -.11769E-04
  14  Prefactor     2.1821        70.757       -.60951E-04   -.71316E-04
  15  Prefactor     22.808        48.516       -.50384E-05    .74573E-04
  16  Prefactor     59.120        70.693       -.68535E-05    .59048E-04
  17  norm          .10000E-03    .20859       -.19397E-06** at limit **
  18  norm          23.562        14.442       -.14747E-05   -.30048E-04
  19  norm          .10000E-03    5.2660       -.42193E-07** at limit **
  20  norm          .10000E-03    11.243       -.62913E-07** at limit **
  21  Prefactor     .10000E-03    141.10        .20891E-05** at limit **
  22  Normalizat    .10000E-01    .24655        .12011E-04** at limit **
  23  Prefactor     1.2227        .19712        .98836E-05   -.30931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3838
  norm       = 0.0001
  Prefactor  = 105.281
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.50917
  Prefactor  = 0.0001
  Prefactor  = 0.000100115
  norm       = 0.000100003
  Prefactor  = 17.8768
  Prefactor  = 2.52324
  Prefactor  = 2.18209
  Prefactor  = 22.8076
  Prefactor  = 59.1202
  norm       = 0.0001
  norm       = 23.5623
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.22272
 **********
 **   18 **HESSE 
 **********

 FCN=   1558.508     FROM HESSE     STATUS=OK           360 CALLS     2970 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.384        50.886        .59521E-04   -1.4360    
   4  norm          .10000E-03    141.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     105.28        96.950        .39205E-04   -1.3652    
   6  norm          .10000E-03    45.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.713        .16573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5092        12.692        .12989E-03   -1.5091    
   9  Prefactor     .10000E-03    143.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10012E-03    2030.6        .36734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    187.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.877        42.943        .94749E-04   -1.4862    
  13  Prefactor     2.5232        154.24        .25712E-03   -1.5390    
  14  Prefactor     2.1821        71.608        .28054E-03   -1.5413    
  15  Prefactor     22.808        48.234        .83888E-04   -1.4752    
  16  Prefactor     59.120        70.576        .52186E-04   -1.4169    
  17  norm          .10000E-03    .29440        .34420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.562        14.480        .82511E-04   -1.4737    
  19  norm          .10000E-03    5.2667        .88490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.253        .12926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    141.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .28318        .10439E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2227        .18517        .16405E-03   -.85635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01256e-09
Minuit parameter uncertainties:
  1  3.74983e-06
  2  5.24507e-06
  3  50.9343
  4  9.1699e-07
  5  97.0963
  6  4.1688e-05
  7  3.97029e-06
  8  12.6955
  9  4.74512e-05
  10  0.0317167
  11  0.00147142
  12  43.0178
  13  39.5618
  14  25.0324
  15  48.3163
  16  70.6761
  17  9.057e-06
  18  14.4823
  19  8.15129e-06
  20  4.24067e-06
  21  0.000360503
  22  2.01535e-05
  23  0.185265
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  1.471e-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:  1.223e+00  1.853e-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.000e-02  2.015e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/713993/likelihoodResults_412473601_412732801_4FGL_J1442.2+0622_daily_bin668.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) = 1558.50802283
delta logL = -3.25958214944e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1558.50799225
delta logL = -2.01599618777e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12682E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2306       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2227       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=   1558.508     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      291 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10696E-03    1678.9        .36285E-02** at limit **
   2  alpha         3.0578        3.8382        .50000        .92876E-06
   3  Normalizat    .10000E-01    .58724E-02    .10440E-01** at limit **
   4  Prefactor     1.2227        .19992E-01    .16405E-03   -.62889E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000106959
  alpha      = 3.05782
  Normalizat = 0.01
  Prefactor  = 1.22272
 **********
 **   18 **HESSE 
 **********

 FCN=   1558.508     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10696E-03    7909.9        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0578        3.1033        .50000        .22502    
   3  Normalizat    .10000E-01    .26458E-01    .20880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2227        .42417E-01    .65621E-05   -.85635    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.53304e-09
Minuit parameter uncertainties:
  1  0.45785
  2  3522.94
  3  1.52975e-07
  4  0.0424185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713993': 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) = 1558.50799027
delta logL = -3.57933913619e-08

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.070e-04  4.579e-01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  3.058e+00  3.523e+03  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.223e+00  4.242e-02  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.000e-02  1.530e-07  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/713993/cmap_HighResolution_412473601_412732801_4FGL_J1442.2+0622_daily_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-05', job_status='DONE', photon_flux_upper_limit='2.29e-07', time_completed='2021-09-10 05:54:58.433891', job_id='713993', GAL2='1.22', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631278498.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='-3.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='668' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:54:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 713993: <4FGL_J1442.2+0622_daily_bin668> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin668> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 05:46:25 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:46:27 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:46:27 2021
Terminated at Fri Sep 10 05:54:59 2021
Results reported at Fri Sep 10 05:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin668 220.561 6.3755 412473601 412732801 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 :                                   375.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            514 sec.

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

