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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1134
RA = 186.228, Dec = 21.3814
tmin = 533260801, tmax = 533520001
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='603000', job_status='RUN', time_executed='2021-09-05 13:38:35.034446', time_epoch_executed='1630874315.03' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603000

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603000/ft1_4FGL_J1224.9+2122_daily_bin1134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603000/ft2_4FGL_J1224.9+2122_daily_bin1134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603000/ft1_4FGL_J1224.9+2122_daily_bin1134.fits outfile=/scratch/kocevski/603000/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1134.fits ra=186.228 dec=21.3814 rad=12.0 tmin=533260801.0 tmax=533520001.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.81
user 4.14
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/603000/ft2_4FGL_J1224.9+2122_daily_bin1134.fits sctable="SC_DATA" expcube=/scratch/kocevski/603000/ltcube_533260801_533520001_4FGL_J1224.9+2122_daily_bin1134.fits outfile=/scratch/kocevski/603000/expmap_533260801_533520001_4FGL_J1224.9+2122_daily_bin1134.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/603000/ltcube_533260801_533520001_4FGL_J1224.9+2122_daily_bin1134.fits
.....................!
real 192.26
user 184.89
sys 5.21

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/603000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1134.fits scfile=/scratch/kocevski/603000/ft2_4FGL_J1224.9+2122_daily_bin1134.fits outfile=/scratch/kocevski/603000/cmap_533260801_533520001_4FGL_J1224.9+2122_daily_bin1134.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 1.13
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603000/ft1_filtered_4FGL_J1224.9+2122_daily_bin1134.fits scfile=/scratch/kocevski/603000/ft2_4FGL_J1224.9+2122_daily_bin1134.fits outfile=/scratch/kocevski/603000/cmap_HighResolution_533260801_533520001_4FGL_J1224.9+2122_daily_bin1134.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.98
user 0.36
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72896       1.0000         .10000E-03   10000.    
     4 'norm      '    43.304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .98261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8324       1.0000         .10000E-03   10000.    
    10 'norm      '    12.776       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .63519       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64923       1.0000         .10000E-03   10000.    
    14 'norm      '    .31515       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1914       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.926       1.0000         .10000E-03   10000.    
    19 'Prefactor '    102.20       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.296       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10811E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54097       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4346       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8311.028     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2895 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1680         .0000    ** at limit **
   2  Prefactor     .10006E-03    18.534         .0000    ** at limit **
   3  Prefactor     .72850        1.5173         .0000        .16728E-02
   4  norm          43.304        3.2999         .0000       -.61521E-02
   5  Prefactor     .10000E-03    5.3273         .0000    ** at limit **
   6  Prefactor     1.2001        4.4320         .0000        .31504E-02
   7  Prefactor     .10002E-03    17.986         .0000    ** at limit **
   8  Prefactor     .98263        1.3471         .0000       -.98365E-04
   9  Prefactor     3.8324        2.6646         .0000       -.43241E-03
  10  norm          12.776        4.0416         .0000       -.95726E-03
  11  Prefactor     4.5057        2.6066         .0000       -.64662E-03
  12  Prefactor     .63529        1.1062         .0000        .16499E-03
  13  Prefactor     .65076        5.3233         .0000        .46993E-01
  14  norm          .31517        .17193         .0000       -.29018E-03
  15  norm          .10000E-03    2.5622         .0000    ** at limit **
  16  Prefactor     5.1909        11.937         .0000        .18814E-03
  17  Prefactor     .10000E-03    2.6518         .0000    ** at limit **
  18  Prefactor     14.927        35.276         .0000       -.52531E-03
  19  Prefactor     102.20        78.319         .0000        .26673E-03
  20  Prefactor     9.2458        5.7653         .0000        .89506E-04
  21  Prefactor     17.296        16.206         .0000        .60376E-03
  22  norm          .10000E-03    1.4324         .0000    ** at limit **
  23  norm          .10002E-03    24.413         .0000    ** at limit **
  24  Normalizat    .54104        .18538         .0000       -.13905E-04
  25  Prefactor     1.4345        .18435         .0000       -.15165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 0.728501
  norm       = 43.3038
  Prefactor  = 0.0001
  Prefactor  = 1.20006
  Prefactor  = 0.000100015
  Prefactor  = 0.982633
  Prefactor  = 3.8324
  norm       = 12.776
  Prefactor  = 4.50565
  Prefactor  = 0.635293
  Prefactor  = 0.650762
  norm       = 0.315171
  norm       = 0.000100001
  Prefactor  = 5.19092
  Prefactor  = 0.000100001
  Prefactor  = 14.9268
  Prefactor  = 102.197
  Prefactor  = 9.24583
  Prefactor  = 17.2955
  norm       = 0.0001
  norm       = 0.000100017
  Normalizat = 0.541039
  Prefactor  = 1.43452
 **********
 **   18 **HESSE 
 **********

 FCN=   8311.028     FROM HESSE     STATUS=OK           427 CALLS     3322 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    19.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72850        1.4035        .15201E-02   -1.5537    
   4  norm          43.304        3.2948        .43867E-04   -1.4391    
   5  Prefactor     .10000E-03    5.3333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2001        4.3558        .32748E-03   -1.5489    
   7  Prefactor     .10002E-03    17.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .98263        1.3429        .52416E-04   -1.5510    
   9  Prefactor     3.8324        2.6593        .11794E-03   -1.5316    
  10  norm          12.776        4.0419        .92927E-04   -1.4993    
  11  Prefactor     4.5057        2.6102        .10148E-03   -1.5283    
  12  Prefactor     .63529        .83397        .12205E-02   -1.5549    
  13  Prefactor     .65076        5.3713        .20133E-02   -1.5547    
  14  norm          .31517        .17186        .26682E-04   -1.5596    
  15  norm          .10000E-03    2.6062        .14226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1909        11.819        .17643E-03   -1.5252    
  17  Prefactor     .10000E-03    2.6562        .14497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.927        34.870        .10367E-03   -1.4935    
  19  Prefactor     102.20        78.293        .39772E-04   -1.3683    
  20  Prefactor     9.2458        5.7625        .13180E-03   -1.5100    
  21  Prefactor     17.296        16.182        .96304E-04   -1.4876    
  22  norm          .10000E-03    1.4543        .10650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    24.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54104        .20896        .37558E-03   -1.1055    
  25  Prefactor     1.4345        .21466        .26049E-03   -.79390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12615e-08
Minuit parameter uncertainties:
  1  0.000110419
  2  0.00207785
  3  1.4036
  4  3.29486
  5  5.36742e-05
  6  4.35699
  7  0.001051
  8  1.34295
  9  2.6594
  10  4.04194
  11  2.61026
  12  0.833981
  13  3.73938
  14  0.171862
  15  0.000103782
  16  11.8245
  17  0.000108964
  18  34.9181
  19  78.3722
  20  5.76281
  21  16.1864
  22  3.99677e-06
  23  0.00130236
  24  0.20926
  25  0.214798
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.152e-01  1.719e-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.435e+00  2.148e-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:  5.410e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.39
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.33e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.01e-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) = 8308.62357236
delta logL = 2.40406667945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8308.61454402
delta logL = 2.413095022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94269E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1945       1.0000          .0000       5.0000    
     3 'Normalizat'    .58461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4151       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=   8308.615     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94261E-01    .72047E-01    .39178E-02   -.94278E-03
   2  alpha         1.1944        .28073        .23074       -.67260E-04
   3  Normalizat    .58463        .16668        .81673E-01    .44305E-04
   4  Prefactor     1.4151        .18097        .59270E-01   -.12737E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0942612
  alpha      = 1.19445
  Normalizat = 0.584626
  Prefactor  = 1.41512
 **********
 **   18 **HESSE 
 **********

 FCN=   8308.615     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94261E-01    .10580        .16979E-04   -1.5647    
   2  alpha         1.1944        .43055        .95610E-02   -.54945    
   3  Normalizat    .58463        .19490        .36179E-03   -1.0864    
   4  Prefactor     1.4151        .21227        .26206E-03   -.79945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30917e-12
Minuit parameter uncertainties:
  1  0.105798
  2  0.433529
  3  0.195127
  4  0.212398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603000': 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) = 8308.614544
delta logL = 2.41309504147

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.426e-02  1.058e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.194e+00  4.335e-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.415e+00  2.124e-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:  5.846e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.11
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.19 +/- 0.43
Photon Flux (Free Index): 1.50e-08 +/- 1.26e-08
Energy Flux (Free Index): 6.69e-05 +/- 6.50e-05

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/603000/cmap_HighResolution_533260801_533520001_4FGL_J1224.9+2122_daily_bin1134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.33e-08', energy_flux2='6.69e-05', photon_flux_error='2.90e-08', dlogl='2.41e+00', energy_flux='1.85e-05', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-09-05 13:51:38.519751', photon_index_error2='0.43', photon_index2='1.19', ts='11.39', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', energy_flux_error2='6.50e-05', EG='0.54', time_epoch_completed='1630875098.52', return_code='0', job_id='603000', GAL2='1.42', EG2='0.58', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='1.26e-08', ts2='16.11', photon_index='2.28' WHERE bin_id='1134' 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@bullet0259>
Subject: Job 603000: <4FGL_J1224.9+2122_daily_bin1134> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1134> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:33 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:35 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:35 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_bin1134 186.228 21.3814 533260801 533520001 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

