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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin971
RA = 185.627, Dec = 4.2389
tmin = 491011201, tmax = 491270401
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='540321', job_status='RUN', time_executed='2021-09-05 10:26:04.708999', time_epoch_executed='1630862764.71' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540321/ft1_4FGL_J1222.5+0414_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540321/ft2_4FGL_J1222.5+0414_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540321/ft1_4FGL_J1222.5+0414_daily_bin971.fits outfile=/scratch/kocevski/540321/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin971.fits ra=185.627 dec=4.2389 rad=12.0 tmin=491011201.0 tmax=491270401.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.55
user 3.34
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540321/ft1_filtered_4FGL_J1222.5+0414_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/540321/ft2_4FGL_J1222.5+0414_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/540321/ltcube_491011201_491270401_4FGL_J1222.5+0414_daily_bin971.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/540321/ft2_4FGL_J1222.5+0414_daily_bin971.fits
.....................!
real 11.82
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540321/ft1_filtered_4FGL_J1222.5+0414_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/540321/ft2_4FGL_J1222.5+0414_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/540321/ltcube_491011201_491270401_4FGL_J1222.5+0414_daily_bin971.fits outfile=/scratch/kocevski/540321/expmap_491011201_491270401_4FGL_J1222.5+0414_daily_bin971.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/540321/ltcube_491011201_491270401_4FGL_J1222.5+0414_daily_bin971.fits
.....................!
real 190.86
user 186.48
sys 4.07

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/540321/ft1_filtered_4FGL_J1222.5+0414_daily_bin971.fits scfile=/scratch/kocevski/540321/ft2_4FGL_J1222.5+0414_daily_bin971.fits outfile=/scratch/kocevski/540321/cmap_491011201_491270401_4FGL_J1222.5+0414_daily_bin971.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540321/ft1_filtered_4FGL_J1222.5+0414_daily_bin971.fits scfile=/scratch/kocevski/540321/ft2_4FGL_J1222.5+0414_daily_bin971.fits outfile=/scratch/kocevski/540321/cmap_HighResolution_491011201_491270401_4FGL_J1222.5+0414_daily_bin971.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1664       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.266       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.264       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.471       1.0000         .10000E-03   10000.    
    12 'norm      '    .98498E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18889       1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.420       1.0000         .10000E-03   10000.    
    15 'norm      '    32.970       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0108       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4535       1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.433       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9681       1.0000         .10000E-03   10000.    
    21 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .58185E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1802       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97263       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=   7317.210     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3554 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0913        .73725E-08** at limit **
   2  Prefactor     .10000E-03    36.450       -.17100E-05** at limit **
   3  Prefactor     3.0250        7.2665       -.46619E-06   -.21902E-04
   4  Prefactor     7.1667        8.4894        .49531E-06    .60711E-04
   5  Prefactor     .10000E-03    6.2902       -.34299E-06** at limit **
   6  Prefactor     5.4491        12.277        .10319E-05    .32017E-04
   7  Prefactor     17.029        72.642        .12643E-04    .19817E-04
   8  Prefactor     .10000E-03    15.999        .26169E-06** at limit **
   9  Prefactor     12.261        18.242       -.13148E-06    .45081E-04
  10  Prefactor     .10000E-03    13.394       -.24015E-06** at limit **
  11  Prefactor     11.493        13.280        .60259E-07    .21376E-03
  12  norm          .10019E-03    1.2851       -.20020E-06** at limit **
  13  norm          .20018        1.6751       -.64037E-06    .82876E-03
  14  Prefactor     61.352        41.740       -.28008E-05   -.15943E-04
  15  norm          32.946        34.526       -.15621E-05    .42580E-04
  16  Prefactor     .10000E-03    69.773        .19555E-05** at limit **
  17  norm          2.0103        .67192        .51395E-07    .15331E-02
  18  Prefactor     2.4504        12.234        .38526E-05    .38750E-04
  19  Prefactor     54.429        38.016       -.68232E-06    .15296E-04
  20  Prefactor     8.9669        7.3933       -.23757E-07    .67703E-04
  21  norm          .10000E-03    .63125        .10299E-06** at limit **
  22  Prefactor     .10000E-03    2.3741       -.22397E-07** at limit **
  23  Prefactor     .10000E-03    144.90       -.93331E-05** at limit **
  24  Prefactor     .10000E-03    22.437       -.74783E-06** at limit **
  25  norm          .10000E-03    12.730        .12965E-06** at limit **
  26  Prefactor     .10000E-03    27.502        .98467E-06** at limit **
  27  Normalizat    1.1802        .20226        .90732E-07    .22526E-03
  28  Prefactor     .97264        .15941       -.83633E-08    .20616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02504
  Prefactor  = 7.16672
  Prefactor  = 0.0001
  Prefactor  = 5.44914
  Prefactor  = 17.0292
  Prefactor  = 0.0001
  Prefactor  = 12.2607
  Prefactor  = 0.0001
  Prefactor  = 11.4927
  norm       = 0.000100193
  norm       = 0.200184
  Prefactor  = 61.3522
  norm       = 32.9462
  Prefactor  = 0.0001
  norm       = 2.0103
  Prefactor  = 2.45043
  Prefactor  = 54.4293
  Prefactor  = 8.96694
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18018
  Prefactor  = 0.972641
 **********
 **   18 **HESSE 
 **********

 FCN=   7317.210     FROM HESSE     STATUS=OK           531 CALLS     4085 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0250        7.2432        .23363E-03   -1.5360    
   4  Prefactor     7.1667        8.4972        .74921E-03   -1.5172    
   5  Prefactor     .10000E-03    6.3055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4491        12.295        .86052E-03   -1.5241    
   7  Prefactor     17.029        72.764        .96389E-04   -1.4882    
   8  Prefactor     .10000E-03    16.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.261        18.208        .11439E-03   -1.5008    
  10  Prefactor     .10000E-03    13.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.493        14.274        .11829E-03   -1.5030    
  12  norm          .10019E-03    3.9803        .29583E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .20018        7.2778        .18824E-02   -1.5619    
  14  Prefactor     61.352        41.844        .51199E-04   -1.4140    
  15  norm          32.946        35.475        .69786E-04   -1.4559    
  16  Prefactor     .10000E-03    69.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0103        .65961        .35285E-04   -1.5424    
  18  Prefactor     2.4504        12.376        .13057E-02   -1.5395    
  19  Prefactor     54.429        38.091        .54367E-04   -1.4231    
  20  Prefactor     8.9669        7.3898        .13384E-03   -1.5109    
  21  norm          .10000E-03    1.0146        .12929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.3816        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    148.63        .42160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    12.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    28.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1802        .23939        .28108E-03   -.87217    
  28  Prefactor     .97264        .18782        .25339E-03   -.93647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58931e-09
Minuit parameter uncertainties:
  1  8.45826e-07
  2  5.13039e-05
  3  7.24526
  4  8.49866
  5  2.73826e-05
  6  12.3007
  7  70.548
  8  2.74364e-06
  9  18.2165
  10  1.3212e-05
  11  14.2783
  12  0.00175499
  13  2.41376
  14  41.8642
  15  35.4981
  16  0.000136326
  17  0.659616
  18  11.0172
  19  38.1082
  20  7.39058
  21  3.61262e-06
  22  5.53615e-07
  23  0.000147019
  24  2.13514e-05
  25  3.69978e-07
  26  4.00226e-05
  27  0.239609
  28  0.187948
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.002e-01  2.414e+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.726e-01  1.879e-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.180e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/540321/likelihoodResults_491011201_491270401_4FGL_J1222.5+0414_daily_bin971.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) = 7317.19283029
delta logL = 0.0168915726626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7317.18333663
delta logL = 0.0263852421986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47552       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0162       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97048       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=   7317.183     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      225 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47579        1.4646       -.19464E-05    .77193E-03
   2  alpha         2.0140        1.3581        .23583E-04    .63009E-04
   3  Normalizat    1.1809        .19051        .10791E-06    .53662E-04
   4  Prefactor     .97051        .15842        .21989E-06    .44822E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.475794
  alpha      = 2.01401
  Normalizat = 1.18092
  Prefactor  = 0.970511
 **********
 **   18 **HESSE 
 **********

 FCN=   7317.183     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47579        2.2045        .24485E-03   -1.5570    
   2  alpha         2.0140        1.9174        .55723E-01   -.19564    
   3  Normalizat    1.1809        .22416        .28097E-03   -.87194    
   4  Prefactor     .97051        .18655        .25359E-03   -.93719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44615e-09
Minuit parameter uncertainties:
  1  2.04823
  2  2.20128
  3  0.224341
  4  0.186674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540321': 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) = 7317.18333575
delta logL = 0.0263861148123

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.758e-01  2.048e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.014e+00  2.201e+00  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:  9.705e-01  1.867e-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.181e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 185.627 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/540321/cmap_HighResolution_491011201_491270401_4FGL_J1222.5+0414_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-05 10:41:03.483933', job_id='540321', GAL2='0.97', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630863663.48', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.64e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='971' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 540321: <4FGL_J1222.5+0414_daily_bin971> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin971> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:25:45 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:25:46 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:25:46 2021
Terminated at Sun Sep  5 10:41:04 2021
Results reported at Sun Sep  5 10:41:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin971 185.627 4.2389 491011201 491270401 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 :                                   894.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

