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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1039
RA = 186.228, Dec = 21.3814
tmin = 508636801, tmax = 508896001
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='601701', job_status='RUN', time_executed='2021-09-05 13:33:38.876696', time_epoch_executed='1630874018.88' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601701/ft1_4FGL_J1224.9+2122_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601701/ft2_4FGL_J1224.9+2122_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601701/ft1_4FGL_J1224.9+2122_daily_bin1039.fits outfile=/scratch/kocevski/601701/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1039.fits ra=186.228 dec=21.3814 rad=12.0 tmin=508636801.0 tmax=508896001.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.69
user 3.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601701/ft1_filtered_4FGL_J1224.9+2122_daily_bin1039.fits" evtable="EVENTS" scfile=/scratch/kocevski/601701/ft2_4FGL_J1224.9+2122_daily_bin1039.fits sctable="SC_DATA" outfile=/scratch/kocevski/601701/ltcube_508636801_508896001_4FGL_J1224.9+2122_daily_bin1039.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/601701/ft2_4FGL_J1224.9+2122_daily_bin1039.fits
.....................!
real 11.75
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601701/ft1_filtered_4FGL_J1224.9+2122_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/601701/ft2_4FGL_J1224.9+2122_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/601701/ltcube_508636801_508896001_4FGL_J1224.9+2122_daily_bin1039.fits outfile=/scratch/kocevski/601701/expmap_508636801_508896001_4FGL_J1224.9+2122_daily_bin1039.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/601701/ltcube_508636801_508896001_4FGL_J1224.9+2122_daily_bin1039.fits
.....................!
real 190.78
user 185.30
sys 5.12

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/601701/ft1_filtered_4FGL_J1224.9+2122_daily_bin1039.fits scfile=/scratch/kocevski/601701/ft2_4FGL_J1224.9+2122_daily_bin1039.fits outfile=/scratch/kocevski/601701/cmap_508636801_508896001_4FGL_J1224.9+2122_daily_bin1039.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/601701/ft1_filtered_4FGL_J1224.9+2122_daily_bin1039.fits scfile=/scratch/kocevski/601701/ft2_4FGL_J1224.9+2122_daily_bin1039.fits outfile=/scratch/kocevski/601701/cmap_HighResolution_508636801_508896001_4FGL_J1224.9+2122_daily_bin1039.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1593       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0033       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.538       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11540E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1028       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7109       1.0000         .10000E-03   10000.    
    10 'norm      '    9.6948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4710       1.0000         .10000E-03   10000.    
    14 'norm      '    .56502       1.0000         .10000E-03   10000.    
    15 'norm      '    11.896       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18550E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.147       1.0000         .10000E-03   10000.    
    19 'Prefactor '    101.03       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0790       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7244       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.202       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91561       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89073       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=   5983.391     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2913 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0350        .42192E-07** at limit **
   2  Prefactor     .10000E-03    16.454       -.17988E-06** at limit **
   3  Prefactor     2.1595        1.6394        .55142E-07   -.16891E-03
   4  norm          3.0034        1.4977        .64450E-07   -.25317E-03
   5  Prefactor     33.524        22.894       -.47444E-05   -.20919E-04
   6  Prefactor     .10000E-03    1.0408       -.15395E-07** at limit **
   7  Prefactor     .10000E-03    64.683        .13793E-05** at limit **
   8  Prefactor     5.1027        3.3888        .11849E-05   -.17600E-03
   9  Prefactor     7.7108        4.0492        .15895E-06   -.15883E-03
  10  norm          9.6914        3.8029        .93083E-07   -.15783E-03
  11  Prefactor     .10000E-03    1.4891        .22293E-06** at limit **
  12  Prefactor     .10000E-03    1.2328       -.19943E-06** at limit **
  13  Prefactor     3.4708        5.6825        .14921E-05   -.38481E-03
  14  norm          .56503        .29659       -.58142E-07   -.14114E-02
  15  norm          11.895        6.2727        .88790E-06   -.26889E-04
  16  Prefactor     .10001E-03    18.236       -.13502E-05** at limit **
  17  Prefactor     .10000E-03    3.4798       -.28561E-07** at limit **
  18  Prefactor     49.164        30.812        .11515E-04    .22165E-04
  19  Prefactor     101.02        80.771       -.39267E-05   -.17855E-05
  20  Prefactor     2.0780        8.5917       -.11301E-05   -.37999E-03
  21  Prefactor     2.7246        10.615       -.97235E-06   -.20173E-03
  22  norm          .10000E-03    1.5081        .38266E-07** at limit **
  23  norm          16.204        17.272       -.28984E-07    .54136E-05
  24  Normalizat    .91565        .19173       -.15587E-05    .15705E-04
  25  Prefactor     .89074        .18115       -.70683E-06   -.13744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15954
  norm       = 3.00336
  Prefactor  = 33.5244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.10265
  Prefactor  = 7.71083
  norm       = 9.69142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.47077
  norm       = 0.565025
  norm       = 11.8949
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 49.1641
  Prefactor  = 101.022
  Prefactor  = 2.07799
  Prefactor  = 2.72463
  norm       = 0.0001
  norm       = 16.2038
  Normalizat = 0.915651
  Prefactor  = 0.89074
 **********
 **   18 **HESSE 
 **********

 FCN=   5983.391     FROM HESSE     STATUS=OK           433 CALLS     3346 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1595        1.6356        .83089E-04   -1.5414    
   4  norm          3.0034        1.4956        .63613E-04   -1.5361    
   5  Prefactor     33.524        22.962        .69194E-04   -1.4549    
   6  Prefactor     .10000E-03    1.0437        .77042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    64.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1027        3.3709        .10506E-03   -1.5256    
   9  Prefactor     7.7108        4.0428        .10206E-03   -1.5153    
  10  norm          9.6914        3.6041        .86259E-04   -1.5085    
  11  Prefactor     .10000E-03    3.0280        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8835        .16453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4708        5.6367        .21316E-03   -1.5335    
  14  norm          .56503        .29167        .28442E-04   -1.5558    
  15  norm          11.895        6.2777        .11615E-03   -1.5018    
  16  Prefactor     .10001E-03    18.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4879        .14091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.164        30.578        .57201E-04   -1.4304    
  19  Prefactor     101.02        80.853        .39999E-04   -1.3694    
  20  Prefactor     2.0780        8.6594        .28642E-03   -1.5420    
  21  Prefactor     2.7246        10.654        .24672E-03   -1.5378    
  22  norm          .10000E-03    1.5203        .92732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.204        17.274        .99502E-04   -1.4903    
  24  Normalizat    .91565        .21707        .26605E-03   -.95912    
  25  Prefactor     .89074        .20554        .26671E-03   -.96465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41968e-09
Minuit parameter uncertainties:
  1  7.3214e-06
  2  5.59506e-05
  3  1.63563
  4  1.49559
  5  22.9679
  6  1.50384e-06
  7  0.000255582
  8  3.37101
  9  4.04296
  10  3.60414
  11  4.04417e-05
  12  3.21946e-05
  13  5.63752
  14  0.29167
  15  6.27804
  16  0.000755367
  17  9.4875e-07
  18  30.5876
  19  80.9418
  20  8.48581
  21  10.6614
  22  4.76841e-06
  23  17.2793
  24  0.21728
  25  0.205718
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.650e-01  2.917e-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:  8.907e-01  2.057e-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:  9.157e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.96
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.55e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.71e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5982.76650676
delta logL = 0.624134895303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5982.76360384
delta logL = 0.627037811186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53203       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8845       1.0000          .0000       5.0000    
     3 'Normalizat'    .85965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93172       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=   5982.764     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      222 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53203        4.1551        .54866E-02    .25407E-02
   2  alpha         2.8845        3.7526        .33689        .49525E-04
   3  Normalizat    .85965        .78168E-01    .44384E-01    .25330E-04
   4  Prefactor     .93171        .99214E-01    .45408E-01   -.75131E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.532033
  alpha      = 2.88446
  Normalizat = 0.859654
  Prefactor  = 0.931715
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.764     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53203        .29822        .24530E-04   -1.5562    
   2  alpha         2.8845        .61480        .13795E-01    .15440    
   3  Normalizat    .85965        .21278        .27338E-03   -.97893    
   4  Prefactor     .93171        .20785        .26148E-03   -.95042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95088e-11
Minuit parameter uncertainties:
  1  0.298225
  2  0.621331
  3  0.212987
  4  0.208026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601701': 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) = 5982.76360384
delta logL = 0.62703781141

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.320e-01  2.982e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.884e+00  6.213e-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:  9.317e-01  2.080e-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.597e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.28
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.88 +/- 0.62
Photon Flux (Free Index): 1.39e-07 +/- 6.99e-08
Energy Flux (Free Index): 2.94e-05 +/- 1.41e-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/601701/cmap_HighResolution_508636801_508896001_4FGL_J1224.9+2122_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.55e-08', energy_flux2='2.94e-05', photon_flux_error='4.93e-08', dlogl='6.27e-01', energy_flux='3.32e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-05 13:44:04.159513', photon_index_error2='0.62', photon_index2='2.88', ts='5.96', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.92', time_epoch_completed='1630874644.16', return_code='0', job_id='601701', GAL2='0.93', EG2='0.86', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='6.99e-08', ts2='7.28', photon_index='2.28' WHERE bin_id='1039' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 601701: <4FGL_J1224.9+2122_daily_bin1039> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1039> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:07 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:08 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:31:08 2021
Terminated at Sun Sep  5 13:44:04 2021
Results reported at Sun Sep  5 13:44:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1039 186.228 21.3814 508636801 508896001 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 :                                   620.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

