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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin613
RA = 185.627, Dec = 4.2389
tmin = 398217601, tmax = 398476801
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='537248', job_status='RUN', time_executed='2021-09-05 10:16:13.937041', time_epoch_executed='1630862173.94' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537248

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537248/ft1_4FGL_J1222.5+0414_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537248/ft2_4FGL_J1222.5+0414_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537248/ft1_4FGL_J1222.5+0414_daily_bin613.fits outfile=/scratch/kocevski/537248/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin613.fits ra=185.627 dec=4.2389 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.52
user 6.18
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537248/ft2_4FGL_J1222.5+0414_daily_bin613.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/537248/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin613.fits evtable="EVENTS" outfile="/scratch/kocevski/537248/ft1_filtered_4FGL_J1222.5+0414_daily_bin613.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537248/ft1_filtered_4FGL_J1222.5+0414_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/537248/ft2_4FGL_J1222.5+0414_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/537248/ltcube_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.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/537248/ft2_4FGL_J1222.5+0414_daily_bin613.fits
.....................!
real 11.11
user 10.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537248/ft1_filtered_4FGL_J1222.5+0414_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/537248/ft2_4FGL_J1222.5+0414_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/537248/ltcube_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.fits outfile=/scratch/kocevski/537248/expmap_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.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/537248/ltcube_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.fits
.....................!
real 190.42
user 185.73
sys 4.20

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/537248/ft1_filtered_4FGL_J1222.5+0414_daily_bin613.fits scfile=/scratch/kocevski/537248/ft2_4FGL_J1222.5+0414_daily_bin613.fits outfile=/scratch/kocevski/537248/cmap_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537248/ft1_filtered_4FGL_J1222.5+0414_daily_bin613.fits scfile=/scratch/kocevski/537248/ft2_4FGL_J1222.5+0414_daily_bin613.fits outfile=/scratch/kocevski/537248/cmap_HighResolution_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537248/ft1_filtered_4FGL_J1222.5+0414_daily_bin613.fits', '/scratch/kocevski/537248/ft2_4FGL_J1222.5+0414_daily_bin613.fits', expMap='/scratch/kocevski/537248/expmap_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.fits', expCube='/scratch/kocevski/537248/ltcube_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537248/Model_4FGL_J1222.5+0414_daily_bin613.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/537248/ft1_filtered_4FGL_J1222.5+0414_daily_bin613.fits
Spacecraft file(s): /scratch/kocevski/537248/ft2_4FGL_J1222.5+0414_daily_bin613.fits
Exposure map: /scratch/kocevski/537248/expmap_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.fits
Exposure cube: /scratch/kocevski/537248/ltcube_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537248/Model_4FGL_J1222.5+0414_daily_bin613.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) = 4880.66700806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9078       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.763       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.398       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6034       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.348       1.0000         .10000E-03   10000.    
    12 'norm      '    .10291E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7562       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.246       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6066       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21250E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .71067       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4225       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=   4880.662     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3506 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9027        26.227       -.35666E-06   -.28400E-04
   2  Prefactor     .10000E-03    55.837       -.43021E-05** at limit **
   3  Prefactor     6.2745        8.4457       -.51725E-07   -.50173E-04
   4  Prefactor     .10000E-03    4.4102       -.35090E-08** at limit **
   5  Prefactor     17.368        19.863       -.11505E-06   -.13454E-04
   6  Prefactor     .10000E-03    8.1860        .11074E-08** at limit **
   7  Prefactor     .10000E-03    30.554        .26509E-05** at limit **
   8  Prefactor     36.768        37.496        .22775E-05    .47636E-05
   9  Prefactor     20.398        24.755       -.30878E-06   -.11816E-04
  10  Prefactor     1.5969        157.82       -.11599E-04   -.38691E-04
  11  Prefactor     10.358        13.382       -.80566E-07   -.68228E-04
  12  norm          .10000E-03    2.3837        .23879E-07** at limit **
  13  norm          .10000E-03    2.0103        .25666E-06** at limit **
  14  Prefactor     .10000E-03    15.704        .68156E-06** at limit **
  15  norm          .10000E-03    33.854       -.74589E-05** at limit **
  16  Prefactor     .10000E-03    124.55       -.21337E-04** at limit **
  17  norm          1.7562        .70287        .17034E-08   -.50552E-03
  18  Prefactor     19.834        19.172        .32267E-07   -.30289E-04
  19  Prefactor     16.247        33.977        .85132E-07   -.15225E-04
  20  Prefactor     .10000E-03    5.9216       -.32286E-08** at limit **
  21  norm          3.6066        2.0011       -.77728E-08   -.16973E-03
  22  Prefactor     .10038E-03    7.1203        .81582E-06** at limit **
  23  Prefactor     .10000E-03    11.529       -.18591E-06** at limit **
  24  Prefactor     .10000E-03    59.690        .63842E-05** at limit **
  25  norm          .10000E-03    22.477       -.49685E-05** at limit **
  26  Prefactor     .10000E-03    26.100        .74761E-05** at limit **
  27  Normalizat    .71056        .25602       -.56918E-06   -.10876E-03
  28  Prefactor     1.4226        .21379        .35860E-06   -.14000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.90269
  Prefactor  = 0.0001
  Prefactor  = 6.27452
  Prefactor  = 0.0001
  Prefactor  = 17.3684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7677
  Prefactor  = 20.398
  Prefactor  = 1.59686
  Prefactor  = 10.3576
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75616
  Prefactor  = 19.834
  Prefactor  = 16.2468
  Prefactor  = 0.0001
  norm       = 3.60658
  Prefactor  = 0.000100382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.710557
  Prefactor  = 1.4226
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.662     FROM HESSE     STATUS=OK           523 CALLS     4029 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9027        26.226        .18156E-03   -1.5265    
   2  Prefactor     .10000E-03    55.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2745        8.4395        .16025E-03   -1.5207    
   4  Prefactor     .10000E-03    4.4248        .14326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.368        19.868        .96106E-04   -1.4874    
   6  Prefactor     .10000E-03    8.2017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.768        37.505        .66099E-04   -1.4494    
   9  Prefactor     20.398        24.732        .88683E-04   -1.4804    
  10  Prefactor     1.5969        159.85        .33472E-03   -1.5455    
  11  Prefactor     10.358        12.344        .12456E-03   -1.5064    
  12  norm          .10000E-03    5.1414        .19241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.5482        .18430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    33.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    123.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7562        .68827        .34224E-04   -1.5443    
  18  Prefactor     19.834        19.137        .89935E-04   -1.4817    
  19  Prefactor     16.247        33.918        .99369E-04   -1.4902    
  20  Prefactor     .10000E-03    5.9452        .16600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6066        1.9982        .70149E-04   -1.5328    
  22  Prefactor     .10038E-03    112.28        .35455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    59.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    22.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .71056        .29401        .36133E-03   -1.0348    
  28  Prefactor     1.4226        .24967        .22778E-03   -.79731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29806e-09
Minuit parameter uncertainties:
  1  22.6937
  2  4.1407e-06
  3  8.44109
  4  1.95356e-06
  5  19.8758
  6  1.74852e-07
  7  1.91107e-06
  8  37.5285
  9  24.7449
  10  32.0412
  11  12.3466
  12  6.40302e-06
  13  5.39401e-05
  14  4.32281e-06
  15  1.19223e-05
  16  3.87119e-05
  17  0.688277
  18  19.1428
  19  33.9582
  20  2.48136e-06
  21  1.99822
  22  0.0131231
  23  1.21626e-06
  24  4.72968e-05
  25  7.16453e-06
  26  7.61794e-05
  27  0.294662
  28  0.249884
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  5.394e-05  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.423e+00  2.499e-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:  7.106e-01  2.947e-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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537248/likelihoodResults_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.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) = 4880.66236852
delta logL = -0.000499940301779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4880.66186877
delta logL = -1.91831531993e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6822       1.0000          .0000       5.0000    
     3 'Normalizat'    .71051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4227       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=   4880.662     FROM MIGRAD    STATUS=FAILED        99 CALLS      273 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    1961.4        .18442E-02** at limit **
   2  alpha         2.6412        3.2456        .50000        .30650E-06
   3  Normalizat    .71056        .16573        .36133E-03   -.13938E-04
   4  Prefactor     1.4226        .14261        .22778E-03   -.18207E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4880.662     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      454 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    1961.4        .52350E-03** at limit **
   2  alpha         2.6412        3.2456        .30313E-05    .30650E-06
   3  Normalizat    .71056        .16573        .57143E-06   -.13938E-04
   4  Prefactor     1.4226        .14261        .10074E-06   -.18207E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4880.662     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      488 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    10.319        .36884E-03** at limit **
   2  alpha         2.6466        3.5742        .50000        .49511E-06
   3  Normalizat    .71056        .28528        .14453E-04   -.62927E-05
   4  Prefactor     1.4226        .24711        .45556E-04   -.69376E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100018
  alpha      = 2.64664
  Normalizat = 0.710558
  Prefactor  = 1.4226
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.662     FROM HESSE     STATUS=OK            29 CALLS      517 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    9.6934        .73769E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6466        3.8203        .50000        .58690E-01
   3  Normalizat    .71056        .28527        .28906E-05   -1.0348    
   4  Prefactor     1.4226        .24712        .91113E-05   -.79731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38975e-09
Minuit parameter uncertainties:
  1  0.000837573
  2  208.093
  3  0.285865
  4  0.247328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537248': 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) = 4880.66186856
delta logL = 1.75095919985e-08

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  8.376e-04  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.647e+00  2.081e+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.423e+00  2.473e-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:  7.106e-01  2.859e-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/537248/cmap_HighResolution_398217601_398476801_4FGL_J1222.5+0414_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-05 10:28:14.447625', job_id='537248', GAL2='1.42', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630862894.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='1.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='613' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:28:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 537248: <4FGL_J1222.5+0414_daily_bin613> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin613> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:16:00 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:16:03 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:16:03 2021
Terminated at Sun Sep  5 10:28:15 2021
Results reported at Sun Sep  5 10:28:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin613 185.627 4.2389 398217601 398476801 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 :                                   715.43 sec.
    Max Memory :                                 1053 MB
    Average Memory :                             292.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            735 sec.

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

