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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin233
RA = 220.561, Dec = 6.3755
tmin = 299721601, tmax = 299980801
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='712222', job_status='RUN', time_executed='2021-09-10 05:43:40.836183', time_epoch_executed='1631277820.84' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712222/ft1_4FGL_J1442.2+0622_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712222/ft2_4FGL_J1442.2+0622_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712222/ft1_4FGL_J1442.2+0622_daily_bin233.fits outfile=/scratch/kocevski/712222/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin233.fits ra=220.561 dec=6.3755 rad=12.0 tmin=299721601.0 tmax=299980801.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.37
user 3.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712222/ft1_filtered_4FGL_J1442.2+0622_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/712222/ft2_4FGL_J1442.2+0622_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/712222/ltcube_299721601_299980801_4FGL_J1442.2+0622_daily_bin233.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/712222/ft2_4FGL_J1442.2+0622_daily_bin233.fits
.....................!
real 11.89
user 11.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712222/ft1_filtered_4FGL_J1442.2+0622_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/712222/ft2_4FGL_J1442.2+0622_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/712222/ltcube_299721601_299980801_4FGL_J1442.2+0622_daily_bin233.fits outfile=/scratch/kocevski/712222/expmap_299721601_299980801_4FGL_J1442.2+0622_daily_bin233.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/712222/ltcube_299721601_299980801_4FGL_J1442.2+0622_daily_bin233.fits
.....................!
real 192.17
user 186.01
sys 5.72

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/712222/ft1_filtered_4FGL_J1442.2+0622_daily_bin233.fits scfile=/scratch/kocevski/712222/ft2_4FGL_J1442.2+0622_daily_bin233.fits outfile=/scratch/kocevski/712222/cmap_299721601_299980801_4FGL_J1442.2+0622_daily_bin233.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712222/ft1_filtered_4FGL_J1442.2+0622_daily_bin233.fits scfile=/scratch/kocevski/712222/ft2_4FGL_J1442.2+0622_daily_bin233.fits outfile=/scratch/kocevski/712222/cmap_HighResolution_299721601_299980801_4FGL_J1442.2+0622_daily_bin233.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=220.561 yref=6.3755 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.970       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.496       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.852       1.0000         .10000E-03   10000.    
     6 'norm      '    .10283E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7569       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    88.740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83677       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64638       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.322       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7167       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4768       1.0000         .10000E-03   10000.    
    20 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.962       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91863       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6433.553     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     2143 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.985        7.6439        .14669E-05    .13783E-01
   2  Prefactor     13.509        7.3838        .45259E-05    .86687E-02
   3  Prefactor     .10001E-03    15.861        .10782E-04** at limit **
   4  norm          10.640        2.0471       -.35525E-05    .45994E-03
   5  Prefactor     17.828        6.2355       -.78566E-05   -.17769E-02
   6  norm          .10003E-03    6.8109        .36428E-06** at limit **
   7  Prefactor     4.7577        1.0458       -.45024E-06    .18346E-03
   8  Prefactor     .10000E-03    1.7715        .16491E-06** at limit **
   9  Prefactor     88.749        5.4273        .37249E-05   -.31934E-02
  10  Prefactor     13.698        8.3799        .12354E-04    .24668E-02
  11  norm          .10000E-03    9.5746       -.56029E-05** at limit **
  12  Prefactor     .10000E-03    5.8548       -.14948E-06** at limit **
  13  Prefactor     .78638        31.231       -.83359E-04   -.18063E-02
  14  Prefactor     .84907        72.427        .13950E-04   -.14880E-03
  15  Prefactor     .10005E-03    6.7341       -.70204E-05** at limit **
  16  Prefactor     72.265        35.510       -.26568E-04    .10603E-01
  17  norm          .10000E-03    .87058E-01    .11637E-06** at limit **
  18  norm          3.7181        2.3470       -.25555E-06    .15188E-03
  19  norm          3.4768        3.4892        .28976E-06   -.16972E-03
  20  norm          .10014E-03    3.4879        .12091E-04** at limit **
  21  Prefactor     21.968        3.8031        .48595E-05    .15030E-03
  22  Normalizat    .91772        .25581        .36964E-05    .83935E-04
  23  Prefactor     1.1310        .16150        .18263E-05    .18966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9846
  Prefactor  = 13.5093
  Prefactor  = 0.00010001
  norm       = 10.6405
  Prefactor  = 17.8275
  norm       = 0.000100031
  Prefactor  = 4.75766
  Prefactor  = 0.0001
  Prefactor  = 88.7485
  Prefactor  = 13.6979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.786383
  Prefactor  = 0.849073
  Prefactor  = 0.000100049
  Prefactor  = 72.2652
  norm       = 0.0001
  norm       = 3.71814
  norm       = 3.47675
  norm       = 0.000100139
  Prefactor  = 21.968
  Normalizat = 0.917718
  Prefactor  = 1.13098
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.553     FROM HESSE     STATUS=OK           430 CALLS     2573 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.985        17.331        .20894E-02   -1.4749    
   2  Prefactor     13.509        19.325        .27258E-02   -1.4973    
   3  Prefactor     .10001E-03    15.863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.640        10.915        .30706E-02   -1.5055    
   5  Prefactor     17.828        27.291        .23698E-02   -1.4863    
   6  norm          .10003E-03    8.4594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7577        6.4212        .46120E-02   -1.5272    
   8  Prefactor     .10000E-03    1.7627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     88.749        78.937        .10663E-02   -1.3821    
  10  Prefactor     13.698        27.944        .27070E-02   -1.4968    
  11  norm          .10000E-03    9.6285        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.8456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .78638        7.8457        .12576       -1.5531    
  14  Prefactor     .84907        10.076        .11855       -1.5524    
  15  Prefactor     .10005E-03    7.9069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     72.265        49.631        .11802E-02   -1.4006    
  17  norm          .10000E-03    .60311E-01    .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7181        2.3869        .52366E-02   -1.5322    
  19  norm          3.4768        3.4805        .54216E-02   -1.5335    
  20  norm          .10014E-03    3.4166        .45726E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.968        36.805        .21367E-02   -1.4770    
  22  Normalizat    .91772        .22973        .73420E-01   -.95840    
  23  Prefactor     1.1310        .13836        .36528E-01   -.88483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24126e-07
Minuit parameter uncertainties:
  1  17.3347
  2  19.334
  3  0.000786106
  4  10.9173
  5  27.3102
  6  0.00101982
  7  6.42215
  8  1.13195e-05
  9  79.0306
  10  27.9705
  11  0.000122606
  12  1.05e-06
  13  4.96831
  14  5.85068
  15  0.00124849
  16  49.6599
  17  1.72136e-07
  18  2.38696
  19  3.48071
  20  0.0013788
  21  36.843
  22  0.229972
  23  0.138399
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  1.226e-04  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.131e+00  1.384e-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.177e-01  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/712222/likelihoodResults_299721601_299980801_4FGL_J1442.2+0622_daily_bin233.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) = 6433.55356989
delta logL = -0.000494305269058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6433.55307558
delta logL = -6.02085492574e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6817       1.0000          .0000       5.0000    
     3 'Normalizat'    .91773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1310       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=   6433.553     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      238 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    461.64        .18142E-01** at limit **
   2  alpha         1.8765        2.5466        .16516       -.22302E-07
   3  Normalizat    .91772        .33687E-01    .32489E-03    .11506E-03
   4  Prefactor     1.1310        .21530E-01    .18790E-03    .26470E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87653
  Normalizat = 0.917718
  Prefactor  = 1.13098
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.553     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.708        .27860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8765        3.5008        .66064E-02   -.25205    
   3  Normalizat    .91772        .25148        .12996E-04   -.95840    
   4  Prefactor     1.1310        .16085        .37581E-04   -.88483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6753e-11
Minuit parameter uncertainties:
  1  7.94462e-05
  2  540.817
  3  0.2518
  4  0.160922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712222': 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) = 6433.55307434
delta logL = 1.24399593915e-06

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  7.945e-05  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  1.877e+00  5.408e+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:  1.131e+00  1.609e-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.177e-01  2.518e-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/712222/cmap_HighResolution_299721601_299980801_4FGL_J1442.2+0622_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-10 05:53:28.366479', job_id='712222', GAL2='1.13', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631278408.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='233' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:53:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 712222: <4FGL_J1442.2+0622_daily_bin233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin233 220.561 6.3755 299721601 299980801 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 :                                   585.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

