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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin364
RA = 220.561, Dec = 6.3755
tmin = 333676801, tmax = 333936001
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='712409', job_status='RUN', time_executed='2021-09-10 05:44:00.985322', time_epoch_executed='1631277840.99' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712409/ft1_4FGL_J1442.2+0622_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712409/ft2_4FGL_J1442.2+0622_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712409/ft1_4FGL_J1442.2+0622_daily_bin364.fits outfile=/scratch/kocevski/712409/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin364.fits ra=220.561 dec=6.3755 rad=12.0 tmin=333676801.0 tmax=333936001.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.82
user 3.62
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712409/ft1_filtered_4FGL_J1442.2+0622_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/712409/ft2_4FGL_J1442.2+0622_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/712409/ltcube_333676801_333936001_4FGL_J1442.2+0622_daily_bin364.fits outfile=/scratch/kocevski/712409/expmap_333676801_333936001_4FGL_J1442.2+0622_daily_bin364.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/712409/ltcube_333676801_333936001_4FGL_J1442.2+0622_daily_bin364.fits
.....................!
real 192.08
user 186.70
sys 4.81

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/712409/ft1_filtered_4FGL_J1442.2+0622_daily_bin364.fits scfile=/scratch/kocevski/712409/ft2_4FGL_J1442.2+0622_daily_bin364.fits outfile=/scratch/kocevski/712409/cmap_333676801_333936001_4FGL_J1442.2+0622_daily_bin364.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712409/ft1_filtered_4FGL_J1442.2+0622_daily_bin364.fits scfile=/scratch/kocevski/712409/ft2_4FGL_J1442.2+0622_daily_bin364.fits outfile=/scratch/kocevski/712409/cmap_HighResolution_333676801_333936001_4FGL_J1442.2+0622_daily_bin364.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.5713       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4729       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19693E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.399       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.797       1.0000         .10000E-03   10000.    
    17 'norm      '    .32302       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8400       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5094       1.0000         .10000E-03   10000.    
    20 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4167       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97225       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=   8072.450     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2539 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.2344       -.33337E-05** at limit **
   2  Prefactor     .10000E-03    4.9152       -.66461E-07** at limit **
   3  Prefactor     .10000E-03    114.60        .77963E-06** at limit **
   4  norm          5.5710        7.5087        .65078E-06   -.39722E-03
   5  Prefactor     .10000E-03    9.4942        .18318E-06** at limit **
   6  norm          15.223        15.477       -.15625E-05   -.48656E-03
   7  Prefactor     2.4728        5.1538        .17296E-05    .52857E-03
   8  Prefactor     .10000E-03    5.2403       -.24713E-07** at limit **
   9  Prefactor     .10000E-03    363.51       -.27797E-05** at limit **
  10  Prefactor     .10000E-03    11.045        .15250E-05** at limit **
  11  norm          .10000E-03    5.7295       -.17683E-07** at limit **
  12  Prefactor     .10000E-03    10.488       -.14112E-05** at limit **
  13  Prefactor     .10000E-03    9.5197        .81354E-06** at limit **
  14  Prefactor     19.399        16.610        .47923E-06    .14891E-03
  15  Prefactor     .10000E-03    20.055        .43833E-08** at limit **
  16  Prefactor     52.796        43.477        .22387E-07    .70815E-05
  17  norm          .32301        .15701       -.12227E-07   -.58911E-03
  18  norm          2.8404        2.7231        .83150E-07   -.14090E-02
  19  norm          4.5090        5.3529        .17194E-05   -.13060E-02
  20  norm          .10001E-03    3.5118        .23127E-05** at limit **
  21  Prefactor     .10000E-03    10.413       -.93528E-06** at limit **
  22  Normalizat    1.4166        .20551       -.22583E-06   -.26542E-03
  23  Prefactor     .97229        .12254       -.19155E-06   -.46749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.57097
  Prefactor  = 0.0001
  norm       = 15.2231
  Prefactor  = 2.4728
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.3988
  Prefactor  = 0.0001
  Prefactor  = 52.7962
  norm       = 0.32301
  norm       = 2.8404
  norm       = 4.50899
  norm       = 0.000100014
  Prefactor  = 0.000100001
  Normalizat = 1.41665
  Prefactor  = 0.972292
 **********
 **   18 **HESSE 
 **********

 FCN=   8072.450     FROM HESSE     STATUS=OK           360 CALLS     2899 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.8555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    118.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5710        7.6491        .85104E-03   -1.5236    
   5  Prefactor     .10000E-03    9.5087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.223        15.756        .10265E-03   -1.4927    
   7  Prefactor     2.4728        5.2107        .26001E-03   -1.5393    
   8  Prefactor     .10000E-03    5.2969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    372.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.7344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.399        16.639        .90937E-04   -1.4827    
  15  Prefactor     .10000E-03    20.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.796        43.468        .55198E-04   -1.4253    
  17  norm          .32301        .15483        .23842E-04   -1.5594    
  18  norm          2.8404        2.6708        .13304E-03   -1.5371    
  19  norm          4.5090        6.5495        .94797E-03   -1.5283    
  20  norm          .10001E-03    6.7815        .28031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4166        .24606        .29676E-03   -.80148    
  23  Prefactor     .97229        .14673        .20904E-03   -.93659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13258e-09
Minuit parameter uncertainties:
  1  0.000426066
  2  5.84554e-06
  3  0.000157192
  4  7.65047
  5  3.42273e-05
  6  15.7603
  7  5.2116
  8  2.12759e-05
  9  0.00221679
  10  0.000254407
  11  1.42093e-06
  12  0.000230734
  13  0.00012433
  14  16.6428
  15  6.76316e-06
  16  43.4938
  17  0.154834
  18  2.67093
  19  6.55058
  20  0.000607477
  21  0.000152945
  22  0.24627
  23  0.146785
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  1.421e-06  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.723e-01  1.468e-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.417e+00  2.463e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712409/likelihoodResults_333676801_333936001_4FGL_J1442.2+0622_daily_bin364.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) = 8072.45059034
delta logL = -0.000828628373711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8072.44976171
delta logL = 3.67163011106e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6943       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97229       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=   8072.450     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7564        .90712E-02** at limit **
   2  alpha         2.6910        3.5950        .41310        .28833E-05
   3  Normalizat    1.4166        .20154        .67084E-01    .36960E-05
   4  Prefactor     .97229        .12111        .45920E-01    .33959E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.69098
  Normalizat = 1.41665
  Prefactor  = 0.972293
 **********
 **   18 **HESSE 
 **********

 FCN=   8072.450     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6910        3.5930        .50000        .76465E-01
   3  Normalizat    1.4166        .24162        .29677E-03   -.80148    
   4  Prefactor     .97229        .14530        .20904E-03   -.93659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32644e-12
Minuit parameter uncertainties:
  1  1.33384e-06
  2  2.49373
  3  0.241819
  4  0.145357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712409': 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) = 8072.44976171
delta logL = 7.61065166444e-09

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  1.334e-06  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.691e+00  2.494e+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.723e-01  1.454e-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.417e+00  2.418e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/712409/cmap_HighResolution_333676801_333936001_4FGL_J1442.2+0622_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-10 05:55:08.664693', job_id='712409', GAL2='0.97', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1631278508.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.61e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='364' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 712409: <4FGL_J1442.2+0622_daily_bin364> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin364> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 05:41:24 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:41:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 05:41:27 2021
Terminated at Fri Sep 10 05:55:09 2021
Results reported at Fri Sep 10 05:55:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin364 220.561 6.3755 333676801 333936001 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.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            825 sec.

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

