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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1305
RA = 186.228, Dec = 21.3814
tmin = 577584001, tmax = 577843201
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='603258', job_status='RUN', time_executed='2021-09-05 13:39:52.391021', time_epoch_executed='1630874392.39' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603258/ft1_4FGL_J1224.9+2122_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603258/ft2_4FGL_J1224.9+2122_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603258/ft1_4FGL_J1224.9+2122_daily_bin1305.fits outfile=/scratch/kocevski/603258/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1305.fits ra=186.228 dec=21.3814 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.80
user 2.56
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603258/ft1_filtered_4FGL_J1224.9+2122_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/603258/ft2_4FGL_J1224.9+2122_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/603258/ltcube_577584001_577843201_4FGL_J1224.9+2122_daily_bin1305.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/603258/ft2_4FGL_J1224.9+2122_daily_bin1305.fits
.....................!
real 12.59
user 12.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603258/ft1_filtered_4FGL_J1224.9+2122_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/603258/ft2_4FGL_J1224.9+2122_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/603258/ltcube_577584001_577843201_4FGL_J1224.9+2122_daily_bin1305.fits outfile=/scratch/kocevski/603258/expmap_577584001_577843201_4FGL_J1224.9+2122_daily_bin1305.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/603258/ltcube_577584001_577843201_4FGL_J1224.9+2122_daily_bin1305.fits
.....................!
real 190.48
user 184.78
sys 5.34

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/603258/ft1_filtered_4FGL_J1224.9+2122_daily_bin1305.fits scfile=/scratch/kocevski/603258/ft2_4FGL_J1224.9+2122_daily_bin1305.fits outfile=/scratch/kocevski/603258/cmap_577584001_577843201_4FGL_J1224.9+2122_daily_bin1305.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603258/ft1_filtered_4FGL_J1224.9+2122_daily_bin1305.fits scfile=/scratch/kocevski/603258/ft2_4FGL_J1224.9+2122_daily_bin1305.fits outfile=/scratch/kocevski/603258/cmap_HighResolution_577584001_577843201_4FGL_J1224.9+2122_daily_bin1305.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.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.738       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11756E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6313       1.0000         .10000E-03   10000.    
     4 'norm      '    .90829       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13446E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.8067       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1814       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34614       1.0000         .10000E-03   10000.    
    15 'norm      '    9.5544       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    82.520       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.788       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.4840       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0770       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74675       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=   5231.084     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3554 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.733        24.443       -.67648E-06   -.25013E-04
   2  Prefactor     .10001E-03    8.2397        .52036E-06** at limit **
   3  Prefactor     1.6303        2.5734        .20636E-06   -.14167E-03
   4  norm          .90808        .77456        .13551E-07   -.25274E-04
   5  Prefactor     .10000E-03    32.718        .21237E-06** at limit **
   6  Prefactor     .10000E-03    1.1282        .27482E-07** at limit **
   7  Prefactor     .10000E-03    114.43       -.25483E-05** at limit **
   8  Prefactor     .10000E-03    2.0598        .13924E-06** at limit **
   9  Prefactor     .10000E-03    1.7155        .14631E-06** at limit **
  10  norm          7.8067        3.3348       -.30126E-09    .28618E-06
  11  Prefactor     7.1814        2.9486       -.37571E-08    .45023E-05
  12  Prefactor     4.5159        2.2421       -.97302E-08   -.28210E-05
  13  Prefactor     .10000E-03    1.5275        .14908E-07** at limit **
  14  norm          .34607        .27680        .36895E-07   -.41234E-03
  15  norm          9.5541        4.1295       -.19445E-07    .13250E-04
  16  Prefactor     1.1593        141.47        .30281E-04   -.45079E-04
  17  Prefactor     .10000E-03    2.4103        .25321E-07** at limit **
  18  Prefactor     82.751        73.634       -.76610E-05   -.15040E-03
  19  Prefactor     .10000E-03    22.127        .44707E-08** at limit **
  20  Prefactor     .10000E-03    7.8283        .61377E-07** at limit **
  21  Prefactor     19.813        28.619       -.27155E-05   -.79978E-04
  22  norm          .10000E-03    1.6140       -.10751E-06** at limit **
  23  norm          6.5351        26.583       -.42377E-05   -.42821E-04
  24  Normalizat    1.0772        .20034        .65829E-06   -.13786E-03
  25  Prefactor     .74660        .19163       -.81819E-06   -.50366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7333
  Prefactor  = 0.00010001
  Prefactor  = 1.63031
  norm       = 0.908084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.8067
  Prefactor  = 7.18137
  Prefactor  = 4.51588
  Prefactor  = 0.0001
  norm       = 0.346071
  norm       = 9.55407
  Prefactor  = 1.15926
  Prefactor  = 0.0001
  Prefactor  = 82.7505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8129
  norm       = 0.0001
  norm       = 6.53515
  Normalizat = 1.07715
  Prefactor  = 0.746597
 **********
 **   18 **HESSE 
 **********

 FCN=   5231.084     FROM HESSE     STATUS=OK           429 CALLS     3983 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.733        24.140        .78961E-04   -1.4693    
   2  Prefactor     .10001E-03    29.725        .39868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6303        2.5088        .12364E-03   -1.5453    
   4  norm          .90808        .74016        .56564E-03   -1.5517    
   5  Prefactor     .10000E-03    32.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1305        .75009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    114.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1428        .20250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7352        .92454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.8067        3.3416        .77885E-04   -1.5149    
  11  Prefactor     7.1814        2.9551        .71913E-04   -1.5172    
  12  Prefactor     4.5159        2.2430        .71841E-04   -1.5283    
  13  Prefactor     .10000E-03    1.5300        .87281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34607        .26875        .31789E-04   -1.5590    
  15  norm          9.5541        4.1282        .93486E-04   -1.5090    
  16  Prefactor     1.1593        144.46        .40259E-03   -1.5493    
  17  Prefactor     .10000E-03    2.4126        .10965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     82.751        74.169        .44217E-04   -1.3886    
  19  Prefactor     .10000E-03    22.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.813        28.819        .90039E-04   -1.4817    
  22  norm          .10000E-03    1.6268        .89664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5351        26.951        .15761E-03   -1.5197    
  24  Normalizat    1.0772        .23146        .24359E-03   -.90489    
  25  Prefactor     .74660        .22110        .28854E-03   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08417e-10
Minuit parameter uncertainties:
  1  24.1494
  2  0.00109807
  3  2.50897
  4  0.740169
  5  5.57043e-05
  6  1.52362e-06
  7  0.000332845
  8  8.9873e-06
  9  5.82598e-06
  10  3.34167
  11  2.9552
  12  2.24303
  13  5.07222e-07
  14  0.268752
  15  4.1283
  16  25.945
  17  1.08317e-06
  18  74.2524
  19  7.78747e-06
  20  7.17559e-06
  21  28.8389
  22  9.55946e-06
  23  26.5633
  24  0.231678
  25  0.221359
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.461e-01  2.688e-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:  7.466e-01  2.214e-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.077e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.85e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/603258/likelihoodResults_577584001_577843201_4FGL_J1224.9+2122_daily_bin1305.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) = 5230.97469072
delta logL = 0.109415205547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5230.97054668
delta logL = 0.113559246634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36032       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6011       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76152       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=   5230.971     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36031        7.7692        .66861E-02    .10390E-02
   2  alpha         2.6005        2.8003        .41194       -.29975E-05
   3  Normalizat    1.0563        .94539E-01    .40189E-01    .20627E-04
   4  Prefactor     .76096        .13939        .64658E-01   -.23295E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.36031
  alpha      = 2.60054
  Normalizat = 1.05635
  Prefactor  = 0.76096
 **********
 **   18 **HESSE 
 **********

 FCN=   5230.971     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36031        .26605        .30182E-04   -1.5588    
   2  alpha         2.6005        .70324        .16304E-01    .40228E-01
   3  Normalizat    1.0563        .22330        .24567E-03   -.91166    
   4  Prefactor     .76096        .22146        .28603E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65281e-11
Minuit parameter uncertainties:
  1  0.266051
  2  0.71288
  3  0.223497
  4  0.221716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603258': 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) = 5230.9705426
delta logL = 0.113563324063

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.603e-01  2.661e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.601e+00  7.129e-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:  7.610e-01  2.217e-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.056e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.76
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.60 +/- 0.71
Photon Flux (Free Index): 7.56e-08 +/- 6.21e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.42e-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/603258/cmap_HighResolution_577584001_577843201_4FGL_J1224.9+2122_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-05', comment='SUCCESS', photon_flux='5.85e-08', energy_flux2='1.91e-05', photon_flux_error='4.54e-08', dlogl='1.14e-01', energy_flux='2.03e-05', photon_flux2='7.56e-08', job_status='DONE', time_completed='2021-09-05 13:51:38.200697', photon_index_error2='0.71', photon_index2='2.60', ts='2.56', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.42e-05', EG='1.08', time_epoch_completed='1630875098.2', return_code='0', job_id='603258', GAL2='0.76', EG2='1.06', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='6.21e-08', ts2='2.76', photon_index='2.28' WHERE bin_id='1305' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 603258: <4FGL_J1224.9+2122_daily_bin1305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1305 186.228 21.3814 577584001 577843201 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

