/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 58 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1442.2+0622_daily_bin37
RA = 220.561, Dec = 6.3755
tmin = 248918401, tmax = 249177601
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='710900', job_status='RUN', time_executed='2021-09-10 05:37:41.341508', time_epoch_executed='1631277461.34' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710900/ft1_4FGL_J1442.2+0622_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710900/ft2_4FGL_J1442.2+0622_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710900/ft1_4FGL_J1442.2+0622_daily_bin37.fits outfile=/scratch/kocevski/710900/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin37.fits ra=220.561 dec=6.3755 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.93
user 1.74
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710900/ft1_filtered_4FGL_J1442.2+0622_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/710900/ft2_4FGL_J1442.2+0622_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/710900/ltcube_248918401_249177601_4FGL_J1442.2+0622_daily_bin37.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/710900/ft2_4FGL_J1442.2+0622_daily_bin37.fits
.....................!
real 12.76
user 12.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710900/ft1_filtered_4FGL_J1442.2+0622_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/710900/ft2_4FGL_J1442.2+0622_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/710900/ltcube_248918401_249177601_4FGL_J1442.2+0622_daily_bin37.fits outfile=/scratch/kocevski/710900/expmap_248918401_249177601_4FGL_J1442.2+0622_daily_bin37.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/710900/ltcube_248918401_249177601_4FGL_J1442.2+0622_daily_bin37.fits
.....................!
real 190.66
user 185.89
sys 4.39

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/710900/ft1_filtered_4FGL_J1442.2+0622_daily_bin37.fits scfile=/scratch/kocevski/710900/ft2_4FGL_J1442.2+0622_daily_bin37.fits outfile=/scratch/kocevski/710900/cmap_248918401_249177601_4FGL_J1442.2+0622_daily_bin37.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710900/ft1_filtered_4FGL_J1442.2+0622_daily_bin37.fits scfile=/scratch/kocevski/710900/ft2_4FGL_J1442.2+0622_daily_bin37.fits outfile=/scratch/kocevski/710900/cmap_HighResolution_248918401_249177601_4FGL_J1442.2+0622_daily_bin37.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/710900/ft1_filtered_4FGL_J1442.2+0622_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/710900/ft2_4FGL_J1442.2+0622_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710900/Model_4FGL_J1442.2+0622_daily_bin37.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/710900/ft1_filtered_4FGL_J1442.2+0622_daily_bin37.fits.....................!
real 50.56
user 49.18
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13860E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58595       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11153E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    22.098       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11800E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    46.987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3468       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0938       1.0000         .10000E-03   10000.    
    19 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9392       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14045E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96214       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94053       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6497.084     FROM MIGRAD    STATUS=FAILED       912 CALLS     2610 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9099        19.526        .13417E-03    .90666E-05
   2  Prefactor     .10000E-03    49.652        .18142E-02** at limit **
   3  Prefactor     .56007        203.15        .70827E-02    .80148E-03
   4  norm          .10000E-03    7.4059        .18142E-02** at limit **
   5  Prefactor     .10000E-03    27.026        .18142E-02** at limit **
   6  norm          22.085        21.308        .85207E-04   -.94224E-04
   7  Prefactor     .10000E-03    3.0182        .13652E-02** at limit **
   8  Prefactor     .10000E-03    6.8618        .36285E-03** at limit **
   9  Prefactor     .10000E-03    52.088        .18142E-02** at limit **
  10  Prefactor     .10000E-03    15.869        .18142E-02** at limit **
  11  norm          46.977        19.626        .58495E-04   -.44624E-04
  12  Prefactor     .10000E-03    45.726        .18142E-02** at limit **
  13  Prefactor     .10000E-03    12.184        .18142E-02** at limit **
  14  Prefactor     .10000E-03    9.6754        .18142E-02** at limit **
  15  Prefactor     .10000E-03    8.4008        .18142E-02** at limit **
  16  Prefactor     .10000E-03    12.024        .18142E-02** at limit **
  17  norm          2.3468        .32765        .16441E-04    .59122E-03
  18  norm          1.0932        1.9102        .14116E-03   -.21931E-03
  19  norm          .10000E-03    7.5753        .18142E-02** at limit **
  20  norm          1.9392        2.9598        .16542E-03    .12557E-03
  21  Prefactor     .10002E-03    34.743        .13633    ** at limit **
  22  Normalizat    .96201        .25872        .31422E-03    .36362E-04
  23  Prefactor     .94064        .15497        .19456E-03    .35318E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6497.084     FROM SIMPLEX   STATUS=UNCHANGED   1180 CALLS     3790 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9099        19.526        .33760E-06   -1.5111    
   2  Prefactor     .10000E-03    49.652        .98851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .56007        203.15        .35860E-06   -1.5558    
   4  norm          .10000E-03    7.4059        .37285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.026        .33461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.085        21.308        .32379E-06   -1.4768    
   7  Prefactor     .10000E-03    3.0182        .15678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8618        .11449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.088        .21172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.869        .59840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          46.977        19.626        .31461E-06   -1.4336    
  12  Prefactor     .10000E-03    45.726        .41322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.184        .26664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6754        .20359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4008        .35208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.024        .17567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3468        .32765        .33722E-06   -1.5402    
  18  norm          1.0932        1.9102        .33951E-06   -1.5499    
  19  norm          .10000E-03    7.5753        .26507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9392        2.9598        .33791E-06   -1.5429    
  21  Prefactor     .10002E-03    34.743        .85472E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96201        .25872        .20649E-06   -.94314    
  23  Prefactor     .94064        .15497        .20745E-06   -.94735    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6497.084     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     4151 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9099        19.516        .53667E-05   -.42367E-06
   2  Prefactor     .10000E-03    49.669        .36285E-03** at limit **
   3  Prefactor     .56010        209.87        .14165E-02    .31953E-04
   4  norm          .10000E-03    7.4067        .36285E-03** at limit **
   5  Prefactor     .10000E-03    27.032        .36285E-03** at limit **
   6  norm          22.085        21.307        .17041E-04    .10674E-06
   7  Prefactor     .10000E-03    3.0184        .27304E-03** at limit **
   8  Prefactor     .10000E-03    6.8621        .72569E-04** at limit **
   9  Prefactor     .10000E-03    52.093        .36285E-03** at limit **
  10  Prefactor     .10000E-03    15.870        .36285E-03** at limit **
  11  norm          46.977        19.624        .11699E-04   -.11661E-06
  12  Prefactor     .10000E-03    45.745        .36285E-03** at limit **
  13  Prefactor     .10000E-03    12.186        .36285E-03** at limit **
  14  Prefactor     .10000E-03    9.6780        .36285E-03** at limit **
  15  Prefactor     .10000E-03    8.4010        .36285E-03** at limit **
  16  Prefactor     .10000E-03    12.024        .36285E-03** at limit **
  17  norm          2.3468        .32757        .65764E-06    .49536E-05
  18  norm          1.0932        1.9096        .56464E-05    .40269E-05
  19  norm          .10000E-03    7.5797        .36285E-03** at limit **
  20  norm          1.9392        2.9595        .66167E-05    .27491E-05
  21  Prefactor     .10002E-03    34.763        .13625    ** at limit **
  22  Normalizat    .96201        .25826        .12569E-04    .90453E-06
  23  Prefactor     .94064        .15510        .38912E-04    .33307E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.90991
  Prefactor  = 0.0001
  Prefactor  = 0.560102
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.0853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 46.9773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34682
  norm       = 1.09324
  norm       = 0.0001
  norm       = 1.93922
  Prefactor  = 0.000100018
  Normalizat = 0.962013
  Prefactor  = 0.940636
 **********
 **   18 **HESSE 
 **********

 FCN=   6497.084     FROM HESSE     STATUS=OK           358 CALLS     4509 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9099        19.473        .10733E-05   -1.5111    
   2  Prefactor     .10000E-03    49.670        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .56010        209.68        .28331E-03   -1.5558    
   4  norm          .10000E-03    7.4067        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.033        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.085        21.307        .17041E-04   -1.4768    
   7  Prefactor     .10000E-03    3.0184        .54607E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8622        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.870        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          46.977        19.624        .11699E-04   -1.4336    
  12  Prefactor     .10000E-03    45.746        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.186        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6781        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4010        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.024        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3468        .32754        .36720E-06   -1.5402    
  18  norm          1.0932        1.9093        .11293E-05   -1.5499    
  19  norm          .10000E-03    7.5799        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9392        2.9592        .13233E-05   -1.5429    
  21  Prefactor     .10002E-03    34.754        .13627       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96201        .25819        .25137E-05   -.94314    
  23  Prefactor     .94064        .15515        .77823E-05   -.94735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7832e-12
Minuit parameter uncertainties:
  1  19.4865
  2  2.22068e-06
  3  21.7495
  4  3.20202e-07
  5  9.68724e-07
  6  21.3138
  7  4.91498e-08
  8  9.11997e-08
  9  2.28828e-08
  10  3.94991e-07
  11  19.6262
  12  1.75296e-07
  13  2.08062e-07
  14  3.04402e-07
  15  3.25447e-08
  16  4.32886e-08
  17  0.327538
  18  1.90941
  19  5.75388e-07
  20  2.95938
  21  0.00159472
  22  0.25852
  23  0.15522
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  4.698e+01  1.963e+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.406e-01  1.552e-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.620e-01  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.90
Ra Dec: 220.561 6.375
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 7.79e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 1.18e-05

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) = 6496.88682538
delta logL = 0.197256105759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6496.88431376
delta logL = 0.199767731221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    61.695       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3804       1.0000          .0000       5.0000    
     3 'Normalizat'    .97879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93441       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=   6496.884     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      297 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          61.698        35.078        .25543E-03   -.10294E-03
   2  alpha         2.3803        .50657        .10796E-01    .18353E-03
   3  Normalizat    .97886        .24829        .31184E-03   -.99638E-04
   4  Prefactor     .93436        .15262        .19514E-03   -.13824E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 61.6978
  alpha      = 2.38033
  Normalizat = 0.97886
  Prefactor  = 0.934364
 **********
 **   18 **HESSE 
 **********

 FCN=   6496.884     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          61.698        34.248        .51085E-04   -1.4135    
   2  alpha         2.3803        .49463        .21592E-02   -.47887E-01
   3  Normalizat    .97886        .24842        .12473E-04   -.93742    
   4  Prefactor     .93436        .15274        .39028E-04   -.94950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69478e-11
Minuit parameter uncertainties:
  1  34.2588
  2  0.497923
  3  0.248718
  4  0.152815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710900': 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) = 6496.88431371
delta logL = 0.199767782958

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  6.170e+01  3.426e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.380e+00  4.979e-01  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.344e-01  1.528e-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.789e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.27
Ra Dec: 220.561 6.375
Photon Index (Free Index): 2.38 +/- 0.50
Photon Flux (Free Index): 6.42e-08 +/- 3.42e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.37e-05

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/710900/cmap_HighResolution_248918401_249177601_4FGL_J1442.2+0622_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.79e-08', energy_flux2='3.05e-05', photon_flux_error='3.25e-08', dlogl='2.00e-01', energy_flux='2.82e-05', photon_flux2='6.42e-08', job_status='DONE', time_completed='2021-09-10 05:48:33.521471', photon_index_error2='0.50', photon_index2='2.38', ts='14.90', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.96', time_epoch_completed='1631278113.52', return_code='0', job_id='710900', GAL2='0.93', EG2='0.98', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.42e-08', ts2='15.27', photon_index='2.70' WHERE bin_id='37' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:48:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 710900: <4FGL_J1442.2+0622_daily_bin37> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin37> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 05:36:33 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:36:35 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:36:35 2021
Terminated at Fri Sep 10 05:48:34 2021
Results reported at Fri Sep 10 05:48:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin37 220.561 6.3755 248918401 249177601 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 :                                   651.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            721 sec.

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

