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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1108
RA = 186.228, Dec = 21.3814
tmin = 526521601, tmax = 526780801
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='602961', job_status='RUN', time_executed='2021-09-05 13:37:56.136522', time_epoch_executed='1630874276.14' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602961/ft1_4FGL_J1224.9+2122_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602961/ft2_4FGL_J1224.9+2122_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602961/ft1_4FGL_J1224.9+2122_daily_bin1108.fits outfile=/scratch/kocevski/602961/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1108.fits ra=186.228 dec=21.3814 rad=12.0 tmin=526521601.0 tmax=526780801.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 4.43
user 4.14
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602961/ft2_4FGL_J1224.9+2122_daily_bin1108.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/602961/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1108.fits evtable="EVENTS" outfile="/scratch/kocevski/602961/ft1_filtered_4FGL_J1224.9+2122_daily_bin1108.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.59
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602961/ft1_filtered_4FGL_J1224.9+2122_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/602961/ft2_4FGL_J1224.9+2122_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/602961/ltcube_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.fits outfile=/scratch/kocevski/602961/expmap_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.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/602961/ltcube_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.fits
.....................!
real 189.21
user 185.14
sys 3.66

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/602961/ft1_filtered_4FGL_J1224.9+2122_daily_bin1108.fits scfile=/scratch/kocevski/602961/ft2_4FGL_J1224.9+2122_daily_bin1108.fits outfile=/scratch/kocevski/602961/cmap_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.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.73
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602961/ft1_filtered_4FGL_J1224.9+2122_daily_bin1108.fits scfile=/scratch/kocevski/602961/ft2_4FGL_J1224.9+2122_daily_bin1108.fits outfile=/scratch/kocevski/602961/cmap_HighResolution_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.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.65
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/602961/ft1_filtered_4FGL_J1224.9+2122_daily_bin1108.fits', '/scratch/kocevski/602961/ft2_4FGL_J1224.9+2122_daily_bin1108.fits', expMap='/scratch/kocevski/602961/expmap_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.fits', expCube='/scratch/kocevski/602961/ltcube_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/602961/Model_4FGL_J1224.9+2122_daily_bin1108.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/602961/ft1_filtered_4FGL_J1224.9+2122_daily_bin1108.fits
Spacecraft file(s): /scratch/kocevski/602961/ft2_4FGL_J1224.9+2122_daily_bin1108.fits
Exposure map: /scratch/kocevski/602961/expmap_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.fits
Exposure cube: /scratch/kocevski/602961/ltcube_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/602961/Model_4FGL_J1224.9+2122_daily_bin1108.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) = 6350.68802045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11695E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.6357       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2758       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4109       1.0000         .10000E-03   10000.    
    10 'norm      '    8.9542       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.838       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9000       1.0000         .10000E-03   10000.    
    14 'norm      '    .31940       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5798       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .64759E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    104.43       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.414       1.0000         .10000E-03   10000.    
    22 'norm      '    5.4361       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0943       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6350.644     FROM MIGRAD    STATUS=CONVERGED   1051 CALLS     3011 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.839        .18142E-02** at limit **
   2  Prefactor     6.1205        8.6157        .16230E-03   -.39926E-04
   3  Prefactor     .10000E-03    3.7751        .15734E-02** at limit **
   4  norm          8.6357        2.0875        .53927E-04   -.18657E-03
   5  Prefactor     7.2782        19.709        .14870E-03   -.30581E-05
   6  Prefactor     .10000E-03    5.1189        .24728E-02** at limit **
   7  Prefactor     .10000E-03    82.792        .18142E-02** at limit **
   8  Prefactor     .10000E-03    3.6254        .21505E-02** at limit **
   9  Prefactor     4.4146        3.5318        .12734E-03    .48977E-03
  10  norm          8.9550        5.5613        .12074E-03    .10311E-03
  11  Prefactor     11.840        4.9184        .93365E-04    .16158E-03
  12  Prefactor     .10000E-03    2.4534        .18295E-02** at limit **
  13  Prefactor     6.9007        6.5133        .15273E-03   -.87163E-04
  14  norm          .31933        .27726        .37947E-03    .31306E-02
  15  norm          3.5801        3.4492        .13994E-03   -.11463E-03
  16  Prefactor     .10000E-03    4.3187        .16145E-02** at limit **
  17  Prefactor     .10000E-03    2.8911        .13229E-02** at limit **
  18  Prefactor     .10000E-03    20.852        .10243    ** at limit **
  19  Prefactor     104.49        77.967        .19675E-03   -.98589E-04
  20  Prefactor     .10000E-03    5.3749        .17966E-02** at limit **
  21  Prefactor     35.408        20.609        .67342E-04   -.27180E-04
  22  norm          5.4359        3.6477        .12080E-03   -.20516E-04
  23  norm          .10000E-03    7.3174        .18142E-02** at limit **
  24  Normalizat    1.1173        .24106        .28164E-03   -.22080E-04
  25  Prefactor     1.0943        .23690        .28706E-03   -.50337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.12046
  Prefactor  = 0.000100002
  norm       = 8.63571
  Prefactor  = 7.27819
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.41462
  norm       = 8.95499
  Prefactor  = 11.8396
  Prefactor  = 0.0001
  Prefactor  = 6.90066
  norm       = 0.319332
  norm       = 3.58007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 104.487
  Prefactor  = 0.0001
  Prefactor  = 35.4075
  norm       = 5.43586
  norm       = 0.0001
  Normalizat = 1.11727
  Prefactor  = 1.09426
 **********
 **   18 **HESSE 
 **********

 FCN=   6350.644     FROM HESSE     STATUS=OK           413 CALLS     3424 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1205        8.6154        .64921E-05   -1.5213    
   3  Prefactor     .10000E-03    3.7952        .31467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6357        2.0875        .21571E-05   -1.5120    
   5  Prefactor     7.2782        19.708        .59480E-05   -1.5168    
   6  Prefactor     .10000E-03    5.1381        .49455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    82.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6336        .43011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4146        3.5304        .50937E-05   -1.5288    
  10  norm          8.9550        5.5619        .48294E-05   -1.5109    
  11  Prefactor     11.840        4.9190        .37346E-05   -1.5020    
  12  Prefactor     .10000E-03    2.4590        .36589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9007        6.5125        .61094E-05   -1.5183    
  14  norm          .31933        .27708        .15179E-04   -1.5595    
  15  norm          3.5801        3.4491        .55976E-05   -1.5330    
  16  Prefactor     .10000E-03    4.3191        .32289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8912        .26457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.108        .11000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     104.49        77.967        .39350E-04   -1.3660    
  20  Prefactor     .10000E-03    5.3766        .35931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.408        20.606        .26937E-05   -1.4517    
  22  norm          5.4359        3.6477        .48320E-05   -1.5242    
  23  norm          .10000E-03    7.3174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1173        .24122        .11266E-04   -.89199    
  25  Prefactor     1.0943        .23708        .11482E-04   -.89650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07018e-09
Minuit parameter uncertainties:
  1  5.90365e-06
  2  8.61716
  3  0.000167059
  4  2.08752
  5  19.7258
  6  0.000151123
  7  0.000297915
  8  3.62376e-06
  9  3.53057
  10  5.56225
  11  4.91919
  12  1.77379e-05
  13  6.51319
  14  0.277076
  15  3.44931
  16  9.96096e-07
  17  3.70485e-06
  18  0.000397708
  19  78.0433
  20  2.84911e-06
  21  20.6103
  22  3.64781
  23  5.07842e-07
  24  0.241457
  25  0.237311
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.193e-01  2.771e-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.094e+00  2.373e-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:  1.117e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.63e-05

TS (Fixed Index): 1.83
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/602961/likelihoodResults_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.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) = 6350.6144908
delta logL = 0.0290897593977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6350.61342555
delta logL = 0.030155010968

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6350.613     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      249 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32604        .27496        .37181E-03   -.62057E-03
   2  alpha         2.4399        .67192        .17255E-01   -.18564E-04
   3  Normalizat    1.1078        .23676        .28271E-03   -.59919E-05
   4  Prefactor     1.1008        .23729        .28633E-03   -.14016E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.32604
  alpha      = 2.43993
  Normalizat = 1.10775
  Prefactor  = 1.1008
 **********
 **   18 **HESSE 
 **********

 FCN=   6350.613     FROM HESSE     STATUS=OK            27 CALLS      276 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32604        .27397        .14873E-04   -1.5594    
   2  alpha         2.4399        .66988        .69019E-03   -.24029E-01
   3  Normalizat    1.1078        .23706        .11308E-04   -.89503    
   4  Prefactor     1.1008        .23747        .11453E-04   -.89441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54251e-11
Minuit parameter uncertainties:
  1  0.273974
  2  0.678169
  3  0.23729
  4  0.237701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602961': 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) = 6350.61342551
delta logL = 0.030155045989

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.260e-01  2.740e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.440e+00  6.782e-01  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.101e+00  2.377e-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:  1.108e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.44 +/- 0.68
Photon Flux (Free Index): 6.10e-08 +/- 5.72e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.55e-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/602961/cmap_HighResolution_526521601_526780801_4FGL_J1224.9+2122_daily_bin1108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-05', comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='1.77e-05', photon_flux_error='4.68e-08', dlogl='3.02e-02', energy_flux='1.88e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-05 13:50:25.011243', photon_index_error2='0.68', photon_index2='2.44', ts='1.83', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.55e-05', EG='1.12', time_epoch_completed='1630875025.01', return_code='0', job_id='602961', GAL2='1.10', EG2='1.11', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='5.72e-08', ts2='1.87', photon_index='2.28' WHERE bin_id='1108' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 602961: <4FGL_J1224.9+2122_daily_bin1108> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1108> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:30 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:31 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:35:31 2021
Terminated at Sun Sep  5 13:50:25 2021
Results reported at Sun Sep  5 13:50:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1108 186.228 21.3814 526521601 526780801 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 :                                   737.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            895 sec.

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

