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


Performing analysis on: 4FGL_J1442.2+0622_daily_bin230
RA = 220.561, Dec = 6.3755
tmin = 298944001, tmax = 299203201
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='712217', job_status='RUN', time_executed='2021-09-10 05:43:05.807501', time_epoch_executed='1631277785.81' WHERE source_name='4FGL J1442.2+0622' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712217/ft1_4FGL_J1442.2+0622_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712217/ft2_4FGL_J1442.2+0622_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712217/ft1_4FGL_J1442.2+0622_daily_bin230.fits outfile=/scratch/kocevski/712217/ft1_filteredMKT_4FGL_J1442.2+0622_daily_bin230.fits ra=220.561 dec=6.3755 rad=12.0 tmin=298944001.0 tmax=299203201.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.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712217/ft1_filtered_4FGL_J1442.2+0622_daily_bin230.fits" evtable="EVENTS" scfile=/scratch/kocevski/712217/ft2_4FGL_J1442.2+0622_daily_bin230.fits sctable="SC_DATA" outfile=/scratch/kocevski/712217/ltcube_298944001_299203201_4FGL_J1442.2+0622_daily_bin230.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/712217/ft2_4FGL_J1442.2+0622_daily_bin230.fits
.....................!
real 12.01
user 11.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712217/ft1_filtered_4FGL_J1442.2+0622_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/712217/ft2_4FGL_J1442.2+0622_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/712217/ltcube_298944001_299203201_4FGL_J1442.2+0622_daily_bin230.fits outfile=/scratch/kocevski/712217/expmap_298944001_299203201_4FGL_J1442.2+0622_daily_bin230.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/712217/ltcube_298944001_299203201_4FGL_J1442.2+0622_daily_bin230.fits
.....................!
real 190.18
user 185.06
sys 4.65

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/712217/ft1_filtered_4FGL_J1442.2+0622_daily_bin230.fits scfile=/scratch/kocevski/712217/ft2_4FGL_J1442.2+0622_daily_bin230.fits outfile=/scratch/kocevski/712217/cmap_298944001_299203201_4FGL_J1442.2+0622_daily_bin230.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712217/ft1_filtered_4FGL_J1442.2+0622_daily_bin230.fits scfile=/scratch/kocevski/712217/ft2_4FGL_J1442.2+0622_daily_bin230.fits outfile=/scratch/kocevski/712217/cmap_HighResolution_298944001_299203201_4FGL_J1442.2+0622_daily_bin230.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.027       1.0000         .10000E-03   10000.    
     4 'norm      '    18.990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.297       1.0000         .10000E-03   10000.    
     6 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.610       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    25.512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39872       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5103       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.2198       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27208E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4050       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76213       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=   6404.940     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2527 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6456       -.83194E-07** at limit **
   2  Prefactor     .10000E-03    8.8677       -.17865E-06** at limit **
   3  Prefactor     20.025        18.909       -.37478E-06    .34086E-04
   4  norm          18.990        13.156        .24952E-06    .58714E-04
   5  Prefactor     27.301        25.935        .12924E-05    .17672E-03
   6  norm          .10001E-03    63.174        .24870E-05** at limit **
   7  Prefactor     .10000E-03    2.7727       -.35772E-06** at limit **
   8  Prefactor     1.1626        12.326        .20623E-04   -.14155E-03
   9  Prefactor     12.670        69.201       -.34579E-05   -.38236E-04
  10  Prefactor     .10000E-03    35.731        .74521E-06** at limit **
  11  norm          25.515        23.216        .18372E-05    .41252E-03
  12  Prefactor     .10001E-03    28.670       -.19681E-05** at limit **
  13  Prefactor     .10000E-03    25.953       -.10969E-05** at limit **
  14  Prefactor     .10000E-03    5.1672       -.36233E-06** at limit **
  15  Prefactor     .10000E-03    11.102       -.49019E-06** at limit **
  16  Prefactor     .10000E-03    13.647       -.38578E-06** at limit **
  17  norm          .39873        .18015        .37522E-07   -.45208E-03
  18  norm          3.5099        2.7862        .39941E-06    .14519E-03
  19  norm          .10000E-03    2.5006       -.12871E-06** at limit **
  20  norm          7.2194        4.2315       -.18234E-06   -.42815E-03
  21  Prefactor     .10012E-03    156.92       -.71819E-05** at limit **
  22  Normalizat    1.4050        .22044       -.33092E-05   -.17343E-04
  23  Prefactor     .76209        .12812       -.14076E-06   -.44637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0254
  norm       = 18.9901
  Prefactor  = 27.301
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 1.16261
  Prefactor  = 12.6698
  Prefactor  = 0.000100001
  norm       = 25.5149
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.398727
  norm       = 3.50986
  norm       = 0.0001
  norm       = 7.21935
  Prefactor  = 0.00010012
  Normalizat = 1.40504
  Prefactor  = 0.762093
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.940     FROM HESSE     STATUS=OK           358 CALLS     2885 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6485        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.025        18.925        .89500E-04   -1.4813    
   4  norm          18.990        13.158        .91911E-04   -1.4836    
   5  Prefactor     27.301        26.047        .76678E-04   -1.4662    
   6  norm          .10001E-03    63.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7858        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1626        12.464        .21343E-02   -1.5492    
   9  Prefactor     12.670        69.155        .11280E-03   -1.4996    
  10  Prefactor     .10000E-03    35.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          25.515        23.272        .79309E-04   -1.4697    
  12  Prefactor     .10001E-03    29.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1798        .17771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .39873        .17963        .21785E-04   -1.5582    
  18  norm          3.5099        2.7795        .11096E-03   -1.5333    
  19  norm          .10000E-03    2.5030        .12360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.2194        4.2350        .12071E-03   -1.5171    
  21  Prefactor     .10012E-03    163.03        .42861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4050        .26561        .26824E-03   -.80483    
  23  Prefactor     .76209        .15436        .21311E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63439e-09
Minuit parameter uncertainties:
  1  1.26121e-05
  2  3.90529e-05
  3  18.9306
  4  13.1605
  5  26.0582
  6  0.00165474
  7  5.04976e-05
  8  7.61505
  9  59.3067
  10  0.00046314
  11  23.2798
  12  0.000937869
  13  0.00048238
  14  6.63045e-05
  15  0.000149298
  16  9.08314e-05
  17  0.179631
  18  2.77959
  19  1.62791e-05
  20  4.23519
  21  0.00885924
  22  0.265867
  23  0.154442
Done.

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

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  2.551e+01  2.328e+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:  7.621e-01  1.544e-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.405e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 220.561 6.375
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.40e-05

TS (Fixed Index): 1.66
Ra Dec: 220.561 6.375
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712217/likelihoodResults_298944001_299203201_4FGL_J1442.2+0622_daily_bin230.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) = 6402.93206692
delta logL = 2.00787310928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6402.87698237
delta logL = 2.06295765547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0641       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6250       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81508       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=   6402.877     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      270 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0562        19.324        .71900E-02    .61000E-02
   2  alpha         4.6270        4.8135        .32515        .19459E-03
   3  Normalizat    1.2766        .90106E-01    .63000E-01   -.33347E-03
   4  Prefactor     .81503        .55182E-01    .43913E-01   -.36862E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0562
  alpha      = 4.62703
  Normalizat = 1.27658
  Prefactor  = 0.815026
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.877     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0562        25.418        .55033E-04   -1.5421    
   2  alpha         4.6270        4.8111        .16256E-01    1.0175    
   3  Normalizat    1.2766        .25836        .27867E-03   -.84268    
   4  Prefactor     .81503        .15558        .20653E-03   -.99177    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.59592e-09
Minuit parameter uncertainties:
  1  14.4662
  2  3.4826
  3  0.258624
  4  0.15566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712217': 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): 102
logL (Free Index) = 6402.87697812
delta logL = 2.06296191311

Extracting fit parameters...

4FGL J1442.2+0622
   Spectrum: LogParabola
229         norm:  2.056e+00  1.447e+01  1.000e-04  1.000e+04 ( 1.000e-13)
230        alpha:  4.627e+00  3.483e+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:  8.150e-01  1.557e-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.277e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.05
Ra Dec: 220.561 6.375
Photon Index (Free Index): 4.63 +/- 3.48
Photon Flux (Free Index): 1.32e-07 +/- 7.88e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.32e-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/712217/cmap_HighResolution_298944001_299203201_4FGL_J1442.2+0622_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='2.14e-05', photon_flux_error='3.86e-08', dlogl='2.06e+00', energy_flux='1.53e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-10 05:53:07.796013', photon_index_error2='3.48', photon_index2='4.63', ts='1.66', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.32e-05', EG='1.41', time_epoch_completed='1631278387.8', return_code='0', job_id='712217', GAL2='0.82', EG2='1.28', return_code2='102', energy_flux_error='1.40e-05', photon_flux_error2='7.88e-08', ts2='6.05', photon_index='2.70' WHERE bin_id='230' AND source_name='4FGL J1442.2+0622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 05:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 712217: <4FGL_J1442.2+0622_daily_bin230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1442.2+0622_daily_bin230 220.561 6.3755 298944001 299203201 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 :                                   597.00 sec.
    Max Memory :                                 1221 MB
    Average Memory :                             314.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            717 sec.

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

