/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 218 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin93
RA = 186.228, Dec = 21.3814
tmin = 263433601, tmax = 263692801
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='597194', job_status='RUN', time_executed='2021-09-05 13:19:46.260997', time_epoch_executed='1630873186.26' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597194

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597194/ft1_4FGL_J1224.9+2122_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597194/ft2_4FGL_J1224.9+2122_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597194/ft1_4FGL_J1224.9+2122_daily_bin93.fits outfile=/scratch/kocevski/597194/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin93.fits ra=186.228 dec=21.3814 rad=12.0 tmin=263433601.0 tmax=263692801.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.50
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597194/ft1_filtered_4FGL_J1224.9+2122_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/597194/ft2_4FGL_J1224.9+2122_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/597194/ltcube_263433601_263692801_4FGL_J1224.9+2122_daily_bin93.fits outfile=/scratch/kocevski/597194/expmap_263433601_263692801_4FGL_J1224.9+2122_daily_bin93.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/597194/ltcube_263433601_263692801_4FGL_J1224.9+2122_daily_bin93.fits
.....................!
real 190.49
user 185.30
sys 4.82

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/597194/ft1_filtered_4FGL_J1224.9+2122_daily_bin93.fits scfile=/scratch/kocevski/597194/ft2_4FGL_J1224.9+2122_daily_bin93.fits outfile=/scratch/kocevski/597194/cmap_263433601_263692801_4FGL_J1224.9+2122_daily_bin93.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597194/ft1_filtered_4FGL_J1224.9+2122_daily_bin93.fits scfile=/scratch/kocevski/597194/ft2_4FGL_J1224.9+2122_daily_bin93.fits outfile=/scratch/kocevski/597194/cmap_HighResolution_263433601_263692801_4FGL_J1224.9+2122_daily_bin93.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0302       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0185       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1663       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2023       1.0000         .10000E-03   10000.    
    10 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .20163       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3979       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10990E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6210       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.7011       1.0000         .10000E-03   10000.    
    23 'norm      '    19.689       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5555       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .44256       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=   5148.247     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2497 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0264        15.633       -.57702E-06   -.58069E-05
   2  Prefactor     .10000E-03    5.7117       -.86525E-07** at limit **
   3  Prefactor     1.0182        1.0506        .43704E-07    .14947E-04
   4  norm          3.0838        1.4344       -.88023E-09    .34390E-04
   5  Prefactor     .10000E-03    8.5986       -.14639E-05** at limit **
   6  Prefactor     1.1663        3.8389        .37769E-06   -.65641E-04
   7  Prefactor     .10000E-03    37.796        .24081E-04** at limit **
   8  Prefactor     1.3080        3.3310       -.15065E-06   -.92930E-04
   9  Prefactor     5.2020        3.8991       -.95218E-07    .53686E-04
  10  norm          .10000E-03    2.8462        .62482E-07** at limit **
  11  Prefactor     4.4341        2.9617        .16228E-06    .11608E-03
  12  Prefactor     9.4896        3.4452       -.96250E-07    .35125E-03
  13  Prefactor     .10000E-03    3.5174       -.39014E-07** at limit **
  14  norm          .20161        .17324        .80344E-08    .27787E-03
  15  norm          3.3991        4.3857       -.15474E-05   -.76096E-05
  16  Prefactor     6.4874        11.111       -.28449E-06    .19553E-03
  17  Prefactor     .10000E-03    13.468       -.70037E-05** at limit **
  18  Prefactor     .10000E-03    44.196       -.20785E-04** at limit **
  19  Prefactor     .10000E-03    42.186       -.33908E-05** at limit **
  20  Prefactor     1.6206        1.9931        .52101E-06   -.18636E-02
  21  Prefactor     .10000E-03    11.405        .67002E-05** at limit **
  22  norm          5.7007        3.8757       -.99017E-07    .27357E-05
  23  norm          19.690        18.187        .28014E-06    .26951E-05
  24  Normalizat    1.5557        .20498        .39261E-06    .11131E-03
  25  Prefactor     .44234        .19785       -.91096E-08    .80419E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.0264
  Prefactor  = 0.0001
  Prefactor  = 1.01817
  norm       = 3.0838
  Prefactor  = 0.0001
  Prefactor  = 1.16627
  Prefactor  = 0.0001
  Prefactor  = 1.308
  Prefactor  = 5.202
  norm       = 0.0001
  Prefactor  = 4.43408
  Prefactor  = 9.48963
  Prefactor  = 0.0001
  norm       = 0.201613
  norm       = 3.39915
  Prefactor  = 6.48739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62057
  Prefactor  = 0.0001
  norm       = 5.70067
  norm       = 19.6899
  Normalizat = 1.55574
  Prefactor  = 0.442336
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.247     FROM HESSE     STATUS=OK           431 CALLS     2928 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0264        15.642        .15130E-03   -1.5178    
   2  Prefactor     .10000E-03    5.7355        .16743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0182        1.0681        .72142E-04   -1.5506    
   4  norm          3.0838        1.4362        .56233E-04   -1.5357    
   5  Prefactor     .10000E-03    8.6203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1663        3.7540        .23375E-03   -1.5492    
   7  Prefactor     .10000E-03    37.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3080        3.2118        .17721E-03   -1.5479    
   9  Prefactor     5.2020        3.8273        .10794E-03   -1.5252    
  10  norm          .10000E-03    2.9282        .23508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4341        2.9489        .95483E-04   -1.5287    
  12  Prefactor     9.4896        3.4437        .74765E-04   -1.5092    
  13  Prefactor     .10000E-03    3.5400        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .20161        .17563        .26584E-04   -1.5618    
  15  norm          3.3991        4.3700        .16343E-03   -1.5339    
  16  Prefactor     6.4874        11.088        .15771E-03   -1.5199    
  17  Prefactor     .10000E-03    13.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6206        6.2735        .16620E-02   -1.5453    
  21  Prefactor     .10000E-03    11.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.7007        3.8857        .11259E-03   -1.5230    
  23  norm          19.690        18.185        .90265E-04   -1.4820    
  24  Normalizat    1.5557        .23200        .20988E-03   -.76224    
  25  Prefactor     .44234        .21951        .36530E-03   -1.1470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37714e-09
Minuit parameter uncertainties:
  1  15.6516
  2  4.71974e-06
  3  1.06809
  4  1.43625
  5  7.55118e-06
  6  3.75472
  7  0.000151504
  8  3.21222
  9  3.82748
  10  3.24931e-06
  11  2.94898
  12  3.44375
  13  2.40061e-05
  14  0.175633
  15  4.37045
  16  11.091
  17  2.57369e-05
  18  3.4837e-05
  19  2.36768e-05
  20  6.27608
  21  1.23197e-05
  22  3.88591
  23  18.1905
  24  0.232159
  25  0.219925
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.016e-01  1.756e-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:  4.423e-01  2.199e-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.556e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.03e-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) = 5148.15158794
delta logL = 0.0950045513355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.15112088
delta logL = 0.0954716113374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14536       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8588       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43406       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=   5148.151     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14521        .13396        .56857E-02   -.55153E-03
   2  alpha         1.8587        .49675        .41325       -.42716E-05
   3  Normalizat    1.5721        .19829        .47280E-01    .39603E-04
   4  Prefactor     .43412        .19569        .83184E-01    .57746E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.145215
  alpha      = 1.85866
  Normalizat = 1.5721
  Prefactor  = 0.434119
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.151     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14521        .20100        .24265E-03   -1.5632    
   2  alpha         1.8587        .90166        .14361E-01   -.25944    
   3  Normalizat    1.5721        .22119        .20900E-03   -.75772    
   4  Prefactor     .43412        .21640        .36855E-03   -1.1510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53003e-11
Minuit parameter uncertainties:
  1  0.201004
  2  0.924019
  3  0.221332
  4  0.21681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597194': 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) = 5148.15112044
delta logL = 0.095472049331

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.452e-01  2.010e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.859e+00  9.240e-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:  4.341e-01  2.168e-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.572e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.62
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.86 +/- 0.92
Photon Flux (Free Index): 2.03e-08 +/- 3.21e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.75e-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/597194/cmap_HighResolution_263433601_263692801_4FGL_J1224.9+2122_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='1.44e-05', photon_flux_error='2.97e-08', dlogl='9.55e-02', energy_flux='1.18e-05', photon_flux2='2.03e-08', job_status='DONE', time_completed='2021-09-05 13:29:20.201872', photon_index_error2='0.92', photon_index2='1.86', ts='4.43', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.56', time_epoch_completed='1630873760.2', return_code='0', job_id='597194', GAL2='0.43', EG2='1.57', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='3.21e-08', ts2='4.62', photon_index='2.28' WHERE bin_id='93' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 597194: <4FGL_J1224.9+2122_daily_bin93> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin93> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:56 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:58 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:15:58 2021
Terminated at Sun Sep  5 13:29:20 2021
Results reported at Sun Sep  5 13:29:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin93 186.228 21.3814 263433601 263692801 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 :                                   573.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

