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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin849
RA = 220.561, Dec = 6.3755
tmin = 459388801, tmax = 459648001
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='715303', job_status='RUN', time_executed='2021-09-10 05:55:10.092790', time_epoch_executed='1631278510.09' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='849'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/715303

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/715303/ft1_4FGL_J1442.2+0622_daily_bin849.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/715303/ft2_4FGL_J1442.2+0622_daily_bin849.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/715303/ft1_4FGL_J1442.2+0622_daily_bin849.fits outfile=/scratch/kocevski/715303/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin849.fits ra=220.561 dec=6.3755 rad=12.0 tmin=459388801.0 tmax=459648001.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.47
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/715303/ft2_4FGL_J1442.2+0622_daily_bin849.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/715303/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin849.fits evtable="EVENTS" outfile="/scratch/kocevski/715303/ft1_filtered_4FGL_J1442.2+0622_daily_bin849.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/715303/ft1_filtered_4FGL_J1442.2+0622_daily_bin849.fits" evtable="EVENTS" scfile=/scratch/kocevski/715303/ft2_4FGL_J1442.2+0622_daily_bin849.fits sctable="SC_DATA" outfile=/scratch/kocevski/715303/ltcube_459388801_459648001_4FGL_J1442.2+0622_daily_bin849.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/715303/ft2_4FGL_J1442.2+0622_daily_bin849.fits
.....................!
real 11.86
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/715303/ft1_filtered_4FGL_J1442.2+0622_daily_bin849.fits evtable="EVENTS" scfile=/scratch/kocevski/715303/ft2_4FGL_J1442.2+0622_daily_bin849.fits sctable="SC_DATA" expcube=/scratch/kocevski/715303/ltcube_459388801_459648001_4FGL_J1442.2+0622_daily_bin849.fits outfile=/scratch/kocevski/715303/expmap_459388801_459648001_4FGL_J1442.2+0622_daily_bin849.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/715303/ltcube_459388801_459648001_4FGL_J1442.2+0622_daily_bin849.fits
.....................!
real 190.39
user 185.02
sys 5.03

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/715303/ft1_filtered_4FGL_J1442.2+0622_daily_bin849.fits scfile=/scratch/kocevski/715303/ft2_4FGL_J1442.2+0622_daily_bin849.fits outfile=/scratch/kocevski/715303/cmap_459388801_459648001_4FGL_J1442.2+0622_daily_bin849.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/715303/ft1_filtered_4FGL_J1442.2+0622_daily_bin849.fits scfile=/scratch/kocevski/715303/ft2_4FGL_J1442.2+0622_daily_bin849.fits outfile=/scratch/kocevski/715303/cmap_HighResolution_459388801_459648001_4FGL_J1442.2+0622_daily_bin849.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/715303/ft1_filtered_4FGL_J1442.2+0622_daily_bin849.fits evtable="EVENTS" scfile=/scratch/kocevski/715303/ft2_4FGL_J1442.2+0622_daily_bin849.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/715303/Model_4FGL_J1442.2+0622_daily_bin849.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/715303/ft1_filtered_4FGL_J1442.2+0622_daily_bin849.fits.....................!
real 59.34
user 57.89
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1637       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.1480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.470       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.909       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1102       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5317       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0722       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1860       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0172       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=   7436.454     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2541 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.952        .13021E-04** at limit **
   2  Prefactor     .10000E-03    10.600       -.43254E-05** at limit **
   3  Prefactor     .10000E-03    10.997        .18833E-05** at limit **
   4  norm          .10000E-03    3.0344       -.40126E-08** at limit **
   5  Prefactor     2.1627        55.745        .80149E-06   -.28606E-03
   6  norm          .10000E-03    12.023        .73252E-05** at limit **
   7  Prefactor     .10000E-03    2.9143       -.10467E-07** at limit **
   8  Prefactor     .10000E-03    4.9662        .42581E-07** at limit **
   9  Prefactor     .10000E-03    50.190       -.25724E-04** at limit **
  10  Prefactor     .10000E-03    24.211       -.87231E-06** at limit **
  11  norm          8.1437        17.286       -.45449E-06   -.87031E-07
  12  Prefactor     .10000E-03    13.631       -.18250E-05** at limit **
  13  Prefactor     12.470        31.774        .38544E-06    .27185E-05
  14  Prefactor     .10000E-03    3.9638       -.50510E-07** at limit **
  15  Prefactor     11.910        17.527        .16833E-06    .11561E-04
  16  Prefactor     .10000E-03    13.897       -.39620E-05** at limit **
  17  norm          3.1103        .38500       -.17185E-08    .41944E-04
  18  norm          2.5312        2.8133       -.23390E-06   -.19027E-03
  19  norm          .10000E-03    2.0622       -.98249E-08** at limit **
  20  norm          2.0724        2.3837        .88876E-06   -.37314E-02
  21  Prefactor     .10000E-03    44.087        .11057E-04** at limit **
  22  Normalizat    1.1860        .22574        .77150E-08   -.60044E-04
  23  Prefactor     1.0172        .13172       -.11998E-06   -.77018E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.16275
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 8.14371
  Prefactor  = 0.0001
  Prefactor  = 12.4703
  Prefactor  = 0.0001
  Prefactor  = 11.9097
  Prefactor  = 0.0001
  norm       = 3.11027
  norm       = 2.53121
  norm       = 0.0001
  norm       = 2.07244
  Prefactor  = 0.000100001
  Normalizat = 1.18599
  Prefactor  = 1.01723
 **********
 **   18 **HESSE 
 **********

 FCN=   7436.454     FROM HESSE     STATUS=OK           364 CALLS     2905 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0348        .14671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1627        63.945        .14000E-02   -1.5414    
   6  norm          .10000E-03    12.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9224        .14376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1635        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.1437        17.262        .14046E-03   -1.5137    
  12  Prefactor     .10000E-03    13.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.470        31.826        .11343E-03   -1.5002    
  14  Prefactor     .10000E-03    3.9660        .16767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.910        17.526        .11608E-03   -1.5018    
  16  Prefactor     .10000E-03    13.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1103        .38616        .17680E-04   -1.5355    
  18  norm          2.5312        2.8332        .14145E-03   -1.5390    
  19  norm          .10000E-03    2.0631        .12094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0724        4.2367        .11858E-02   -1.5420    
  21  Prefactor     .10000E-03    44.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1860        .26641        .33280E-03   -.87037    
  23  Prefactor     1.0172        .15625        .21376E-03   -.92157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39299e-08
Minuit parameter uncertainties:
  1  0.000222576
  2  7.49971e-05
  3  3.09993e-05
  4  6.96183e-08
  5  23.5471
  6  0.000128074
  7  3.49376e-07
  8  3.04022e-07
  9  0.000905649
  10  4.24196e-06
  11  17.2729
  12  3.35582e-05
  13  31.8694
  14  5.55724e-07
  15  17.5335
  16  7.46887e-05
  17  0.386164
  18  2.8334
  19  5.64064e-08
  20  4.2373
  21  0.000355383
  22  0.266712
  23  0.156318
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  8.144e+00  1.727e+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:  1.017e+00  1.563e-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.186e+00  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/715303/likelihoodResults_459388801_459648001_4FGL_J1442.2+0622_daily_bin849.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) = 7436.41469247
delta logL = 0.038834612953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7436.35062165
delta logL = 0.102905435957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42689       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7436.351     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      370 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42685        .69264        .75324E-04   -.16255E-03
   2  alpha         5.0000        3.6924        .50000    ** at limit **
   3  Normalizat    1.1237        .27718        .34062E-03   -.34077E-04
   4  Prefactor     1.0427        .15837        .21144E-03   -.52638E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.426848
  alpha      = 5
  Normalizat = 1.1237
  Prefactor  = 1.04274
 **********
 **   18 **HESSE 
 **********

 FCN=   7436.351     FROM HESSE     STATUS=OK            29 CALLS      399 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42685        .68943        .30130E-05   -1.5577    
   2  alpha         5.0000        3.6842        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1237        .27760        .13625E-04   -.88995    
   4  Prefactor     1.0427        .15858        .84577E-05   -.91318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77433e-12
Minuit parameter uncertainties:
  1  0.689447
  2  3.54867e-06
  3  0.277964
  4  0.158647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/715303': 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) = 7436.35062085
delta logL = 0.102906238808

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  4.268e-01  6.894e-01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  5.000e+00  3.549e-06  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.043e+00  1.586e-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.124e+00  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/715303/cmap_HighResolution_459388801_459648001_4FGL_J1442.2+0622_daily_bin849.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-10 06:06:04.670666', job_id='715303', GAL2='1.04', fit_tolerance='1e-08', EG2='1.12', EG='1.19', time_epoch_completed='1631279164.67', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.03e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='849' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 06:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 715303: <4FGL_J1442.2+0622_daily_bin849> in cluster <slac> Done

Job <4FGL_J1442.2+0622_daily_bin849> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 05:51:00 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 05:51:02 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:51:02 2021
Terminated at Fri Sep 10 06:06:05 2021
Results reported at Fri Sep 10 06:06:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin849 220.561 6.3755 459388801 459648001 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 :                                   653.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

