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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1425
RA = 186.228, Dec = 21.3814
tmin = 608688001, tmax = 608947201
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='603415', job_status='RUN', time_executed='2021-09-05 13:36:27.998895', time_epoch_executed='1630874188.0' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603415

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603415/ft1_4FGL_J1224.9+2122_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603415/ft1_4FGL_J1224.9+2122_daily_bin1425.fits outfile=/scratch/kocevski/603415/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1425.fits ra=186.228 dec=21.3814 rad=12.0 tmin=608688001.0 tmax=608947201.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.17
user 2.80
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.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/603415/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1425.fits evtable="EVENTS" outfile="/scratch/kocevski/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.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.94
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/603415/ltcube_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.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/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits
.....................!
real 12.79
user 12.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/603415/ltcube_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.fits outfile=/scratch/kocevski/603415/expmap_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.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/603415/ltcube_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.fits
.....................!
real 190.51
user 185.21
sys 4.59

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

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.fits scfile=/scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits outfile=/scratch/kocevski/603415/cmap_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.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=186.228 yref=21.3814 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.58
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.fits scfile=/scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits outfile=/scratch/kocevski/603415/cmap_HighResolution_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.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=186.228 yref=21.3814 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.60
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603415/Model_4FGL_J1224.9+2122_daily_bin1425.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/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.fits.....................!
real 66.98
user 65.25
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.fits', '/scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits', expMap='/scratch/kocevski/603415/expmap_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.fits', expCube='/scratch/kocevski/603415/ltcube_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603415/Model_4FGL_J1224.9+2122_daily_bin1425.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/603415/ft1_filtered_4FGL_J1224.9+2122_daily_bin1425.fits
Spacecraft file(s): /scratch/kocevski/603415/ft2_4FGL_J1224.9+2122_daily_bin1425.fits
Exposure map: /scratch/kocevski/603415/expmap_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.fits
Exposure cube: /scratch/kocevski/603415/ltcube_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603415/Model_4FGL_J1224.9+2122_daily_bin1425.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) = 8111.17827217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6670       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4316       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12695E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1298       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .87217E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    10.665       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.398       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5217       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.670       1.0000         .10000E-03   10000.    
    22 'norm      '    .87204       1.0000         .10000E-03   10000.    
    23 'norm      '    8.9516       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89383       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8111.176     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2939 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.489       -.15392E-04** at limit **
   2  Prefactor     .10015E-03    4.3361        .18227E-05** at limit **
   3  Prefactor     2.6664        1.5955       -.10046E-07    .34890E-03
   4  norm          8.4314        1.4438       -.63946E-08    .52863E-03
   5  Prefactor     .10000E-03    22.141        .14621E-04** at limit **
   6  Prefactor     .10000E-03    1.4260       -.13830E-06** at limit **
   7  Prefactor     50.607        70.394       -.13561E-04   -.61047E-04
   8  Prefactor     .10000E-03    .82427       -.25084E-07** at limit **
   9  Prefactor     .10000E-03    .85180        .35539E-07** at limit **
  10  norm          2.4956        2.3571       -.20732E-06   -.12798E-02
  11  Prefactor     .10008E-03    .98111        .45392E-06** at limit **
  12  Prefactor     3.1298        1.8531        .76437E-09   -.61758E-03
  13  Prefactor     .10000E-03    1.2619        .18794E-07** at limit **
  14  norm          .87257E-01    .13605       -.45456E-07   -.30223E-02
  15  norm          10.665        4.7826       -.40250E-06   -.10826E-03
  16  Prefactor     .10000E-03    5.0286       -.17851E-06** at limit **
  17  Prefactor     13.398        8.2382       -.73539E-07   -.11096E-03
  18  Prefactor     .10000E-03    15.486       -.15687E-04** at limit **
  19  Prefactor     55.632        44.657        .14413E-05   -.13132E-05
  20  Prefactor     6.5225        6.5938       -.46801E-06   -.99890E-04
  21  Prefactor     15.671        18.828        .12797E-06    .48986E-05
  22  norm          .87159        2.0773       -.54810E-06   -.16808E-02
  23  norm          8.9518        10.278        .36579E-07    .25537E-04
  24  Normalizat    .89376        .16974        .52248E-06   -.11695E-03
  25  Prefactor     1.1770        .17075        .25829E-06   -.16005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100148
  Prefactor  = 2.66637
  norm       = 8.43139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.6074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.49564
  Prefactor  = 0.000100076
  Prefactor  = 3.12983
  Prefactor  = 0.0001
  norm       = 0.0872574
  norm       = 10.6649
  Prefactor  = 0.0001
  Prefactor  = 13.3981
  Prefactor  = 0.0001
  Prefactor  = 55.6317
  Prefactor  = 6.52247
  Prefactor  = 15.671
  norm       = 0.871587
  norm       = 8.95182
  Normalizat = 0.893755
  Prefactor  = 1.177
 **********
 **   18 **HESSE 
 **********

 FCN=   8111.176     FROM HESSE     STATUS=OK           433 CALLS     3372 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10015E-03    20.387        .35497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6664        1.5905        .83556E-04   -1.5381    
   4  norm          8.4314        1.4435        .42836E-04   -1.5127    
   5  Prefactor     .10000E-03    22.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8833        .20476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.607        70.794        .56368E-04   -1.4284    
   8  Prefactor     .10000E-03    .84391        .15954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .85974        .81129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4956        2.1718        .11682E-03   -1.5392    
  11  Prefactor     .10008E-03    12.350        .15572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1298        1.8352        .87209E-04   -1.5354    
  13  Prefactor     .10000E-03    1.2632        .98779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .87257E-01    .11329        .39471E-03   -1.5649    
  15  norm          10.665        4.7752        .12269E-03   -1.5055    
  16  Prefactor     .10000E-03    5.0383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.398        8.2171        .10943E-03   -1.4976    
  18  Prefactor     .10000E-03    15.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     55.632        44.643        .53782E-04   -1.4215    
  20  Prefactor     6.5225        6.5672        .15715E-03   -1.5197    
  21  Prefactor     15.671        18.808        .10118E-03   -1.4916    
  22  norm          .87159        1.7408        .19557E-02   -1.5521    
  23  norm          8.9518        10.276        .13396E-03   -1.5109    
  24  Normalizat    .89376        .19566        .27928E-03   -.96680    
  25  Prefactor     1.1770        .20102        .26173E-03   -.87042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41527e-08
Minuit parameter uncertainties:
  1  0.000167481
  2  0.00348066
  3  1.5905
  4  1.44352
  5  1.10158e-05
  6  5.49644e-05
  7  70.912
  8  6.32773e-07
  9  1.05162e-07
  10  2.17189
  11  0.0019338
  12  1.83521
  13  1.0235e-06
  14  0.113289
  15  4.77541
  16  1.59648e-06
  17  8.2178
  18  4.14818e-06
  19  44.6697
  20  6.56788
  21  18.8148
  22  1.74093
  23  10.2782
  24  0.195812
  25  0.201148
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.726e-02  1.133e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.177e+00  2.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.938e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 5.13e-06 +/- 6.65e-06

TS (Fixed Index): 1.11
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603415/likelihoodResults_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.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) = 8111.09088241
delta logL = 0.0853267027042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8111.0871117
delta logL = 0.0890974157137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11022       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9109       1.0000          .0000       5.0000    
     3 'Normalizat'    .87386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1892       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8111.087     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      219 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11021        3.8711        .72587E-02    .27896E-02
   2  alpha         2.9105        3.5114        .41877        .60147E-05
   3  Normalizat    .87387        .45897E-01    .63857E-01    .23369E-04
   4  Prefactor     1.1892        .50451E-01    .58929E-01    .71529E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.110208
  alpha      = 2.91053
  Normalizat = 0.873866
  Prefactor  = 1.18921
 **********
 **   18 **HESSE 
 **********

 FCN=   8111.087     FROM HESSE     STATUS=OK            35 CALLS      254 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11021        .12627        .35000E-03   -1.5642    
   2  alpha         2.9105        1.3824        .41355E-01    .16496    
   3  Normalizat    .87387        .19728        .28245E-03   -.97385    
   4  Prefactor     1.1892        .20393        .26059E-03   -.86664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10779e-12
Minuit parameter uncertainties:
  1  0.126274
  2  1.46744
  3  0.19744
  4  0.204069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603415': 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) = 8111.08711165
delta logL = 0.0890974594176

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.102e-01  1.263e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.911e+00  1.467e+00  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.189e+00  2.041e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.739e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.91 +/- 1.47
Photon Flux (Free Index): 2.95e-08 +/- 4.53e-08
Energy Flux (Free Index): 6.14e-06 +/- 7.18e-06

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/603415/cmap_HighResolution_608688001_608947201_4FGL_J1224.9+2122_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='6.14e-06', photon_flux_error='1.91e-08', dlogl='8.91e-02', energy_flux='5.13e-06', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-05 13:50:41.746367', photon_index_error2='1.47', photon_index2='2.91', ts='1.11', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='6.91e-08', energy_flux_error2='7.18e-06', EG='0.89', time_epoch_completed='1630875041.75', return_code='0', job_id='603415', GAL2='1.19', EG2='0.87', return_code2='0', energy_flux_error='6.65e-06', photon_flux_error2='4.53e-08', ts2='1.30', photon_index='2.28' WHERE bin_id='1425' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 603415: <4FGL_J1224.9+2122_daily_bin1425> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1425> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:08 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:36:09 2021
Terminated at Sun Sep  5 13:50:42 2021
Results reported at Sun Sep  5 13:50:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1425 186.228 21.3814 608688001 608947201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   846.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             365.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

