/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 1 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 = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin278
RA = 186.228, Dec = 21.3814
tmin = 311385601, tmax = 311644801
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='597523', job_status='RUN', time_executed='2021-09-05 13:16:34.575175', time_epoch_executed='1630872994.58' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597523/ft1_4FGL_J1224.9+2122_daily_bin278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597523/ft2_4FGL_J1224.9+2122_daily_bin278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597523/ft1_4FGL_J1224.9+2122_daily_bin278.fits outfile=/scratch/kocevski/597523/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin278.fits ra=186.228 dec=21.3814 rad=12.0 tmin=311385601.0 tmax=311644801.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.54
user 3.30
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597523/ft1_filtered_4FGL_J1224.9+2122_daily_bin278.fits evtable="EVENTS" scfile=/scratch/kocevski/597523/ft2_4FGL_J1224.9+2122_daily_bin278.fits sctable="SC_DATA" expcube=/scratch/kocevski/597523/ltcube_311385601_311644801_4FGL_J1224.9+2122_daily_bin278.fits outfile=/scratch/kocevski/597523/expmap_311385601_311644801_4FGL_J1224.9+2122_daily_bin278.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/597523/ltcube_311385601_311644801_4FGL_J1224.9+2122_daily_bin278.fits
.....................!
real 190.89
user 185.18
sys 4.39

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/597523/ft1_filtered_4FGL_J1224.9+2122_daily_bin278.fits scfile=/scratch/kocevski/597523/ft2_4FGL_J1224.9+2122_daily_bin278.fits outfile=/scratch/kocevski/597523/cmap_311385601_311644801_4FGL_J1224.9+2122_daily_bin278.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597523/ft1_filtered_4FGL_J1224.9+2122_daily_bin278.fits scfile=/scratch/kocevski/597523/ft2_4FGL_J1224.9+2122_daily_bin278.fits outfile=/scratch/kocevski/597523/cmap_HighResolution_311385601_311644801_4FGL_J1224.9+2122_daily_bin278.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=186.228 yref=21.3814 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.290       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.5598       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.439       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83518E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9409       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1985       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7431       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3768       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2460       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6427       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1793       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.865       1.0000         .10000E-03   10000.    
    19 'Prefactor '    102.19       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.352       1.0000         .10000E-03   10000.    
    22 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3277       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84452       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=   7697.294     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2921 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.283        22.781       -.86364E-05    .29887E-04
   2  Prefactor     .10000E-03    3.0574       -.11912E-06** at limit **
   3  Prefactor     .10000E-03    .99610        .11654E-07** at limit **
   4  norm          9.5585        2.1719       -.13351E-06    .36358E-03
   5  Prefactor     11.423        19.451       -.32296E-05    .30083E-04
   6  Prefactor     .10019E-03    2.0542       -.89000E-06** at limit **
   7  Prefactor     .10000E-03    52.037        .14420E-06** at limit **
   8  Prefactor     .10000E-03    1.5221       -.66647E-07** at limit **
   9  Prefactor     6.9423        3.8178       -.52833E-06    .26932E-03
  10  norm          5.1979        3.2418       -.20588E-06    .16099E-04
  11  Prefactor     8.7423        3.3225       -.58989E-07    .10518E-03
  12  Prefactor     1.0386        1.6307       -.29250E-06   -.96533E-03
  13  Prefactor     .10000E-03    7.1994       -.73035E-07** at limit **
  14  norm          3.3768        .48338       -.45086E-07    .25888E-02
  15  norm          6.2430        5.0717       -.10255E-05   -.99170E-04
  16  Prefactor     6.6390        9.3908       -.54665E-05    .60372E-04
  17  Prefactor     9.1779        6.8885       -.31794E-06    .79025E-04
  18  Prefactor     17.837        31.901       -.33391E-04    .51263E-04
  19  Prefactor     102.16        78.041       -.30776E-04    .91366E-05
  20  Prefactor     20.953        12.184       -.23693E-05    .90179E-04
  21  Prefactor     18.330        19.547       -.15822E-05    .65001E-04
  22  norm          .10000E-03    5.0086       -.27515E-06** at limit **
  23  norm          .10000E-03    20.157       -.88468E-06** at limit **
  24  Normalizat    1.3282        .21226        .62137E-05    .14554E-03
  25  Prefactor     .84459        .19200        .43360E-05    .32880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.5585
  Prefactor  = 11.4226
  Prefactor  = 0.00010019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.94235
  norm       = 5.19785
  Prefactor  = 8.74225
  Prefactor  = 1.03858
  Prefactor  = 0.0001
  norm       = 3.37682
  norm       = 6.24296
  Prefactor  = 6.63896
  Prefactor  = 9.17788
  Prefactor  = 17.8367
  Prefactor  = 102.156
  Prefactor  = 20.9526
  Prefactor  = 18.3296
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.32816
  Prefactor  = 0.844593
 **********
 **   18 **HESSE 
 **********

 FCN=   7697.294     FROM HESSE     STATUS=OK           445 CALLS     3366 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.283        22.864        .11923E-03   -1.5036    
   2  Prefactor     .10000E-03    3.0608        .14981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0343        .17051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.5585        2.1727        .58231E-04   -1.5090    
   5  Prefactor     11.423        19.488        .11845E-03   -1.5032    
   6  Prefactor     .10019E-03    5.2689        .39754E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5367        .10542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9423        3.8121        .12039E-03   -1.5181    
  10  norm          5.1979        3.2430        .11501E-03   -1.5252    
  11  Prefactor     8.7423        3.3241        .90913E-04   -1.5117    
  12  Prefactor     1.0386        1.3238        .13412E-02   -1.5504    
  13  Prefactor     .10000E-03    7.3127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3768        .48563        .21754E-04   -1.5340    
  15  norm          6.2430        5.0490        .16062E-03   -1.5208    
  16  Prefactor     6.6390        9.3750        .15570E-03   -1.5193    
  17  Prefactor     9.1779        6.8849        .13228E-03   -1.5102    
  18  Prefactor     17.837        31.880        .94758E-04   -1.4863    
  19  Prefactor     102.16        78.075        .19887E-03   -1.3683    
  20  Prefactor     20.953        12.232        .87474E-04   -1.4792    
  21  Prefactor     18.330        19.638        .93493E-04   -1.4851    
  22  norm          .10000E-03    5.2031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3282        .25295        .29021E-03   -.82730    
  25  Prefactor     .84459        .22552        .34201E-03   -.98105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63928e-10
Minuit parameter uncertainties:
  1  22.8812
  2  1.17207e-05
  3  4.94459e-08
  4  2.17276
  5  19.4985
  6  0.00200142
  7  2.02195e-05
  8  3.35979e-06
  9  3.81224
  10  3.24312
  11  3.3242
  12  1.32384
  13  1.38875e-07
  14  0.485629
  15  5.04933
  16  9.37702
  17  6.88549
  18  31.9104
  19  78.1539
  20  12.2332
  21  19.6445
  22  5.67225e-05
  23  6.19042e-05
  24  0.253185
  25  0.225769
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.377e+00  4.856e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  8.446e-01  2.258e-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.328e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 160.64
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.71e-07 +/- 8.20e-08
Energy Flux (Fixed Index): 1.98e-04 +/- 2.85e-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) = 7697.20133696
delta logL = 0.0929285560014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7697.19395494
delta logL = 0.100310571369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3790       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3467       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86012       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=   7697.194     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      204 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3790        .49834        .48729E-02    .14638E-04
   2  alpha         2.3466        .15837        .11594       -.98678E-05
   3  Normalizat    1.3048        .20079        .66039E-01    .88355E-05
   4  Prefactor     .85986        .19135        .76654E-01    .21858E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.379
  alpha      = 2.34656
  Normalizat = 1.30478
  Prefactor  = 0.85986
 **********
 **   18 **HESSE 
 **********

 FCN=   7697.194     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .71E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3790        .47797        .10771E-03   -1.5340    
   2  alpha         2.3466        .15390        .50729E-03   -.61416E-01
   3  Normalizat    1.3048        .23954        .29213E-03   -.83424    
   4  Prefactor     .85986        .22631        .33926E-03   -.97558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10694e-15
Minuit parameter uncertainties:
  1  0.477972
  2  0.154002
  3  0.239746
  4  0.226554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597523': 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) = 7697.19395413
delta logL = 0.100311388

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.379e+00  4.780e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.347e+00  1.540e-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:  8.599e-01  2.266e-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.305e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 158.02
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.35 +/- 0.15
Photon Flux (Free Index): 5.95e-07 +/- 1.00e-07
Energy Flux (Free Index): 1.91e-04 +/- 3.12e-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/597523/cmap_HighResolution_311385601_311644801_4FGL_J1224.9+2122_daily_bin278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.71e-07', energy_flux2='1.91e-04', photon_flux_error='8.20e-08', dlogl='1.00e-01', energy_flux='1.98e-04', photon_flux2='5.95e-07', job_status='DONE', time_completed='2021-09-05 13:29:54.406382', photon_index_error2='0.15', photon_index2='2.35', ts='160.64', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.12e-05', EG='1.33', time_epoch_completed='1630873794.41', return_code='0', job_id='597523', GAL2='0.86', EG2='1.30', return_code2='0', energy_flux_error='2.85e-05', photon_flux_error2='1.00e-07', ts2='158.02', photon_index='2.28' WHERE bin_id='278' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 597523: <4FGL_J1224.9+2122_daily_bin278> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin278 186.228 21.3814 311385601 311644801 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 :                                   715.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

