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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin424
RA = 220.561, Dec = 6.3755
tmin = 349228801, tmax = 349488001
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='712493', job_status='RUN', time_executed='2021-09-10 05:44:53.229660', time_epoch_executed='1631277893.23' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712493

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712493/ft1_4FGL_J1442.2+0622_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712493/ft2_4FGL_J1442.2+0622_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712493/ft1_4FGL_J1442.2+0622_daily_bin424.fits outfile=/scratch/kocevski/712493/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin424.fits ra=220.561 dec=6.3755 rad=12.0 tmin=349228801.0 tmax=349488001.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.43
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712493/ft2_4FGL_J1442.2+0622_daily_bin424.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/712493/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/712493/ft1_filtered_4FGL_J1442.2+0622_daily_bin424.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/712493/ft1_filtered_4FGL_J1442.2+0622_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/712493/ft2_4FGL_J1442.2+0622_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/712493/ltcube_349228801_349488001_4FGL_J1442.2+0622_daily_bin424.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/712493/ft2_4FGL_J1442.2+0622_daily_bin424.fits
.....................!
real 11.77
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712493/ft1_filtered_4FGL_J1442.2+0622_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/712493/ft2_4FGL_J1442.2+0622_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/712493/ltcube_349228801_349488001_4FGL_J1442.2+0622_daily_bin424.fits outfile=/scratch/kocevski/712493/expmap_349228801_349488001_4FGL_J1442.2+0622_daily_bin424.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/712493/ltcube_349228801_349488001_4FGL_J1442.2+0622_daily_bin424.fits
.....................!
real 190.77
user 185.16
sys 5.22

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/712493/ft1_filtered_4FGL_J1442.2+0622_daily_bin424.fits scfile=/scratch/kocevski/712493/ft2_4FGL_J1442.2+0622_daily_bin424.fits outfile=/scratch/kocevski/712493/cmap_349228801_349488001_4FGL_J1442.2+0622_daily_bin424.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 1.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712493/ft1_filtered_4FGL_J1442.2+0622_daily_bin424.fits scfile=/scratch/kocevski/712493/ft2_4FGL_J1442.2+0622_daily_bin424.fits outfile=/scratch/kocevski/712493/cmap_HighResolution_349228801_349488001_4FGL_J1442.2+0622_daily_bin424.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/712493/ft1_filtered_4FGL_J1442.2+0622_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/712493/ft2_4FGL_J1442.2+0622_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/712493/Model_4FGL_J1442.2+0622_daily_bin424.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/712493/ft1_filtered_4FGL_J1442.2+0622_daily_bin424.fits.....................!
real 57.52
user 56.19
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.907       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.081       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    69.769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.440       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7848       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.550       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.6554       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.169       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.650       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2072       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94537       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=   7651.948     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2532 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.909        18.302        .33452E-06   -.84234E-06
   2  Prefactor     .10000E-03    8.7357        .47214E-06** at limit **
   3  Prefactor     .10000E-03    8.7340        .30878E-06** at limit **
   4  norm          .10000E-03    4.6425       -.49495E-05** at limit **
   5  Prefactor     .10000E-03    26.506       -.33746E-05** at limit **
   6  norm          13.048        19.744       -.40403E-05   -.33479E-05
   7  Prefactor     21.085        9.4585       -.68289E-08   -.33461E-04
   8  Prefactor     .10000E-03    3.6407        .70875E-07** at limit **
   9  Prefactor     69.771        65.979        .21356E-05    .57190E-05
  10  Prefactor     .10000E-03    13.133       -.29630E-05** at limit **
  11  norm          11.436        14.191       -.10020E-05    .98325E-05
  12  Prefactor     12.031        26.869       -.10096E-04   -.41968E-04
  13  Prefactor     4.7861        10.582       -.20643E-06   -.72185E-04
  14  Prefactor     .10000E-03    4.6147        .48920E-05** at limit **
  15  Prefactor     21.555        23.813        .66591E-05   -.31673E-04
  16  Prefactor     .10000E-03    19.491        .54730E-05** at limit **
  17  norm          .10000E-03    .10534       -.18615E-07** at limit **
  18  norm          5.6555        3.0705        .21342E-07   -.33595E-03
  19  norm          .10000E-03    2.4075        .37702E-06** at limit **
  20  norm          11.168        5.4223       -.32486E-06   -.10246E-03
  21  Prefactor     39.648        32.864       -.18573E-05    .55685E-07
  22  Normalizat    1.2070        .20624       -.20774E-06    .18781E-04
  23  Prefactor     .94557        .12295        .31957E-06   -.70289E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0481
  Prefactor  = 21.0847
  Prefactor  = 0.0001
  Prefactor  = 69.7707
  Prefactor  = 0.0001
  norm       = 11.4357
  Prefactor  = 12.0307
  Prefactor  = 4.78606
  Prefactor  = 0.0001
  Prefactor  = 21.5555
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.65553
  norm       = 0.0001
  norm       = 11.1683
  Prefactor  = 39.648
  Normalizat = 1.20695
  Prefactor  = 0.945566
 **********
 **   18 **HESSE 
 **********

 FCN=   7651.948     FROM HESSE     STATUS=OK           372 CALLS     2904 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.909        18.331        .69852E-04   -1.4560    
   2  Prefactor     .10000E-03    8.7469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.6455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.048        19.748        .11087E-03   -1.4985    
   7  Prefactor     21.085        9.4649        .87237E-04   -1.4789    
   8  Prefactor     .10000E-03    3.6767        .16279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     69.771        66.027        .48058E-04   -1.4035    
  10  Prefactor     .10000E-03    13.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.436        14.184        .11844E-03   -1.5032    
  12  Prefactor     12.031        26.998        .11547E-03   -1.5014    
  13  Prefactor     4.7861        10.569        .18393E-03   -1.5270    
  14  Prefactor     .10000E-03    4.6119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.555        23.734        .86283E-04   -1.4779    
  16  Prefactor     .10000E-03    19.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .51133        .54231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.6555        3.0683        .10327E-03   -1.5232    
  19  norm          .10000E-03    2.4125        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.168        5.4245        .11988E-03   -1.5039    
  21  Prefactor     39.648        32.870        .63656E-04   -1.4448    
  22  Normalizat    1.2070        .24510        .30194E-03   -.86388    
  23  Prefactor     .94557        .14633        .20608E-03   -.94567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55316e-11
Minuit parameter uncertainties:
  1  18.3341
  2  9.61474e-07
  3  8.65833e-07
  4  6.11183e-07
  5  7.5495e-05
  6  19.7574
  7  9.46561
  8  7.20207e-06
  9  66.0963
  10  1.52676e-05
  11  14.1881
  12  27.0254
  13  10.5733
  14  4.91063e-06
  15  23.7448
  16  4.84105e-05
  17  5.80004e-07
  18  3.06838
  19  4.97772e-08
  20  5.42478
  21  32.8848
  22  0.245333
  23  0.146392
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.144e+01  1.419e+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:  9.456e-01  1.464e-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.207e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 220.561 6.375
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 6.87e-06 +/- 8.52e-06

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

Saving results to:
/scratch/kocevski/712493/likelihoodResults_349228801_349488001_4FGL_J1442.2+0622_daily_bin424.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) = 7651.86738415
delta logL = 0.0803807278435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7651.86326738
delta logL = 0.0844974952342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4698       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2818       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95078       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7651.863     FROM MIGRAD    STATUS=FAILED       103 CALLS      305 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4331        18.383        .73370E-03   -.89716E-05
   2  alpha         3.2912        1.6932        .20285E-01    .20271E-03
   3  Normalizat    1.1889        .24496        .30391E-03    .25437E-05
   4  Prefactor     .95128        .14691        .20552E-03    .66381E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7651.863     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      382 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4331        18.383        .18247E-03   -1.5163    
   2  alpha         3.2912        1.6932        .26734E-02    .32201    
   3  Normalizat    1.1889        .24496        .40831E-03   -.86946    
   4  Prefactor     .95128        .14691        .22308E-03   -.94372    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7651.863     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      414 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4331        13.962        .29348E-04   -.12396E-04
   2  alpha         3.2912        1.3444        .40570E-02   -.83787E-06
   3  Normalizat    1.1889        .24198        .12157E-04    .24315E-05
   4  Prefactor     .95128        .14614        .82207E-05    .55317E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 7.4331
  alpha      = 3.29119
  Normalizat = 1.18892
  Prefactor  = 0.951281
 **********
 **   18 **HESSE 
 **********

 FCN=   7651.863     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4331        13.483        .11739E-05   -1.5163    
   2  alpha         3.2912        1.3030        .16228E-03    .32201    
   3  Normalizat    1.1889        .24182        .24313E-05   -.86946    
   4  Prefactor     .95128        .14617        .16441E-05   -.94372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07243e-13
Minuit parameter uncertainties:
  1  13.4888
  2  1.37951
  3  0.24205
  4  0.146229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712493': 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) = 7651.86322078
delta logL = 0.084544099127

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  7.433e+00  1.349e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  3.291e+00  1.380e+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:  9.513e-01  1.462e-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.189e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 220.561 6.375
Photon Index (Free Index): 3.29 +/- 1.38
Photon Flux (Free Index): 3.38e-08 +/- 5.16e-08
Energy Flux (Free Index): 8.41e-06 +/- 9.75e-06

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/712493/cmap_HighResolution_349228801_349488001_4FGL_J1442.2+0622_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='8.41e-06', photon_flux_error='2.35e-08', dlogl='8.45e-02', energy_flux='6.87e-06', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-10 05:56:00.364950', photon_index_error2='1.38', photon_index2='3.29', ts='1.17', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.28e-08', energy_flux_error2='9.75e-06', EG='1.21', time_epoch_completed='1631278560.37', return_code='0', job_id='712493', GAL2='0.95', EG2='1.19', return_code2='0', energy_flux_error='8.52e-06', photon_flux_error2='5.16e-08', ts2='1.34', photon_index='2.70' WHERE bin_id='424' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 712493: <4FGL_J1442.2+0622_daily_bin424> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin424 220.561 6.3755 349228801 349488001 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 :                                   664.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             243.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

