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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin495
RA = 220.561, Dec = 6.3755
tmin = 367632001, tmax = 367891201
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='712594', job_status='RUN', time_executed='2021-09-10 05:41:55.087434', time_epoch_executed='1631277715.09' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712594

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712594/ft1_4FGL_J1442.2+0622_daily_bin495.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712594/ft2_4FGL_J1442.2+0622_daily_bin495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712594/ft1_4FGL_J1442.2+0622_daily_bin495.fits outfile=/scratch/kocevski/712594/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin495.fits ra=220.561 dec=6.3755 rad=12.0 tmin=367632001.0 tmax=367891201.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 5.13
user 4.84
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712594/ft1_filtered_4FGL_J1442.2+0622_daily_bin495.fits evtable="EVENTS" scfile=/scratch/kocevski/712594/ft2_4FGL_J1442.2+0622_daily_bin495.fits sctable="SC_DATA" expcube=/scratch/kocevski/712594/ltcube_367632001_367891201_4FGL_J1442.2+0622_daily_bin495.fits outfile=/scratch/kocevski/712594/expmap_367632001_367891201_4FGL_J1442.2+0622_daily_bin495.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/712594/ltcube_367632001_367891201_4FGL_J1442.2+0622_daily_bin495.fits
.....................!
real 189.20
user 185.04
sys 3.83

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J1442.2+0622 @ 220.561 6.3755

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/712594/ft1_filtered_4FGL_J1442.2+0622_daily_bin495.fits scfile=/scratch/kocevski/712594/ft2_4FGL_J1442.2+0622_daily_bin495.fits outfile=/scratch/kocevski/712594/cmap_367632001_367891201_4FGL_J1442.2+0622_daily_bin495.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712594/ft1_filtered_4FGL_J1442.2+0622_daily_bin495.fits scfile=/scratch/kocevski/712594/ft2_4FGL_J1442.2+0622_daily_bin495.fits outfile=/scratch/kocevski/712594/cmap_HighResolution_367632001_367891201_4FGL_J1442.2+0622_daily_bin495.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8859       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1526       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4894       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10790E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.977       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32135E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1090       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5762       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .63545       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3573       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=   6447.004     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2611 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8862        10.661        .20172E-05   -.39324E-03
   2  Prefactor     16.755        20.290       -.19223E-06   -.71871E-05
   3  Prefactor     5.1569        32.381       -.19409E-06   -.20661E-04
   4  norm          .10000E-03    5.3226        .64516E-08** at limit **
   5  Prefactor     .10000E-03    8.4488        .97064E-08** at limit **
   6  norm          .10000E-03    11.017       -.91395E-08** at limit **
   7  Prefactor     .10000E-03    6.2128       -.17162E-07** at limit **
   8  Prefactor     5.4911        7.3902        .19581E-07   -.92235E-04
   9  Prefactor     .10000E-03    66.964        .85042E-06** at limit **
  10  Prefactor     .10000E-03    22.577       -.11683E-05** at limit **
  11  norm          .10002E-03    19.528       -.11934E-06** at limit **
  12  Prefactor     .10000E-03    29.653       -.34296E-05** at limit **
  13  Prefactor     61.893        30.752        .35927E-07    .17545E-04
  14  Prefactor     .10000E-03    4.2788        .57259E-08** at limit **
  15  Prefactor     11.969        24.170        .64558E-06    .36194E-04
  16  Prefactor     .10000E-03    25.848        .41142E-05** at limit **
  17  norm          .32132E-01    .98155E-01    .77600E-07   -.15749E-02
  18  norm          3.1093        2.7643        .87381E-07   -.13818E-03
  19  norm          .10000E-03    5.1011       -.13843E-07** at limit **
  20  norm          1.5761        2.2419        .22756E-07   -.35416E-04
  21  Prefactor     .10000E-03    16.851        .14869E-06** at limit **
  22  Normalizat    .63524        .25008       -.53682E-06   -.14942E-04
  23  Prefactor     1.3573        .15008       -.59082E-07   -.72625E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.88619
  Prefactor  = 16.7552
  Prefactor  = 5.15693
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.49114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.000100003
  Prefactor  = 61.8926
  Prefactor  = 0.0001
  Prefactor  = 11.9691
  Prefactor  = 0.000100005
  norm       = 0.0321325
  norm       = 3.10929
  norm       = 0.0001
  norm       = 1.57606
  Prefactor  = 0.0001
  Normalizat = 0.635243
  Prefactor  = 1.35735
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.004     FROM HESSE     STATUS=OK           374 CALLS     2985 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8862        11.934        .82763E-03   -1.5223    
   2  Prefactor     16.755        20.287        .97850E-04   -1.4889    
   3  Prefactor     5.1569        32.388        .17711E-03   -1.5254    
   4  norm          .10000E-03    5.3286        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4911        7.3973        .17149E-03   -1.5239    
   9  Prefactor     .10000E-03    67.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    177.90        .67192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.893        30.469        .51005E-04   -1.4133    
  14  Prefactor     .10000E-03    4.2820        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.969        24.178        .11575E-03   -1.5016    
  16  Prefactor     .10000E-03    28.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32132E-01    .10749        .42303E-03   -1.5672    
  18  norm          3.1093        2.7561        .11873E-03   -1.5355    
  19  norm          .10000E-03    5.1496        .17708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5761        2.2184        .13924E-03   -1.5457    
  21  Prefactor     .10000E-03    16.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .63524        .27468        .40163E-03   -1.0651    
  23  Prefactor     1.3573        .16755        .17949E-03   -.81617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39772e-08
Minuit parameter uncertainties:
  1  11.9387
  2  20.2952
  3  25.8678
  4  6.0114e-07
  5  1.49705e-06
  6  5.49271e-07
  7  5.64699e-06
  8  7.39854
  9  0.000239968
  10  0.000183716
  11  0.00373366
  12  0.000649385
  13  30.4767
  14  8.60442e-07
  15  24.1979
  16  0.000726839
  17  0.107493
  18  2.75625
  19  7.38313e-07
  20  2.21849
  21  2.08955e-05
  22  0.275269
  23  0.167616
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  3.734e-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.357e+00  1.676e-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:  6.352e-01  2.753e-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: 9.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712594/likelihoodResults_367632001_367891201_4FGL_J1442.2+0622_daily_bin495.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) = 6447.00387971
delta logL = -2.5718814868e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6446.94745633
delta logL = 0.0563976616559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8294       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4756       1.0000          .0000       5.0000    
     3 'Normalizat'    .62192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3583       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=   6446.947     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      305 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8268        19.008        .24177E-03    .27959E-03
   2  alpha         3.4770        1.8550        .31814E-01    .50868E-04
   3  Normalizat    .62187        .26409        .40556E-03    .10753E-03
   4  Prefactor     1.3582        .16611        .17941E-03    .37083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.82681
  alpha      = 3.47696
  Normalizat = 0.621866
  Prefactor  = 1.35824
 **********
 **   18 **HESSE 
 **********

 FCN=   6446.947     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8268        11.152        .96709E-05   -1.5372    
   2  alpha         3.4770        1.5053        .12726E-02    .40148    
   3  Normalizat    .62187        .26436        .16222E-04   -1.0706    
   4  Prefactor     1.3582        .16605        .35882E-04   -.81591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29217e-10
Minuit parameter uncertainties:
  1  11.16
  2  1.64082
  3  0.264904
  4  0.166117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712594': 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) = 6446.94745574
delta logL = 0.0563982508365

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  2.827e+00  1.116e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  3.477e+00  1.641e+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.358e+00  1.661e-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:  6.219e-01  2.649e-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/712594/cmap_HighResolution_367632001_367891201_4FGL_J1442.2+0622_daily_bin495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', job_status='DONE', photon_flux_upper_limit='9.19e-08', time_completed='2021-09-10 05:52:19.423688', job_id='712594', GAL2='1.36', fit_tolerance='1e-08', EG2='0.62', EG='0.64', time_epoch_completed='1631278339.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='5.64e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='495' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 712594: <4FGL_J1442.2+0622_daily_bin495> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin495 220.561 6.3755 367632001 367891201 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 :                                   596.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            643 sec.

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

