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


Performing analysis on: 4FGL_J1213.7+6423_daily_bin54
RA = 183.437, Dec = 64.3961
tmin = 253324801, tmax = 253584001
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='412008', job_status='RUN', time_executed='2021-09-05 04:09:35.553008', time_epoch_executed='1630840175.55' WHERE source_name='4FGL J1213.7+6423' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412008/ft1_4FGL_J1213.7+6423_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412008/ft1_4FGL_J1213.7+6423_daily_bin54.fits outfile=/scratch/kocevski/412008/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin54.fits ra=183.437 dec=64.3961 rad=12.0 tmin=253324801.0 tmax=253584001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.14
user 0.95
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.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/412008/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.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.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/412008/ltcube_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.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/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits
.....................!
real 9.74
user 9.40
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/412008/ltcube_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.fits outfile=/scratch/kocevski/412008/expmap_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.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/412008/ltcube_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.fits
.....................!
real 150.87
user 147.07
sys 3.48

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/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.fits scfile=/scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits outfile=/scratch/kocevski/412008/cmap_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.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.88
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.fits scfile=/scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits outfile=/scratch/kocevski/412008/cmap_HighResolution_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.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 2.96
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412008/Model_4FGL_J1213.7+6423_daily_bin54.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/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.fits.....................!
real 42.48
user 41.30
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.fits', '/scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits', expMap='/scratch/kocevski/412008/expmap_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.fits', expCube='/scratch/kocevski/412008/ltcube_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412008/Model_4FGL_J1213.7+6423_daily_bin54.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/412008/ft1_filtered_4FGL_J1213.7+6423_daily_bin54.fits
Spacecraft file(s): /scratch/kocevski/412008/ft2_4FGL_J1213.7+6423_daily_bin54.fits
Exposure map: /scratch/kocevski/412008/expmap_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.fits
Exposure cube: /scratch/kocevski/412008/ltcube_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412008/Model_4FGL_J1213.7+6423_daily_bin54.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) = 4975.75530989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.004       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .34073       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8518       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6875       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4566       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.616       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    91.986       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3308       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0214       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11259E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.157       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.586       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12061E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0902       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .75350       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=   4975.751     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4290 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .79636        .27296E-07** at limit **
   2  Prefactor     38.664        124.55       -.99653E-05   -.23529E-03
   3  Prefactor     .10000E-03    1.8185        .57771E-07** at limit **
   4  norm          .34082        .41751       -.93572E-07   -.36077E-03
   5  norm          .10000E-03    .73191       -.55463E-06** at limit **
   6  Prefactor     .10000E-03    1.9233       -.61259E-06** at limit **
   7  Prefactor     .10000E-03    7.0605        .14191E-06** at limit **
   8  Prefactor     4.8490        6.0343        .43547E-06   -.31255E-04
   9  Prefactor     .10000E-03    7.1637        .10359E-06** at limit **
  10  Prefactor     .10000E-03    9.3517       -.37229E-06** at limit **
  11  Prefactor     2.6864        4.8931        .11224E-04   -.67514E-03
  12  norm          .10000E-03    3.5895       -.13834E-07** at limit **
  13  norm          5.1688        4.3976        .14700E-05   -.19785E-03
  14  Prefactor     .10000E-03    6.7656       -.39321E-06** at limit **
  15  Prefactor     .10000E-03    14.726       -.10430E-06** at limit **
  16  norm          1.4560        1.7508        .25566E-06   -.23007E-04
  17  Prefactor     69.706        76.006        .22942E-05    .21424E-03
  18  Prefactor     .10000E-03    12.548        .26930E-06** at limit **
  19  Prefactor     91.978        74.311        .11263E-06   -.23846E-04
  20  norm          1.3301        4.1093        .71171E-06   -.89211E-04
  21  Prefactor     .10000E-03    2.0026        .74889E-07** at limit **
  22  norm          2.0216        1.6811        .27430E-07   -.17067E-04
  23  Prefactor     .10000E-03    48.300        .61975E-06** at limit **
  24  Prefactor     13.149        12.889        .55971E-06   -.26090E-04
  25  Prefactor     22.550        73.288        .10665E-05   -.81480E-04
  26  Prefactor     .10000E-03    16.475       -.16185E-06** at limit **
  27  Prefactor     .10000E-03    4.5853        .12694E-05** at limit **
  28  Prefactor     .10000E-03    22.604       -.34353E-06** at limit **
  29  Prefactor     .10000E-03    11.214        .13672E-06** at limit **
  30  Prefactor     .10000E-03    26.414        .19600E-06** at limit **
  31  Normalizat    1.0903        .16866       -.62384E-06   -.32528E-03
  32  Prefactor     .75333        .18988       -.35949E-05   -.11010E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 38.6638
  Prefactor  = 0.0001
  norm       = 0.340819
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.84903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.68635
  norm       = 0.0001
  norm       = 5.16881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45597
  Prefactor  = 69.706
  Prefactor  = 0.0001
  Prefactor  = 91.9785
  norm       = 1.33015
  Prefactor  = 0.0001
  norm       = 2.02157
  Prefactor  = 0.0001
  Prefactor  = 13.1491
  Prefactor  = 22.5503
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09033
  Prefactor  = 0.753329
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.751     FROM HESSE     STATUS=OK           647 CALLS     4937 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .79896        .61472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.664        125.09        .32089E-03   -1.4464    
   3  Prefactor     .10000E-03    1.8323        .92779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .34082        .38976        .48587E-03   -1.5591    
   5  norm          .10000E-03    .74479        .58835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9398        .95463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8490        6.0480        .18263E-03   -1.5268    
   9  Prefactor     .10000E-03    7.1674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6864        4.8996        .10011E-02   -1.5380    
  12  norm          .10000E-03    3.5901        .13052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1688        4.3889        .65165E-03   -1.5253    
  14  Prefactor     .10000E-03    6.8388        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4560        1.7282        .98695E-04   -1.5467    
  17  Prefactor     69.706        76.013        .24055E-03   -1.4036    
  18  Prefactor     .10000E-03    12.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     91.978        74.304        .41900E-04   -1.3787    
  20  norm          1.3301        4.0619        .24061E-03   -1.5477    
  21  Prefactor     .10000E-03    2.0059        .97470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0216        1.6851        .80701E-04   -1.5424    
  23  Prefactor     .10000E-03    48.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.149        12.895        .11043E-03   -1.4983    
  25  Prefactor     22.550        72.935        .84283E-04   -1.4758    
  26  Prefactor     .10000E-03    16.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    12.283        .28623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    11.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    26.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0903        .19479        .20450E-03   -.90063    
  32  Prefactor     .75333        .21963        .27675E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46713e-09
Minuit parameter uncertainties:
  1  1.2434e-06
  2  125.954
  3  3.19603e-06
  4  0.389766
  5  1.10086e-06
  6  3.5083e-06
  7  1.61844e-05
  8  6.04876
  9  1.95611e-05
  10  6.66023e-05
  11  4.90035
  12  2.16073e-06
  13  4.38916
  14  5.83381e-05
  15  1.05784e-05
  16  1.72831
  17  76.1191
  18  3.35892e-05
  19  74.3794
  20  4.06274
  21  1.93559e-06
  22  1.6851
  23  0.000160892
  24  12.8974
  25  73.2253
  26  2.57534e-05
  27  0.000298605
  28  2.15149e-06
  29  1.54756e-06
  30  6.03703e-05
  31  0.194921
  32  0.219888
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.000e-04  3.359e-05  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:  7.533e-01  2.199e-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.090e+00  1.949e-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: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412008/likelihoodResults_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.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) = 4975.75156188
delta logL = -0.00037860131124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4975.75118328
delta logL = 1.17506715469e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4685       1.0000          .0000       10.000    
     3 'Normalizat'    1.0903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75333       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4975.751     FROM MIGRAD    STATUS=FAILED        92 CALLS      248 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    772.16        .18142E-02** at limit **
   2  Index         2.3965        6.0856        .50000        .69106E-06
   3  Normalizat    1.0903        .35113E-01    .20450E-03    .59484E-05
   4  Prefactor     .75333        .40340E-01    .27675E-03    .20540E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4975.751     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      402 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    772.16        .62318E-03** at limit **
   2  Index         2.3965        6.0856        .10973E-04    .69106E-06
   3  Normalizat    1.0903        .35113E-01    .27298E-06    .59484E-05
   4  Prefactor     .75333        .40340E-01    .27215E-06    .20540E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4975.751     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      436 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6346.3        .36285E-03** at limit **
   2  Index         2.3520        8.8179        .50000       -.50045E-07
   3  Normalizat    1.0903        .13662        .81800E-05    .13620E-04
   4  Prefactor     .75333        .15559        .11070E-04    .80106E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.35203
  Normalizat = 1.09033
  Prefactor  = 0.753327
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.751     FROM HESSE     STATUS=OK            29 CALLS      465 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.382        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3520        8.7039        .50000       -.55812    
   3  Normalizat    1.0903        .18702        .16360E-05   -.90063    
   4  Prefactor     .75333        .21493        .22140E-05   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4904e-11
Minuit parameter uncertainties:
  1  0.000240947
  2  442.677
  3  0.187133
  4  0.215167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412008': 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) = 4975.75118326
delta logL = 2.61297827819e-08

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.000e-04  2.409e-04  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.352e+00  4.427e+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:  7.533e-01  2.152e-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.090e+00  1.871e-01  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/412008/cmap_HighResolution_253324801_253584001_4FGL_J1213.7+6423_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-05 04:21:18.442628', job_id='412008', GAL2='0.75', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630840878.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='54' AND source_name='4FGL J1213.7+6423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:21:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 412008: <4FGL_J1213.7+6423_daily_bin54> in cluster <slac> Done

Job <4FGL_J1213.7+6423_daily_bin54> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 04:05:43 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:05:45 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:05:45 2021
Terminated at Sun Sep  5 04:21:19 2021
Results reported at Sun Sep  5 04:21:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_daily_bin54 183.437 64.3961 253324801 253584001 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 :                                   698.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

