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


Performing analysis on: 4FGL_J1213.7+6423_daily_bin1202
RA = 183.437, Dec = 64.3961
tmin = 550886401, tmax = 551145601
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='419001', job_status='RUN', time_executed='2021-09-05 04:31:16.111382', time_epoch_executed='1630841476.11' WHERE source_name='4FGL J1213.7+6423' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419001/ft1_4FGL_J1213.7+6423_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419001/ft1_4FGL_J1213.7+6423_daily_bin1202.fits outfile=/scratch/kocevski/419001/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1202.fits ra=183.437 dec=64.3961 rad=12.0 tmin=550886401.0 tmax=551145601.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.78
user 3.51
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.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/419001/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.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.67
user 0.30
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/419001/ltcube_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.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/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits
.....................!
real 12.09
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/419001/ltcube_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.fits outfile=/scratch/kocevski/419001/expmap_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.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/419001/ltcube_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.fits
.....................!
real 190.59
user 185.60
sys 4.50

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 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1213.7+6423 @ 183.437 64.3961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.fits scfile=/scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits outfile=/scratch/kocevski/419001/cmap_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.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=183.437 yref=64.3961 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.fits scfile=/scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits outfile=/scratch/kocevski/419001/cmap_HighResolution_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.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=183.437 yref=64.3961 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419001/Model_4FGL_J1213.7+6423_daily_bin1202.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/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.fits......................!
real 28.57
user 26.98
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.fits', '/scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits', expMap='/scratch/kocevski/419001/expmap_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.fits', expCube='/scratch/kocevski/419001/ltcube_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/419001/Model_4FGL_J1213.7+6423_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1213.7+6423'

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.253e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/419001/ft1_filtered_4FGL_J1213.7+6423_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/419001/ft2_4FGL_J1213.7+6423_daily_bin1202.fits
Exposure map: /scratch/kocevski/419001/expmap_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.fits
Exposure cube: /scratch/kocevski/419001/ltcube_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/419001/Model_4FGL_J1213.7+6423_daily_bin1202.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) = 1850.5919185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7211       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41859E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4912       1.0000         .10000E-03   10000.    
     4 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .32618E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.880       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    68.227       1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .21618E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.703       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8373       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7488       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.727       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0985       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88208       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1850.578     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4341 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7210        4.6378        .16880E-05    .86779E-04
   2  Prefactor     .10000E-03    2119.5       -.10164E-02** at limit **
   3  Prefactor     6.5106        13.149        .23175E-05    .15327E-03
   4  norm          .10000E-03    2.1767       -.86946E-06** at limit **
   5  norm          .10577E-03    4.1276        .14740E-05** at limit **
   6  Prefactor     .10000E-03    31.262       -.51907E-05** at limit **
   7  Prefactor     45.862        39.909       -.48932E-05    .25904E-04
   8  Prefactor     .10000E-03    4.8964        .15235E-06** at limit **
   9  Prefactor     .10000E-03    55.044       -.14770E-04** at limit **
  10  Prefactor     .10000E-03    18.458        .17436E-04** at limit **
  11  Prefactor     .10000E-03    4.5508        .54511E-07** at limit **
  12  norm          68.235        42.821        .21825E-05    .13947E-04
  13  norm          .10000E-03    6.7559       -.31873E-07** at limit **
  14  Prefactor     .10000E-03    4.7455       -.32980E-06** at limit **
  15  Prefactor     .10000E-03    13.753        .72847E-05** at limit **
  16  norm          .10010E-03    3.3410       -.19341E-05** at limit **
  17  Prefactor     .10000E-03    145.59        .87740E-04** at limit **
  18  Prefactor     .10000E-03    19.638        .51923E-06** at limit **
  19  Prefactor     .10000E-03    56.768       -.17198E-04** at limit **
  20  norm          14.703        10.470       -.30612E-06   -.16895E-04
  21  Prefactor     4.8404        12.246       -.96663E-06   -.20292E-04
  22  norm          4.7491        4.5088       -.31625E-06    .14079E-03
  23  Prefactor     .10000E-03    71.788       -.10988E-04** at limit **
  24  Prefactor     .10000E-03    15.343       -.35994E-05** at limit **
  25  Prefactor     .10000E-03    44.461        .14220E-04** at limit **
  26  Prefactor     .10000E-03    34.748        .13628E-04** at limit **
  27  Prefactor     .10000E-03    2.9636       -.67591E-07** at limit **
  28  Prefactor     .10000E-03    20.637       -.16689E-04** at limit **
  29  Prefactor     13.719        13.808        .17657E-06    .16872E-03
  30  Prefactor     .10000E-03    243.38       -.12861E-03** at limit **
  31  Normalizat    1.0985        .30411        .14711E-05    .47396E-03
  32  Prefactor     .88199        .35526       -.53907E-06    .36488E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.72101
  Prefactor  = 0.0001
  Prefactor  = 6.51064
  norm       = 0.000100002
  norm       = 0.00010577
  Prefactor  = 0.0001
  Prefactor  = 45.8621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 68.2347
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7026
  Prefactor  = 4.84037
  norm       = 4.74914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7186
  Prefactor  = 0.0001
  Normalizat = 1.09849
  Prefactor  = 0.881992
 **********
 **   18 **HESSE 
 **********

 FCN=   1850.578     FROM HESSE     STATUS=OK           643 CALLS     4984 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7210        4.6434        .89562E-04   -1.5273    
   2  Prefactor     .10000E-03    2118.5        .19437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5106        11.467        .15752E-03   -1.5198    
   4  norm          .10000E-03    3.3445        .10586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10577E-03    136.35        .14865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.862        39.921        .59193E-04   -1.4352    
   8  Prefactor     .10000E-03    4.9116        .92966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    55.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.463        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5612        .89618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          68.235        42.776        .48594E-04   -1.4054    
  13  norm          .10000E-03    6.9608        .21815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7475        .91532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.754        .15585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10010E-03    14.057        .15137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    145.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.703        10.468        .10445E-03   -1.4941    
  21  Prefactor     4.8404        12.211        .18290E-03   -1.5268    
  22  norm          4.7491        4.5068        .84304E-04   -1.5272    
  23  Prefactor     .10000E-03    71.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.376        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    44.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    34.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.9717        .72314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.719        13.801        .10811E-03   -1.4967    
  30  Prefactor     .10000E-03    243.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0985        .35070        .21642E-03   -.89800    
  32  Prefactor     .88199        .41085        .28204E-03   -.96773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89661e-08
Minuit parameter uncertainties:
  1  4.64373
  2  0.00080196
  3  11.4713
  4  0.000148723
  5  0.0562255
  6  0.000242977
  7  39.9442
  8  1.0673e-05
  9  9.93977e-05
  10  6.02019e-06
  11  6.61424e-06
  12  42.7953
  13  2.87017e-05
  14  1.95513e-06
  15  2.15102e-06
  16  0.00232913
  17  0.000118162
  18  7.47644e-06
  19  8.70317e-07
  20  10.4691
  21  12.2169
  22  4.50716
  23  2.95702e-06
  24  1.46164e-05
  25  1.61273e-06
  26  4.06979e-06
  27  4.85908e-07
  28  5.39555e-06
  29  13.8045
  30  0.00049885
  31  0.35145
  32  0.412302
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.000e-04  7.476e-06  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.820e-01  4.123e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.098e+00  3.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.437 64.396
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/419001/likelihoodResults_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.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) = 1850.57835346
delta logL = -0.000242065015527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1850.57811319
delta logL = -1.79813264367e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8493       1.0000          .0000       10.000    
     3 'Normalizat'    1.0985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88200       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+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=   1850.578     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      265 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10655E-03    12.925        .14681E-01** at limit **
   2  Index         2.7264        5.3567        .50000        .24683E-04
   3  Normalizat    1.0985        .69327E-02    .21642E-03   -.17770E-03
   4  Prefactor     .88199        .82286E-02    .28204E-03   -.11699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106551
  Index      = 2.72638
  Normalizat = 1.09849
  Prefactor  = 0.88199
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10655E-03    131.30        .15622E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7264        8.1502        .50000       -.47206    
   3  Normalizat    1.0985        .22287E-01    .43283E-04   -.89800    
   4  Prefactor     .88199        .26453E-01    .56408E-04   -.96773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.60144e-09
Minuit parameter uncertainties:
  1  0.0587868
  2  385.449
  3  0.0222869
  4  0.026453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419001': 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) = 1850.57811269
delta logL = -1.2946818515e-06

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.066e-04  5.879e-02  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.726e+00  3.854e+02  0.000e+00  1.000e+01 (-1.000e+00)
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.820e-01  2.645e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.098e+00  2.229e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.437 64.396

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/419001/cmap_HighResolution_550886401_551145601_4FGL_J1213.7+6423_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.61e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-05 04:42:57.967285', job_id='419001', GAL2='0.88', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630842177.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-1.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1202' AND source_name='4FGL J1213.7+6423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:42:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 419001: <4FGL_J1213.7+6423_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1213.7+6423_daily_bin1202> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 04:27:00 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:27:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:27:02 2021
Terminated at Sun Sep  5 04:42:58 2021
Results reported at Sun Sep  5 04:42:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_daily_bin1202 183.437 64.3961 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1213.7+6423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   552.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

