/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 3 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_bin943
RA = 186.228, Dec = 21.3814
tmin = 483753601, tmax = 484012801
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='601570', job_status='RUN', time_executed='2021-09-05 13:31:09.030674', time_epoch_executed='1630873869.03' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601570/ft1_4FGL_J1224.9+2122_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601570/ft2_4FGL_J1224.9+2122_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601570/ft1_4FGL_J1224.9+2122_daily_bin943.fits outfile=/scratch/kocevski/601570/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin943.fits ra=186.228 dec=21.3814 rad=12.0 tmin=483753601.0 tmax=484012801.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 5.72
user 5.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601570/ft1_filtered_4FGL_J1224.9+2122_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/601570/ft2_4FGL_J1224.9+2122_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/601570/ltcube_483753601_484012801_4FGL_J1224.9+2122_daily_bin943.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/601570/ft2_4FGL_J1224.9+2122_daily_bin943.fits
.....................!
real 11.42
user 11.02
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601570/ft1_filtered_4FGL_J1224.9+2122_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/601570/ft2_4FGL_J1224.9+2122_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/601570/ltcube_483753601_484012801_4FGL_J1224.9+2122_daily_bin943.fits outfile=/scratch/kocevski/601570/expmap_483753601_484012801_4FGL_J1224.9+2122_daily_bin943.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/601570/ltcube_483753601_484012801_4FGL_J1224.9+2122_daily_bin943.fits
.....................!
real 190.16
user 184.97
sys 4.35

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/601570/ft1_filtered_4FGL_J1224.9+2122_daily_bin943.fits scfile=/scratch/kocevski/601570/ft2_4FGL_J1224.9+2122_daily_bin943.fits outfile=/scratch/kocevski/601570/cmap_483753601_484012801_4FGL_J1224.9+2122_daily_bin943.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/601570/ft1_filtered_4FGL_J1224.9+2122_daily_bin943.fits scfile=/scratch/kocevski/601570/ft2_4FGL_J1224.9+2122_daily_bin943.fits outfile=/scratch/kocevski/601570/cmap_HighResolution_483753601_484012801_4FGL_J1224.9+2122_daily_bin943.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.469       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77574       1.0000         .10000E-03   10000.    
     4 'norm      '    7.1497       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14781E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0611       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15049       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7871       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.906       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.964       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27683E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7705       1.0000         .10000E-03   10000.    
    22 'norm      '    3.2753       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3056       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3681       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59734       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=   5136.276     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     2943 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.486        21.477       -.13038E-04   -.38007E-04
   2  Prefactor     .10000E-03    8.9396        .55247E-07** at limit **
   3  Prefactor     .77548        .94469        .47689E-06    .11002E-02
   4  norm          7.1497        1.9489        .34588E-06   -.79781E-05
   5  Prefactor     27.517        20.029        .29894E-05   -.82246E-05
   6  Prefactor     .10000E-03    1.6250        .88188E-07** at limit **
   7  Prefactor     .10000E-03    54.296        .11533E-05** at limit **
   8  Prefactor     .10000E-03    .71829        .44064E-07** at limit **
   9  Prefactor     .10000E-03    .96813        .38539E-07** at limit **
  10  norm          18.098        4.8260       -.41797E-08    .44113E-04
  11  Prefactor     .10000E-03    1.2035        .31220E-07** at limit **
  12  Prefactor     3.0611        2.6187       -.21055E-06   -.18932E-03
  13  Prefactor     .10000E-03    2.0854        .28755E-07** at limit **
  14  norm          .15051        .25003       -.31492E-07   -.23189E-02
  15  norm          2.7876        3.4731       -.83947E-07   -.13700E-03
  16  Prefactor     25.901        13.555        .75191E-05    .15695E-04
  17  Prefactor     15.973        12.290        .36540E-05    .41896E-05
  18  Prefactor     .10000E-03    15.922       -.47860E-06** at limit **
  19  Prefactor     .10317E-03    81.959       -.22858E-05** at limit **
  20  Prefactor     .10000E-03    3.5579       -.42901E-09** at limit **
  21  Prefactor     5.8028        16.766        .69182E-05   -.53764E-04
  22  norm          3.2757        3.3956       -.64562E-07   -.24433E-03
  23  norm          3.3060        21.630        .15864E-05   -.59241E-04
  24  Normalizat    1.3681        .20489        .34547E-06   -.17543E-04
  25  Prefactor     .59723        .19207       -.25099E-05    .57240E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4856
  Prefactor  = 0.0001
  Prefactor  = 0.775484
  norm       = 7.14971
  Prefactor  = 27.5168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0976
  Prefactor  = 0.0001
  Prefactor  = 3.06107
  Prefactor  = 0.0001
  norm       = 0.150508
  norm       = 2.78764
  Prefactor  = 25.9015
  Prefactor  = 15.973
  Prefactor  = 0.0001
  Prefactor  = 0.00010317
  Prefactor  = 0.0001
  Prefactor  = 5.80276
  norm       = 3.27569
  norm       = 3.306
  Normalizat = 1.3681
  Prefactor  = 0.597231
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.276     FROM HESSE     STATUS=OK           439 CALLS     3382 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.486        21.619        .88528E-04   -1.4802    
   2  Prefactor     .10000E-03    9.0288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .77548        .91978        .74394E-04   -1.5532    
   4  norm          7.1497        1.9518        .49546E-04   -1.5173    
   5  Prefactor     27.517        20.021        .76402E-04   -1.4658    
   6  Prefactor     .10000E-03    1.6515        .89181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .72151        .59299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .97581        .68839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.098        4.8169        .77033E-04   -1.4857    
  11  Prefactor     .10000E-03    1.2162        .76632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0611        2.6124        .10003E-03   -1.5358    
  13  Prefactor     .10000E-03    2.0900        .10105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15051        .24180        .42297E-04   -1.5630    
  15  norm          2.7876        3.4623        .14406E-03   -1.5374    
  16  Prefactor     25.901        13.539        .39353E-03   -1.4690    
  17  Prefactor     15.973        12.283        .10024E-03   -1.4908    
  18  Prefactor     .10000E-03    15.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10317E-03    72.798        .19036       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5862        .13200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8028        16.792        .16720E-03   -1.5226    
  22  norm          3.2757        3.3884        .13010E-03   -1.5346    
  23  norm          3.3060        21.569        .22267E-03   -1.5344    
  24  Normalizat    1.3681        .23974        .22359E-03   -.81556    
  25  Prefactor     .59723        .22256        .32622E-03   -1.0770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6761e-10
Minuit parameter uncertainties:
  1  21.6276
  2  2.48258e-05
  3  0.919793
  4  1.95186
  5  20.0259
  6  6.14536e-06
  7  8.89839e-05
  8  3.22744e-07
  9  1.38547e-06
  10  4.81701
  11  1.49395e-06
  12  2.61251
  13  1.74785e-06
  14  0.241805
  15  3.46252
  16  13.5402
  17  12.2846
  18  0.000156826
  19  0.0304177
  20  3.12939e-06
  21  16.8057
  22  3.38858
  23  16.8971
  24  0.239933
  25  0.222884
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.505e-01  2.418e-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.972e-01  2.229e-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.368e+00  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601570/likelihoodResults_483753601_484012801_4FGL_J1224.9+2122_daily_bin943.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5135.1113582
delta logL = 1.16504690471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5135.0974082
delta logL = 1.1789969072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12295       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9223       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64904       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=   5135.097     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12257        1.6638        .37397E-02    .21689E-02
   2  alpha         3.9249        3.7007        .47008        .25109E-04
   3  Normalizat    1.2851        .63234E-01    .51899E-01   -.96530E-04
   4  Prefactor     .64923        .64822E-01    .70926E-01   -.96770E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.122565
  alpha      = 3.92485
  Normalizat = 1.28506
  Prefactor  = 0.649231
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.097     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12257        .28131        .16876E-04   -1.5638    
   2  alpha         3.9249        3.6941        .21926E-01    .60643    
   3  Normalizat    1.2851        .22809        .22946E-03   -.84013    
   4  Prefactor     .64923        .22476        .31393E-03   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67486e-11
Minuit parameter uncertainties:
  1  0.281311
  2  2.05832
  3  0.228269
  4  0.225069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601570': 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) = 5135.09740578
delta logL = 1.17899932626

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.226e-01  2.813e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.925e+00  2.058e+00  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:  6.492e-01  2.251e-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.285e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.92 +/- 2.06
Photon Flux (Free Index): 8.53e-08 +/- 6.10e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.10e-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/601570/cmap_HighResolution_483753601_484012801_4FGL_J1224.9+2122_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='1.18e+00', photon_flux2='8.53e-08', job_status='DONE', time_completed='2021-09-05 13:42:37.567064', photon_index_error2='2.06', photon_index2='3.92', ts='0.47', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.10e-05', EG='1.37', time_epoch_completed='1630874557.57', return_code='0', job_id='601570', GAL2='0.65', EG2='1.29', return_code2='0', photon_flux_error2='6.10e-08', ts2='2.95', photon_index='2.28' WHERE bin_id='943' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:42:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 601570: <4FGL_J1224.9+2122_daily_bin943> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin943 186.228 21.3814 483753601 484012801 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 :                                   681.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

