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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin125
RA = 220.561, Dec = 6.3755
tmin = 271728001, tmax = 271987201
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='711041', job_status='RUN', time_executed='2021-09-10 05:40:42.134734', time_epoch_executed='1631277642.13' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711041

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711041/ft1_4FGL_J1442.2+0622_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711041/ft2_4FGL_J1442.2+0622_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711041/ft1_4FGL_J1442.2+0622_daily_bin125.fits outfile=/scratch/kocevski/711041/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin125.fits ra=220.561 dec=6.3755 rad=12.0 tmin=271728001.0 tmax=271987201.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.11
user 2.93
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711041/ft2_4FGL_J1442.2+0622_daily_bin125.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/711041/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/711041/ft1_filtered_4FGL_J1442.2+0622_daily_bin125.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/711041/ft1_filtered_4FGL_J1442.2+0622_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/711041/ft2_4FGL_J1442.2+0622_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/711041/ltcube_271728001_271987201_4FGL_J1442.2+0622_daily_bin125.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/711041/ft2_4FGL_J1442.2+0622_daily_bin125.fits
.....................!
real 12.09
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711041/ft1_filtered_4FGL_J1442.2+0622_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/711041/ft2_4FGL_J1442.2+0622_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/711041/ltcube_271728001_271987201_4FGL_J1442.2+0622_daily_bin125.fits outfile=/scratch/kocevski/711041/expmap_271728001_271987201_4FGL_J1442.2+0622_daily_bin125.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/711041/ltcube_271728001_271987201_4FGL_J1442.2+0622_daily_bin125.fits
.....................!
real 190.86
user 185.83
sys 4.58

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/711041/ft1_filtered_4FGL_J1442.2+0622_daily_bin125.fits scfile=/scratch/kocevski/711041/ft2_4FGL_J1442.2+0622_daily_bin125.fits outfile=/scratch/kocevski/711041/cmap_271728001_271987201_4FGL_J1442.2+0622_daily_bin125.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711041/ft1_filtered_4FGL_J1442.2+0622_daily_bin125.fits scfile=/scratch/kocevski/711041/ft2_4FGL_J1442.2+0622_daily_bin125.fits outfile=/scratch/kocevski/711041/cmap_HighResolution_271728001_271987201_4FGL_J1442.2+0622_daily_bin125.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5598       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.584       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11745E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .87030       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    48.354       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .63545E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.392       1.0000         .10000E-03   10000.    
    11 'norm      '    .45076E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.112       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1113       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4671       1.0000         .10000E-03   10000.    
    19 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.401       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2467       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87269       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=   6748.479     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2550 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5633        18.214       -.11429E-05    .19418E-04
   2  Prefactor     17.589        25.768       -.33540E-06    .28957E-04
   3  Prefactor     .10000E-03    38.590       -.10345E-05** at limit **
   4  norm          .87199        11.552       -.70049E-05   -.78151E-05
   5  Prefactor     .10000E-03    18.590       -.13088E-06** at limit **
   6  norm          48.335        35.133        .34701E-06    .11152E-04
   7  Prefactor     .10000E-03    5.0063       -.40759E-06** at limit **
   8  Prefactor     .10000E-03    2.2537       -.17984E-06** at limit **
   9  Prefactor     .10004E-03    643.54        .41552E-04** at limit **
  10  Prefactor     30.341        31.061        .58713E-05   -.11139E-03
  11  norm          .10000E-03    134.73        .43623E-04** at limit **
  12  Prefactor     .10000E-03    13.312       -.25295E-06** at limit **
  13  Prefactor     .10000E-03    11.288       -.15943E-06** at limit **
  14  Prefactor     .10000E-03    10.402       -.32521E-06** at limit **
  15  Prefactor     45.093        27.033       -.45161E-06    .32090E-04
  16  Prefactor     .10000E-03    13.729       -.11270E-06** at limit **
  17  norm          2.1113        .32518       -.37077E-07    .10939E-02
  18  norm          4.4670        2.3121       -.11564E-06   -.14674E-04
  19  norm          .10000E-03    2.5375       -.44283E-07** at limit **
  20  norm          .10000E-03    1.3289       -.16559E-06** at limit **
  21  Prefactor     60.449        34.601       -.28550E-06   -.94957E-04
  22  Normalizat    1.2466        .22350        .27137E-05    .76888E-04
  23  Prefactor     .87262        .13182        .18664E-05   -.34284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.56334
  Prefactor  = 17.5893
  Prefactor  = 0.000100001
  norm       = 0.871992
  Prefactor  = 0.000100001
  norm       = 48.3346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 30.3408
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0926
  Prefactor  = 0.0001
  norm       = 2.11132
  norm       = 4.46703
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 60.4489
  Normalizat = 1.24662
  Prefactor  = 0.872617
 **********
 **   18 **HESSE 
 **********

 FCN=   6748.479     FROM HESSE     STATUS=OK           366 CALLS     2916 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5633        18.233        .14586E-03   -1.5158    
   2  Prefactor     17.589        25.761        .95513E-04   -1.4869    
   3  Prefactor     .10000E-03    38.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .87199        11.809        .50798E-03   -1.5521    
   5  Prefactor     .10000E-03    18.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          48.335        35.142        .57666E-04   -1.4316    
   7  Prefactor     .10000E-03    5.0662        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2637        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    645.94        .37705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.341        31.359        .72678E-04   -1.4606    
  11  norm          .10000E-03    133.45        .62789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.093        27.068        .59693E-04   -1.4364    
  16  Prefactor     .10000E-03    13.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1113        .32611        .17503E-04   -1.5417    
  18  norm          4.4670        2.3106        .86292E-04   -1.5285    
  19  norm          .10000E-03    2.5398        .12780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3348        .92488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.449        34.615        .25813E-03   -1.4151    
  22  Normalizat    1.2466        .26806        .30416E-03   -.85174    
  23  Prefactor     .87262        .15673        .21534E-03   -.97105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20282e-10
Minuit parameter uncertainties:
  1  18.2462
  2  25.7776
  3  0.000290625
  4  6.41909
  5  0.000200766
  6  35.1575
  7  6.27838e-05
  8  1.72774e-05
  9  0.0101391
  10  31.3762
  11  0.000323334
  12  3.15043e-05
  13  9.15141e-05
  14  4.95867e-05
  15  27.0752
  16  1.46009e-06
  17  0.326108
  18  2.31061
  19  4.62027e-06
  20  1.00829e-05
  21  34.6267
  22  0.268354
  23  0.156811
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  1.000e-04  3.233e-04  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  2.698e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
231         beta:  3.190e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
232           Eb:  1.225e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  8.726e-01  1.568e-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.247e+00  2.684e-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: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711041/likelihoodResults_271728001_271987201_4FGL_J1442.2+0622_daily_bin125.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6748.47903609
delta logL = -3.53164559783e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6747.5279865
delta logL = 0.951014279715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62271       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90832       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=   6747.528     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      355 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62292        .59032        .50311E-03    .39294E-03
   2  alpha         5.0000        .91487        .50000    ** at limit **
   3  Normalizat    1.1419        .26817        .31527E-03   -.23547E-04
   4  Prefactor     .90798        .15814        .21134E-03    .69018E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.622923
  alpha      = 5
  Normalizat = 1.14192
  Prefactor  = 0.907984
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.528     FROM HESSE     STATUS=OK            31 CALLS      386 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62292        .57179        .20124E-04   -1.5550    
   2  alpha         5.0000        .86296        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1419        .26881        .12611E-04   -.88417    
   4  Prefactor     .90798        .15839        .84534E-05   -.95863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17698e-11
Minuit parameter uncertainties:
  1  0.571797
  2  4.12083e-05
  3  0.26913
  4  0.158471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711041': 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) = 6747.52798095
delta logL = 0.951019826069

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  6.229e-01  5.718e-01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  5.000e+00  4.121e-05  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.080e-01  1.585e-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.142e+00  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 220.561 6.375
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.86e-08 +/- 8.11e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.24e-05

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/711041/cmap_HighResolution_271728001_271987201_4FGL_J1442.2+0622_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='9.51e-01', photon_flux2='8.86e-08', job_status='DONE', time_completed='2021-09-10 05:51:14.045295', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.44e-08', energy_flux_error2='1.24e-05', EG='1.25', time_epoch_completed='1631278274.05', return_code='0', job_id='711041', GAL2='0.91', EG2='1.14', return_code2='0', photon_flux_error2='8.11e-08', ts2='2.02', photon_index='2.70' WHERE bin_id='125' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:51:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 711041: <4FGL_J1442.2+0622_daily_bin125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin125 220.561 6.3755 271728001 271987201 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

