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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1078
RA = 186.228, Dec = 21.3814
tmin = 518745601, tmax = 519004801
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='601763', job_status='RUN', time_executed='2021-09-05 13:34:34.084480', time_epoch_executed='1630874074.08' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601763/ft1_4FGL_J1224.9+2122_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601763/ft2_4FGL_J1224.9+2122_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601763/ft1_4FGL_J1224.9+2122_daily_bin1078.fits outfile=/scratch/kocevski/601763/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1078.fits ra=186.228 dec=21.3814 rad=12.0 tmin=518745601.0 tmax=519004801.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.35
user 4.12
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601763/ft1_filtered_4FGL_J1224.9+2122_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/601763/ft2_4FGL_J1224.9+2122_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/601763/ltcube_518745601_519004801_4FGL_J1224.9+2122_daily_bin1078.fits outfile=/scratch/kocevski/601763/expmap_518745601_519004801_4FGL_J1224.9+2122_daily_bin1078.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/601763/ltcube_518745601_519004801_4FGL_J1224.9+2122_daily_bin1078.fits
.....................!
real 189.52
user 185.07
sys 4.13

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/601763/ft1_filtered_4FGL_J1224.9+2122_daily_bin1078.fits scfile=/scratch/kocevski/601763/ft2_4FGL_J1224.9+2122_daily_bin1078.fits outfile=/scratch/kocevski/601763/cmap_518745601_519004801_4FGL_J1224.9+2122_daily_bin1078.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601763/ft1_filtered_4FGL_J1224.9+2122_daily_bin1078.fits scfile=/scratch/kocevski/601763/ft2_4FGL_J1224.9+2122_daily_bin1078.fits outfile=/scratch/kocevski/601763/cmap_HighResolution_518745601_519004801_4FGL_J1224.9+2122_daily_bin1078.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4516       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.243       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4111       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2630       1.0000         .10000E-03   10000.    
    10 'norm      '    9.3675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8921       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .39116       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0593       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.862       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.619       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .79437E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.448       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4165       1.0000         .10000E-03   10000.    
    23 'norm      '    29.107       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4643       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .52506       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=   6378.140     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2918 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4596        21.202        .14173E-04    .29278E-03
   2  Prefactor     .10000E-03    16.443       -.15973E-05** at limit **
   3  Prefactor     .10000E-03    .95031       -.13116E-05** at limit **
   4  norm          2.9315        1.4074       -.34852E-06    .72911E-04
   5  Prefactor     18.240        14.592       -.56622E-06    .10132E-04
   6  Prefactor     .10000E-03    1.8649       -.41951E-07** at limit **
   7  Prefactor     .10000E-03    29.448       -.96604E-06** at limit **
   8  Prefactor     4.4105        3.5180       -.25865E-06   -.12090E-03
   9  Prefactor     3.2625        3.7879        .21393E-06   -.35706E-03
  10  norm          9.3671        3.8193        .12143E-06    .19959E-04
  11  Prefactor     2.7368        2.2556       -.12187E-06    .96719E-05
  12  Prefactor     3.8917        2.2358       -.10715E-06    .39366E-04
  13  Prefactor     .10000E-03    1.8450       -.29337E-08** at limit **
  14  norm          .39114        .20974       -.44633E-08    .23386E-03
  15  norm          9.0589        4.3257       -.13570E-06    .63110E-04
  16  Prefactor     23.862        17.679        .47199E-05    .24502E-04
  17  Prefactor     12.618        8.9639       -.11599E-06    .83632E-05
  18  Prefactor     26.820        48.557       -.23028E-04   -.16260E-05
  19  Prefactor     .10000E-03    28.937        .24902E-05** at limit **
  20  Prefactor     .10001E-03    4.8238        .60598E-06** at limit **
  21  Prefactor     16.441        20.918       -.55529E-05   -.68251E-05
  22  norm          1.4165        2.2004       -.19424E-06   -.35652E-03
  23  norm          29.107        24.292        .35331E-07   -.41687E-05
  24  Normalizat    1.4646        .20025        .87254E-06    .37750E-03
  25  Prefactor     .52493        .18721        .16963E-05    .18733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.45965
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.93145
  Prefactor  = 18.2404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.41045
  Prefactor  = 3.26245
  norm       = 9.36705
  Prefactor  = 2.73677
  Prefactor  = 3.8917
  Prefactor  = 0.0001
  norm       = 0.391135
  norm       = 9.05885
  Prefactor  = 23.8625
  Prefactor  = 12.6181
  Prefactor  = 26.82
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 16.4415
  norm       = 1.41646
  norm       = 29.1071
  Normalizat = 1.46458
  Prefactor  = 0.52493
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.140     FROM HESSE     STATUS=OK           437 CALLS     3355 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4596        21.005        .14692E-03   -1.5162    
   2  Prefactor     .10000E-03    16.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2912        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9315        1.4070        .62135E-04   -1.5366    
   5  Prefactor     18.240        14.594        .93773E-04   -1.4854    
   6  Prefactor     .10000E-03    1.8798        .10642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4105        3.4883        .11775E-03   -1.5288    
   9  Prefactor     3.2625        3.7479        .14738E-03   -1.5347    
  10  norm          9.3671        3.8199        .90170E-04   -1.5096    
  11  Prefactor     2.7368        2.2587        .99570E-04   -1.5377    
  12  Prefactor     3.8917        2.2357        .85829E-04   -1.5313    
  13  Prefactor     .10000E-03    1.8502        .10591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .39114        .20994        .25634E-04   -1.5583    
  15  norm          9.0589        4.3270        .11094E-03   -1.5106    
  16  Prefactor     23.862        17.595        .82001E-04   -1.4731    
  17  Prefactor     12.618        8.9647        .11276E-03   -1.4997    
  18  Prefactor     26.820        48.121        .77334E-04   -1.4672    
  19  Prefactor     .10000E-03    28.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    17.699        .33710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.441        20.974        .98757E-04   -1.4897    
  22  norm          1.4165        2.1655        .14324E-03   -1.5470    
  23  norm          29.107        24.284        .74261E-04   -1.4628    
  24  Normalizat    1.4646        .23407        .23224E-03   -.78779    
  25  Prefactor     .52493        .21310        .35530E-03   -1.1085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23729e-09
Minuit parameter uncertainties:
  1  21.0261
  2  6.58882e-05
  3  0.000287041
  4  1.40701
  5  14.5971
  6  4.96287e-06
  7  5.92227e-06
  8  3.4885
  9  3.74818
  10  3.82002
  11  2.25876
  12  2.23572
  13  1.4588e-06
  14  0.209939
  15  4.32718
  16  17.5986
  17  8.9657
  18  48.1909
  19  9.26988e-06
  20  0.0010098
  21  20.9834
  22  2.16558
  23  24.2921
  24  0.234238
  25  0.213426
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.911e-01  2.099e-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:  5.249e-01  2.134e-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.465e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.97
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.61e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.23e-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) = 6377.57202925
delta logL = 0.568219577181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6377.57164871
delta logL = 0.568600121009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28367       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7736       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51299       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=   6377.572     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28368        .17545        .55360E-02   -.21638E-03
   2  alpha         1.7736        .33482        .25888       -.39413E-04
   3  Normalizat    1.4905        .19105        .52175E-01   -.37260E-06
   4  Prefactor     .51300        .18469        .81137E-01    .37281E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.283683
  alpha      = 1.77359
  Normalizat = 1.4905
  Prefactor  = 0.513004
 **********
 **   18 **HESSE 
 **********

 FCN=   6377.572     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28368        .22712        .24198E-04   -1.5601    
   2  alpha         1.7736        .47141        .10406E-01   -.29482    
   3  Normalizat    1.4905        .21883        .23067E-03   -.78046    
   4  Prefactor     .51300        .21028        .35941E-03   -1.1138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17679e-09
Minuit parameter uncertainties:
  1  0.22712
  2  0.474512
  3  0.218971
  4  0.210596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601763': 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) = 6377.57164871
delta logL = 0.568600124972

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.837e-01  2.271e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.774e+00  4.745e-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:  5.130e-01  2.106e-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.490e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.08
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.77 +/- 0.47
Photon Flux (Free Index): 3.89e-08 +/- 3.36e-08
Energy Flux (Free Index): 3.35e-05 +/- 2.63e-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/601763/cmap_HighResolution_518745601_519004801_4FGL_J1224.9+2122_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.61e-08', energy_flux2='3.35e-05', photon_flux_error='3.55e-08', dlogl='5.69e-01', energy_flux='2.30e-05', photon_flux2='3.89e-08', job_status='DONE', time_completed='2021-09-05 13:45:35.158919', photon_index_error2='0.47', photon_index2='1.77', ts='11.97', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='1.46', time_epoch_completed='1630874735.16', return_code='0', job_id='601763', GAL2='0.51', EG2='1.49', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.36e-08', ts2='13.08', photon_index='2.28' WHERE bin_id='1078' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 601763: <4FGL_J1224.9+2122_daily_bin1078> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1078 186.228 21.3814 518745601 519004801 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 :                                   656.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            866 sec.

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

