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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin393
RA = 185.627, Dec = 4.2389
tmin = 341193601, tmax = 341452801
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='536910', job_status='RUN', time_executed='2021-09-05 10:19:16.952009', time_epoch_executed='1630862356.95' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536910

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536910/ft1_4FGL_J1222.5+0414_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536910/ft2_4FGL_J1222.5+0414_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536910/ft1_4FGL_J1222.5+0414_daily_bin393.fits outfile=/scratch/kocevski/536910/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin393.fits ra=185.627 dec=4.2389 rad=12.0 tmin=341193601.0 tmax=341452801.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.41
user 3.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536910/ft1_filtered_4FGL_J1222.5+0414_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/536910/ft2_4FGL_J1222.5+0414_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/536910/ltcube_341193601_341452801_4FGL_J1222.5+0414_daily_bin393.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/536910/ft2_4FGL_J1222.5+0414_daily_bin393.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536910/ft1_filtered_4FGL_J1222.5+0414_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/536910/ft2_4FGL_J1222.5+0414_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/536910/ltcube_341193601_341452801_4FGL_J1222.5+0414_daily_bin393.fits outfile=/scratch/kocevski/536910/expmap_341193601_341452801_4FGL_J1222.5+0414_daily_bin393.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/536910/ltcube_341193601_341452801_4FGL_J1222.5+0414_daily_bin393.fits
.....................!
real 190.70
user 185.20
sys 5.08

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/536910/ft1_filtered_4FGL_J1222.5+0414_daily_bin393.fits scfile=/scratch/kocevski/536910/ft2_4FGL_J1222.5+0414_daily_bin393.fits outfile=/scratch/kocevski/536910/cmap_341193601_341452801_4FGL_J1222.5+0414_daily_bin393.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536910/ft1_filtered_4FGL_J1222.5+0414_daily_bin393.fits scfile=/scratch/kocevski/536910/ft2_4FGL_J1222.5+0414_daily_bin393.fits outfile=/scratch/kocevski/536910/cmap_HighResolution_341193601_341452801_4FGL_J1222.5+0414_daily_bin393.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2869       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2122       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.331       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.870       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.041       1.0000         .10000E-03   10000.    
    14 'Prefactor '    75.398       1.0000         .10000E-03   10000.    
    15 'norm      '    51.475       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .49864       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.719       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1237       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.7367       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .82400       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2069       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17372E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .21954E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3059       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90382       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=   6120.792     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     4026 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.887       -.83355E-06** at limit **
   2  Prefactor     .10000E-03    37.965       -.11771E-05** at limit **
   3  Prefactor     8.2877        9.2049       -.20200E-07   -.47587E-05
   4  Prefactor     .10000E-03    2.1239       -.18658E-07** at limit **
   5  Prefactor     .10000E-03    5.8939        .22149E-07** at limit **
   6  Prefactor     5.2115        14.096       -.65790E-07   -.51195E-05
   7  Prefactor     .10000E-03    22.647        .25228E-06** at limit **
   8  Prefactor     13.325        29.712       -.34554E-06   -.28228E-05
   9  Prefactor     .10000E-03    9.0345       -.27884E-07** at limit **
  10  Prefactor     32.869        30.211        .28309E-08    .37231E-05
  11  Prefactor     .10000E-03    2.8025       -.98173E-08** at limit **
  12  norm          .10000E-03    .55429       -.28852E-08** at limit **
  13  norm          10.041        5.6395       -.66083E-07    .59693E-04
  14  Prefactor     75.400        43.291        .10442E-06    .10907E-04
  15  norm          51.489        58.144        .11396E-05    .25484E-04
  16  Prefactor     .10000E-03    45.813        .40656E-05** at limit **
  17  norm          .49856        .60435       -.31434E-08   -.17182E-03
  18  Prefactor     19.695        17.642        .24432E-05    .69140E-04
  19  Prefactor     1.1757        192.39       -.13619E-04   -.14962E-04
  20  Prefactor     .10000E-03    6.3314       -.80699E-07** at limit **
  21  norm          9.7368        2.5072       -.22931E-07    .64226E-04
  22  Prefactor     .80769        .95369        .23925E-06   -.23949E-02
  23  Prefactor     4.2053        16.969       -.16533E-07   -.10525E-03
  24  Prefactor     .10000E-03    107.60       -.16935E-05** at limit **
  25  norm          .10000E-03    16.672        .89813E-06** at limit **
  26  Prefactor     .10000E-03    35.441       -.26543E-05** at limit **
  27  Normalizat    1.3057        .22302        .28110E-06    .88170E-04
  28  Prefactor     .90395        .17890       -.14959E-06    .86320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.2877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.21152
  Prefactor  = 0.0001
  Prefactor  = 13.325
  Prefactor  = 0.0001
  Prefactor  = 32.8686
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.0405
  Prefactor  = 75.4003
  norm       = 51.4888
  Prefactor  = 0.000100001
  norm       = 0.498561
  Prefactor  = 19.6953
  Prefactor  = 1.17573
  Prefactor  = 0.0001
  norm       = 9.73684
  Prefactor  = 0.807691
  Prefactor  = 4.20526
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3057
  Prefactor  = 0.903949
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.792     FROM HESSE     STATUS=OK           517 CALLS     4543 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2877        9.2088        .13926E-03   -1.5132    
   4  Prefactor     .10000E-03    2.1255        .11134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2115        14.100        .17607E-03   -1.5251    
   7  Prefactor     .10000E-03    22.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.325        29.761        .10971E-03   -1.4978    
   9  Prefactor     .10000E-03    9.0605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.869        30.201        .69892E-04   -1.4561    
  11  Prefactor     .10000E-03    2.8049        .12790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .55498        .56879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.041        5.6066        .11081E-03   -1.5074    
  14  Prefactor     75.400        43.314        .46242E-04   -1.3969    
  15  norm          51.489        58.343        .55899E-04   -1.4272    
  16  Prefactor     .10000E-03    45.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49856        .57264        .58242E-03   -1.5567    
  18  Prefactor     19.695        17.815        .90197E-04   -1.4820    
  19  Prefactor     1.1757        199.35        .44228E-03   -1.5491    
  20  Prefactor     .10000E-03    6.3804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.7368        2.5022        .59433E-04   -1.5084    
  22  Prefactor     .80769        14.779        .25058E-02   -1.5528    
  23  Prefactor     4.2053        16.961        .98238E-03   -1.5298    
  24  Prefactor     .10000E-03    107.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    16.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    36.392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3057        .26047        .27881E-03   -.83396    
  28  Prefactor     .90395        .20908        .27338E-03   -.96003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51233e-08
Minuit parameter uncertainties:
  1  3.62535e-05
  2  8.37956e-05
  3  9.21038
  4  1.37817e-07
  5  1.4172e-07
  6  14.1088
  7  1.36808e-05
  8  29.7944
  9  4.95958e-07
  10  30.2146
  11  2.036e-07
  12  2.63256e-08
  13  5.60693
  14  43.3318
  15  58.4078
  16  0.000326746
  17  0.572646
  18  17.8198
  19  30.7222
  20  1.40504e-06
  21  2.50222
  22  6.91155
  23  16.8989
  24  7.84001e-05
  25  4.06491e-05
  26  4.19453e-05
  27  0.260731
  28  0.209266
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.004e+01  5.607e+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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.039e-01  2.093e-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:  1.306e+00  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.80
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 8.62e-08
Energy Flux (Fixed Index): 3.57e-05 +/- 1.99e-05

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) = 6120.03785458
delta logL = 0.75437813286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6120.01280546
delta logL = 0.779427250054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2277       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0282       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86395       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.

 FCN=   6120.013     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2277        4.6445        .32983E-02    .74730E-02
   2  alpha         2.0281        .37558        .29357       -.24971E-04
   3  Normalizat    1.3723        .21472        .61839E-01   -.31814E-04
   4  Prefactor     .86401        .17776        .44544E-01   -.10515E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.22771
  alpha      = 2.02813
  Normalizat = 1.3723
  Prefactor  = 0.864014
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.013     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2277        5.4559        .11469E-03   -1.5100    
   2  alpha         2.0281        .49165        .11641E-01   -.18989    
   3  Normalizat    1.3723        .25250        .27350E-03   -.81433    
   4  Prefactor     .86401        .20685        .27872E-03   -.97410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76794e-08
Minuit parameter uncertainties:
  1  5.45623
  2  0.495001
  3  0.25273
  4  0.207041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536910': 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) = 6120.01280541
delta logL = 0.779427306667

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  9.228e+00  5.456e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.028e+00  4.950e-01  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:  8.640e-01  2.070e-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:  1.372e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.54
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.03 +/- 0.50
Photon Flux (Free Index): 1.02e-07 +/- 7.05e-08
Energy Flux (Free Index): 4.27e-05 +/- 2.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/536910/cmap_HighResolution_341193601_341452801_4FGL_J1222.5+0414_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='4.27e-05', photon_flux_error='8.62e-08', dlogl='7.79e-01', energy_flux='3.57e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-05 10:31:53.084878', photon_index_error2='0.50', photon_index2='2.03', ts='8.80', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.31', time_epoch_completed='1630863113.08', return_code='0', job_id='536910', GAL2='0.86', EG2='1.37', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='7.05e-08', ts2='10.54', photon_index='2.69' WHERE bin_id='393' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:31:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 536910: <4FGL_J1222.5+0414_daily_bin393> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin393> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:15:32 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:15:34 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:15:34 2021
Terminated at Sun Sep  5 10:31:53 2021
Results reported at Sun Sep  5 10:31:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin393 185.627 4.2389 341193601 341452801 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

