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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin597
RA = 220.561, Dec = 6.3755
tmin = 394070401, tmax = 394329601
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='713877', job_status='RUN', time_executed='2021-09-10 05:49:41.512823', time_epoch_executed='1631278181.51' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713877/ft1_4FGL_J1442.2+0622_daily_bin597.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713877/ft2_4FGL_J1442.2+0622_daily_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713877/ft1_4FGL_J1442.2+0622_daily_bin597.fits outfile=/scratch/kocevski/713877/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin597.fits ra=220.561 dec=6.3755 rad=12.0 tmin=394070401.0 tmax=394329601.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.45
user 4.20
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713877/ft1_filtered_4FGL_J1442.2+0622_daily_bin597.fits" evtable="EVENTS" scfile=/scratch/kocevski/713877/ft2_4FGL_J1442.2+0622_daily_bin597.fits sctable="SC_DATA" outfile=/scratch/kocevski/713877/ltcube_394070401_394329601_4FGL_J1442.2+0622_daily_bin597.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/713877/ft2_4FGL_J1442.2+0622_daily_bin597.fits
.....................!
real 11.83
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713877/ft1_filtered_4FGL_J1442.2+0622_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/713877/ft2_4FGL_J1442.2+0622_daily_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/713877/ltcube_394070401_394329601_4FGL_J1442.2+0622_daily_bin597.fits outfile=/scratch/kocevski/713877/expmap_394070401_394329601_4FGL_J1442.2+0622_daily_bin597.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/713877/ltcube_394070401_394329601_4FGL_J1442.2+0622_daily_bin597.fits
.....................!
real 190.93
user 185.33
sys 5.24

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/713877/ft1_filtered_4FGL_J1442.2+0622_daily_bin597.fits scfile=/scratch/kocevski/713877/ft2_4FGL_J1442.2+0622_daily_bin597.fits outfile=/scratch/kocevski/713877/cmap_394070401_394329601_4FGL_J1442.2+0622_daily_bin597.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713877/ft1_filtered_4FGL_J1442.2+0622_daily_bin597.fits scfile=/scratch/kocevski/713877/ft2_4FGL_J1442.2+0622_daily_bin597.fits outfile=/scratch/kocevski/713877/cmap_HighResolution_394070401_394329601_4FGL_J1442.2+0622_daily_bin597.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.925       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.697       1.0000         .10000E-03   10000.    
     4 'norm      '    6.0838       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.938       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19944E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7378       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.070       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.050       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0670       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15981E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32638E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .99527E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .14952E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7980       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8173       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0129       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=   8378.772     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2583 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8659       -.35566E-07** at limit **
   2  Prefactor     17.935        19.709        .90227E-07    .11734E-04
   3  Prefactor     24.691        23.701       -.40946E-06   -.92691E-04
   4  norm          6.0839        6.0673       -.25862E-06   -.12917E-03
   5  Prefactor     .10000E-03    63.009       -.79266E-06** at limit **
   6  norm          11.941        12.595        .63043E-08    .80269E-05
   7  Prefactor     .10000E-03    2.1288       -.19451E-07** at limit **
   8  Prefactor     .10000E-03    3.6618        .19706E-06** at limit **
   9  Prefactor     7.7298        43.097       -.30803E-05   -.77339E-04
  10  Prefactor     .10000E-03    18.141        .10529E-06** at limit **
  11  norm          16.076        17.687       -.88343E-06   -.58772E-04
  12  Prefactor     13.006        23.752       -.51197E-05   -.43465E-03
  13  Prefactor     3.0733        31.432        .13428E-04   -.24162E-03
  14  Prefactor     .10000E-03    37.532       -.26404E-05** at limit **
  15  Prefactor     .10001E-03    90.021       -.31829E-05** at limit **
  16  Prefactor     .10001E-03    54.222        .46468E-05** at limit **
  17  norm          .99530E-01    .91834E-01   -.32868E-07   -.12728E-02
  18  norm          .10000E-03    .74287        .22746E-08** at limit **
  19  norm          4.7979        4.6583        .52018E-06    .42700E-03
  20  norm          3.8161        3.6104        .12229E-06   -.93565E-04
  21  Prefactor     .10000E-03    13.545        .11270E-06** at limit **
  22  Normalizat    1.0512        .18408        .24679E-06   -.60463E-04
  23  Prefactor     1.0130        .11001       -.40822E-06    .41641E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.9353
  Prefactor  = 24.6908
  norm       = 6.08387
  Prefactor  = 0.000100001
  norm       = 11.9406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.72981
  Prefactor  = 0.0001
  norm       = 16.076
  Prefactor  = 13.0061
  Prefactor  = 3.07328
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100011
  norm       = 0.0995298
  norm       = 0.0001
  norm       = 4.79793
  norm       = 3.81607
  Prefactor  = 0.0001
  Normalizat = 1.05118
  Prefactor  = 1.01305
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.935        19.753        .94600E-04   -1.4861    
   3  Prefactor     24.691        23.759        .80605E-04   -1.4714    
   4  norm          6.0839        6.0761        .16278E-03   -1.5215    
   5  Prefactor     .10000E-03    64.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.941        12.594        .11594E-03   -1.5017    
   7  Prefactor     .10000E-03    2.1323        .13038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.734        .33615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7298        43.801        .14416E-03   -1.5152    
  10  Prefactor     .10000E-03    18.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.076        17.677        .99911E-04   -1.4906    
  12  Prefactor     13.006        25.225        .11088E-03   -1.4987    
  13  Prefactor     3.0733        35.663        .11581E-02   -1.5357    
  14  Prefactor     .10000E-03    38.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    92.379        .42708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    55.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .99530E-01    .87737E-01    .25733E-03   -1.5645    
  18  norm          .10000E-03    3.2612        .15015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7979        4.6768        .18367E-03   -1.5270    
  20  norm          3.8161        3.5854        .16083E-03   -1.5317    
  21  Prefactor     .10000E-03    13.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0512        .21879        .29645E-03   -.91335    
  23  Prefactor     1.0130        .13177        .18642E-03   -.92296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34789e-09
Minuit parameter uncertainties:
  1  7.29025e-06
  2  19.7599
  3  23.7682
  4  6.07676
  5  0.000389064
  6  12.5969
  7  4.0523e-07
  8  0.000144855
  9  36.8417
  10  3.17774e-05
  11  17.6823
  12  25.2452
  13  20.9537
  14  0.000180665
  15  0.00142166
  16  0.00154497
  17  0.0877374
  18  3.85416e-05
  19  4.67712
  20  3.58561
  21  8.86642e-06
  22  0.218978
  23  0.131814
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.608e+01  1.768e+01  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.013e+00  1.318e-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.051e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 220.561 6.375
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 9.65e-06 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/713877/likelihoodResults_394070401_394329601_4FGL_J1442.2+0622_daily_bin597.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): 0
logL (Free Index) = 8377.91484204
delta logL = 0.857017097096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8377.88357694
delta logL = 0.888282191243

Fit tolerance = 1e-08

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

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

 FCN=   8377.884     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      299 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3674        51.568        .48204E-02    .52750E-03
   2  alpha         4.0051        4.3513        .35488        .80010E-04
   3  Normalizat    .98531        .62086E-01    .68946E-01    .22436E-04
   4  Prefactor     1.0363        .35576E-01    .40790E-01    .98107E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.3674
  alpha      = 4.00508
  Normalizat = 0.985315
  Prefactor  = 1.03625
 **********
 **   18 **HESSE 
 **********

 FCN=   8377.884     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      332 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3674        90.939        .12145E-03   -1.5290    
   2  alpha         4.0051        4.4474        .14490E-01    .64604    
   3  Normalizat    .98531        .25981        .30500E-03   -.93524    
   4  Prefactor     1.0363        .15106        .18448E-03   -.91531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.56794e-07
Minuit parameter uncertainties:
  1  39.9271
  2  5.02033
  3  0.260142
  4  0.151118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713877': 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) = 8377.88357679
delta logL = 0.888282346848

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.036e+00  1.511e-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:  9.853e-01  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 220.561 6.375
Photon Index (Free Index): 4.01 +/- 5.02
Photon Flux (Free Index): 7.79e-08 +/- 8.99e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.28e-05

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/713877/cmap_HighResolution_394070401_394329601_4FGL_J1442.2+0622_daily_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='1.47e-05', photon_flux_error='2.93e-08', dlogl='8.88e-01', energy_flux='9.65e-06', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-10 06:01:18.886105', photon_index_error2='5.02', photon_index2='4.01', ts='1.10', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.07e-08', energy_flux_error2='1.28e-05', EG='1.05', time_epoch_completed='1631278878.89', return_code='0', job_id='713877', GAL2='1.04', EG2='0.99', return_code2='102', energy_flux_error='1.06e-05', photon_flux_error2='8.99e-08', ts2='2.97', photon_index='2.70' WHERE bin_id='597' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 06:01:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 713877: <4FGL_J1442.2+0622_daily_bin597> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin597> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 05:46:16 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:46:17 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:17 2021
Terminated at Fri Sep 10 06:01:19 2021
Results reported at Fri Sep 10 06:01:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin597 220.561 6.3755 394070401 394329601 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 :                                   697.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

