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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin873
RA = 185.627, Dec = 4.2389
tmin = 465609601, tmax = 465868801
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='538716', job_status='RUN', time_executed='2021-09-05 10:23:28.493793', time_epoch_executed='1630862608.49' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538716/ft1_4FGL_J1222.5+0414_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538716/ft1_4FGL_J1222.5+0414_daily_bin873.fits outfile=/scratch/kocevski/538716/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin873.fits ra=185.627 dec=4.2389 rad=12.0 tmin=465609601.0 tmax=465868801.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.52
user 3.29
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.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/538716/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin873.fits evtable="EVENTS" outfile="/scratch/kocevski/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/538716/ltcube_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.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/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits
.....................!
real 14.53
user 14.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/538716/ltcube_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.fits outfile=/scratch/kocevski/538716/expmap_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.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/538716/ltcube_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.fits
.....................!
real 190.99
user 185.32
sys 5.25

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

Setting source of interest to:
4FGL J1222.5+0414 @ 185.627 4.2389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.fits scfile=/scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits outfile=/scratch/kocevski/538716/cmap_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.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=185.627 yref=4.2389 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.fits scfile=/scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits outfile=/scratch/kocevski/538716/cmap_HighResolution_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.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=185.627 yref=4.2389 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538716/Model_4FGL_J1222.5+0414_daily_bin873.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/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.fits.....................!
real 52.84
user 50.91
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.fits', '/scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits', expMap='/scratch/kocevski/538716/expmap_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.fits', expCube='/scratch/kocevski/538716/ltcube_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538716/Model_4FGL_J1222.5+0414_daily_bin873.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1222.5+0414'

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.414e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/538716/ft1_filtered_4FGL_J1222.5+0414_daily_bin873.fits
Spacecraft file(s): /scratch/kocevski/538716/ft2_4FGL_J1222.5+0414_daily_bin873.fits
Exposure map: /scratch/kocevski/538716/expmap_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.fits
Exposure cube: /scratch/kocevski/538716/ltcube_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538716/Model_4FGL_J1222.5+0414_daily_bin873.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) = 5892.90576735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.079       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0672       1.0000         .10000E-03   10000.    
    12 'norm      '    .98039       1.0000         .10000E-03   10000.    
    13 'norm      '    .28312E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    143.58       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5273       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4775       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.123       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2611       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7606       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.209       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11133E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.330       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .69704       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.5222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5892.900     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3515 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5977        17.395        .15919E-06    .27802E-05
   2  Prefactor     51.055        113.88       -.73290E-05   -.11644E-03
   3  Prefactor     7.3884        9.8549        .30511E-06   -.31042E-04
   4  Prefactor     .10000E-03    5.2423       -.18944E-07** at limit **
   5  Prefactor     .10000E-03    13.414        .82305E-06** at limit **
   6  Prefactor     1.8779        62.962        .43046E-06   -.25278E-04
   7  Prefactor     .10000E-03    29.903        .26414E-05** at limit **
   8  Prefactor     .10000E-03    14.085       -.75442E-06** at limit **
   9  Prefactor     .10000E-03    19.745       -.59966E-06** at limit **
  10  Prefactor     .10000E-03    29.124        .89154E-06** at limit **
  11  Prefactor     6.0669        10.210        .31617E-05   -.50500E-03
  12  norm          .98051        2.2290       -.69391E-06   -.10412E-02
  13  norm          .10025E-03    2.0242        .46366E-06** at limit **
  14  Prefactor     .10000E-03    14.576       -.55953E-06** at limit **
  15  norm          .10000E-03    26.472       -.23996E-05** at limit **
  16  Prefactor     143.59        152.62        .49853E-06   -.51791E-05
  17  norm          3.5275        .83240       -.43373E-07   -.11531E-02
  18  Prefactor     2.4756        8.7000        .58545E-06   -.85667E-04
  19  Prefactor     .10000E-03    17.808        .17371E-05** at limit **
  20  Prefactor     13.122        11.003       -.16128E-07   -.84918E-05
  21  norm          1.2608        1.8661        .18795E-06   -.36040E-03
  22  Prefactor     8.7572        11.473        .91731E-07   -.26826E-04
  23  Prefactor     30.207        35.459       -.58239E-06   -.62933E-04
  24  Prefactor     .10000E-03    26.634       -.22742E-05** at limit **
  25  norm          .10000E-03    66.823       -.98686E-06** at limit **
  26  Prefactor     14.330        12.602        .50594E-06   -.17506E-03
  27  Normalizat    .69688        .24170        .32711E-06   -.11815E-03
  28  Prefactor     1.5224        .20076       -.41270E-06   -.89931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.59766
  Prefactor  = 51.0545
  Prefactor  = 7.38845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87786
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.06692
  norm       = 0.980513
  norm       = 0.000100249
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 143.585
  norm       = 3.52747
  Prefactor  = 2.47558
  Prefactor  = 0.000100001
  Prefactor  = 13.1222
  norm       = 1.26076
  Prefactor  = 8.75717
  Prefactor  = 30.2069
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 14.3298
  Normalizat = 0.696877
  Prefactor  = 1.52243
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.900     FROM HESSE     STATUS=OK           519 CALLS     4034 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5977        17.389        .14544E-03   -1.5157    
   2  Prefactor     51.055        118.03        .56114E-04   -1.4278    
   3  Prefactor     7.3884        9.8394        .14757E-03   -1.5164    
   4  Prefactor     .10000E-03    5.2835        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8779        63.126        .30355E-03   -1.5434    
   7  Prefactor     .10000E-03    30.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0669        10.936        .81501E-03   -1.5215    
  12  norm          .98051        1.8667        .16511E-02   -1.5510    
  13  norm          .10025E-03    37.624        .19553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    26.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     143.59        151.91        .33624E-04   -1.3306    
  17  norm          3.5275        .81036        .30554E-04   -1.5332    
  18  Prefactor     2.4756        8.6979        .25975E-03   -1.5393    
  19  Prefactor     .10000E-03    17.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.122        10.996        .11057E-03   -1.4983    
  21  norm          1.2608        1.8419        .11882E-03   -1.5483    
  22  Prefactor     8.7572        11.467        .13542E-03   -1.5116    
  23  Prefactor     30.207        35.488        .72897E-04   -1.4608    
  24  Prefactor     .10000E-03    26.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    68.886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.330        12.691        .52903E-03   -1.4951    
  27  Normalizat    .69688        .27310        .36742E-03   -1.0402    
  28  Prefactor     1.5224        .23178        .23136E-03   -.76913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75089e-09
Minuit parameter uncertainties:
  1  17.4002
  2  118.571
  3  9.84152
  4  6.25269e-07
  5  0.000101824
  6  21.7998
  7  0.000565378
  8  9.75625e-05
  9  0.000106094
  10  0.00016438
  11  10.9396
  12  1.8668
  13  0.00612048
  14  9.04189e-05
  15  0.000499798
  16  152.322
  17  0.81036
  18  8.70235
  19  0.000273773
  20  10.9979
  21  1.84195
  22  11.47
  23  35.5133
  24  0.000467312
  25  0.000278907
  26  12.6937
  27  0.27363
  28  0.231943
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.002e-04  6.120e-03  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.522e+00  2.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  6.969e-01  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538716/likelihoodResults_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.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) = 5892.90015374
delta logL = -0.000126856898532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5892.90003025
delta logL = -3.36875291396e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20211E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1008       1.0000          .0000       5.0000    
     3 'Normalizat'    .69667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+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=   5892.900     FROM MIGRAD    STATUS=FAILED       100 CALLS      445 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10181E-03    6673.2        .18062E-02** at limit **
   2  alpha         2.7465        3.8732        .17106       -.31942E-06
   3  Normalizat    .69688        .63430E-01    .36742E-03   -.32985E-04
   4  Prefactor     1.5224        .56499E-01    .23136E-03   -.41424E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5892.900     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      601 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10181E-03    6673.2        .10494E-02** at limit **
   2  alpha         2.7465        3.8732        .30606E-05   -.31942E-06
   3  Normalizat    .69688        .63430E-01    .10515E-06   -.32985E-04
   4  Prefactor     1.5224        .56499E-01    .56479E-07   -.41424E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5892.900     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      639 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    45.517        .36123E-03** at limit **
   2  alpha         2.7541        3.5475        .68422E-01   -.74770E-08
   3  Normalizat    .69688        .25229        .14697E-04    .20113E-05
   4  Prefactor     1.5224        .22652        .46271E-04    .91890E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.75413
  Normalizat = 0.696878
  Prefactor  = 1.52243
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.900     FROM HESSE     STATUS=OK            23 CALLS      662 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    39.555        .72246E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7541        2.7258        .27369E-02    .10183    
   3  Normalizat    .69688        .25245        .29393E-05   -1.0402    
   4  Prefactor     1.5224        .22664        .92543E-05   -.76913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02375e-13
Minuit parameter uncertainties:
  1  2.29708e-05
  2  250.475
  3  0.252869
  4  0.226791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538716': 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) = 5892.90002684
delta logL = 4.18212948716e-08

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  2.297e-05  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.754e+00  2.505e+02  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.522e+00  2.268e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  6.969e-01  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.627 4.239

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/538716/cmap_HighResolution_465609601_465868801_4FGL_J1222.5+0414_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-05', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-05 10:37:12.187697', job_id='538716', GAL2='1.52', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630863432.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.52', dlogl='4.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='873' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:37:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 538716: <4FGL_J1222.5+0414_daily_bin873> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin873> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:20:52 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:20:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:20:54 2021
Terminated at Sun Sep  5 10:37:12 2021
Results reported at Sun Sep  5 10:37:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin873 185.627 4.2389 465609601 465868801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1222.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   820.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

