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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin68
RA = 186.228, Dec = 21.3814
tmin = 256953601, tmax = 257212801
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='597150', job_status='RUN', time_executed='2021-09-05 13:19:34.412946', time_epoch_executed='1630873174.41' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597150

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597150/ft1_4FGL_J1224.9+2122_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597150/ft2_4FGL_J1224.9+2122_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597150/ft1_4FGL_J1224.9+2122_daily_bin68.fits outfile=/scratch/kocevski/597150/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin68.fits ra=186.228 dec=21.3814 rad=12.0 tmin=256953601.0 tmax=257212801.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 1.46
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597150/ft2_4FGL_J1224.9+2122_daily_bin68.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/597150/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/597150/ft1_filtered_4FGL_J1224.9+2122_daily_bin68.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/597150/ft1_filtered_4FGL_J1224.9+2122_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/597150/ft2_4FGL_J1224.9+2122_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/597150/ltcube_256953601_257212801_4FGL_J1224.9+2122_daily_bin68.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/597150/ft2_4FGL_J1224.9+2122_daily_bin68.fits
.....................!
real 16.04
user 15.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597150/ft1_filtered_4FGL_J1224.9+2122_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/597150/ft2_4FGL_J1224.9+2122_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/597150/ltcube_256953601_257212801_4FGL_J1224.9+2122_daily_bin68.fits outfile=/scratch/kocevski/597150/expmap_256953601_257212801_4FGL_J1224.9+2122_daily_bin68.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/597150/ltcube_256953601_257212801_4FGL_J1224.9+2122_daily_bin68.fits
.....................!
real 191.80
user 186.37
sys 5.03

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/597150/ft1_filtered_4FGL_J1224.9+2122_daily_bin68.fits scfile=/scratch/kocevski/597150/ft2_4FGL_J1224.9+2122_daily_bin68.fits outfile=/scratch/kocevski/597150/cmap_256953601_257212801_4FGL_J1224.9+2122_daily_bin68.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597150/ft1_filtered_4FGL_J1224.9+2122_daily_bin68.fits scfile=/scratch/kocevski/597150/ft2_4FGL_J1224.9+2122_daily_bin68.fits outfile=/scratch/kocevski/597150/cmap_HighResolution_256953601_257212801_4FGL_J1224.9+2122_daily_bin68.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/597150/ft1_filtered_4FGL_J1224.9+2122_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/597150/ft2_4FGL_J1224.9+2122_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597150/Model_4FGL_J1224.9+2122_daily_bin68.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/597150/ft1_filtered_4FGL_J1224.9+2122_daily_bin68.fits.....................!
real 72.35
user 70.96
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7731       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2852       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25170E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.478       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4879       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .68498       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.944       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5066       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8519       1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.5496       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2619       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75118       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=   8558.485     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2921 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.497       -.38049E-06** at limit **
   2  Prefactor     9.6477        10.572       -.34864E-06   -.12047E-03
   3  Prefactor     1.7729        1.7115       -.36149E-06   -.95240E-03
   4  norm          2.2851        1.0777       -.94739E-07   -.24596E-03
   5  Prefactor     2.2332        26.472        .25464E-05    .62280E-04
   6  Prefactor     .10025E-03    1.1316        .29566E-06** at limit **
   7  Prefactor     43.461        79.467       -.22491E-04    .21236E-03
   8  Prefactor     1.7527        1.6143        .49773E-06    .26777E-04
   9  Prefactor     1.4875        2.4383       -.27116E-05   -.77405E-03
  10  norm          .10000E-03    1.2468        .34873E-07** at limit **
  11  Prefactor     6.6831        2.5405       -.10079E-06    .75497E-04
  12  Prefactor     10.784        2.8487       -.79486E-07   -.47586E-04
  13  Prefactor     .10000E-03    1.6939        .42038E-06** at limit **
  14  norm          .68493        .22796       -.24890E-07    .30665E-03
  15  norm          .10000E-03    .92879        .96069E-08** at limit **
  16  Prefactor     .10000E-03    2.0822        .16157E-07** at limit **
  17  Prefactor     .10000E-03    9.6528       -.20670E-06** at limit **
  18  Prefactor     10.939        14.512       -.21718E-05    .12895E-03
  19  Prefactor     9.5047        36.881       -.55369E-05    .32114E-04
  20  Prefactor     .10000E-03    5.4699       -.13612E-09** at limit **
  21  Prefactor     6.8501        11.997       -.16489E-05   -.17702E-04
  22  norm          .10000E-03    1.6329       -.42377E-06** at limit **
  23  norm          4.5477        19.534       -.44366E-05    .14696E-04
  24  Normalizat    1.2620        .15750        .19705E-05   -.57163E-04
  25  Prefactor     .75109        .14888        .64099E-06    .10304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.64768
  Prefactor  = 1.7729
  norm       = 2.28511
  Prefactor  = 2.23316
  Prefactor  = 0.000100246
  Prefactor  = 43.4608
  Prefactor  = 1.75269
  Prefactor  = 1.48746
  norm       = 0.0001
  Prefactor  = 6.68306
  Prefactor  = 10.7842
  Prefactor  = 0.0001
  norm       = 0.684933
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9395
  Prefactor  = 9.50465
  Prefactor  = 0.0001
  Prefactor  = 6.85006
  norm       = 0.0001
  norm       = 4.5477
  Normalizat = 1.26204
  Prefactor  = 0.751088
 **********
 **   18 **HESSE 
 **********

 FCN=   8558.485     FROM HESSE     STATUS=OK           435 CALLS     3356 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6477        10.534        .12899E-03   -1.5087    
   3  Prefactor     1.7729        1.7112        .11288E-03   -1.5442    
   4  norm          2.2851        1.0759        .63346E-04   -1.5406    
   5  Prefactor     2.2332        25.122        .27365E-03   -1.5409    
   6  Prefactor     .10025E-03    25.567        .18750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.461        75.910        .60799E-04   -1.4389    
   8  Prefactor     1.7527        1.6007        .10586E-03   -1.5443    
   9  Prefactor     1.4875        2.5249        .17764E-03   -1.5464    
  10  norm          .10000E-03    1.2644        .10060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6831        2.5367        .86159E-04   -1.5191    
  12  Prefactor     10.784        2.8575        .74822E-04   -1.5051    
  13  Prefactor     .10000E-03    1.7177        .11751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68493        .22763        .24077E-04   -1.5542    
  15  norm          .10000E-03    .93219        .87054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0840        .13034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.939        14.491        .12111E-03   -1.5046    
  19  Prefactor     9.5047        36.882        .12997E-03   -1.5091    
  20  Prefactor     .10000E-03    5.5845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.8501        12.047        .15328E-03   -1.5184    
  22  norm          .10000E-03    1.6782        .23074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.5477        19.596        .18873E-03   -1.5281    
  24  Normalizat    1.2620        .18623        .23356E-03   -.84707    
  25  Prefactor     .75109        .17460        .29339E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81494e-09
Minuit parameter uncertainties:
  1  7.5193e-06
  2  10.5359
  3  1.71123
  4  1.07594
  5  14.9877
  6  0.00501957
  7  76.0794
  8  1.60071
  9  2.52513
  10  2.45644e-06
  11  2.53677
  12  2.85753
  13  1.09043e-05
  14  0.227635
  15  2.18819e-06
  16  4.3813e-06
  17  2.3104e-05
  18  14.4953
  19  36.971
  20  2.91377e-05
  21  12.0509
  22  3.77294e-06
  23  18.8905
  24  0.186326
  25  0.174725
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.849e-01  2.276e-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:  7.511e-01  1.747e-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.262e+00  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.01
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 3.84e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 1.34e-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) = 8558.43406999
delta logL = 0.0510849672319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8558.43004576
delta logL = 0.0551092023197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70086       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3935       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76045       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=   8558.430     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      209 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70087        .34706        .53396E-02    .88368E-03
   2  alpha         2.3935        .48318        .27484       -.35223E-04
   3  Normalizat    1.2471        .15099        .53079E-01    .30127E-04
   4  Prefactor     .76045        .14974        .65945E-01   -.44735E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.700867
  alpha      = 2.39349
  Normalizat = 1.24712
  Prefactor  = 0.760451
 **********
 **   18 **HESSE 
 **********

 FCN=   8558.430     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70087        .22690        .23688E-04   -1.5541    
   2  alpha         2.3935        .34757        .11147E-01   -.42616E-01
   3  Normalizat    1.2471        .18120        .23469E-03   -.85159    
   4  Prefactor     .76045        .17595        .29175E-03   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14813e-11
Minuit parameter uncertainties:
  1  0.226902
  2  0.348701
  3  0.181289
  4  0.176078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597150': 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) = 8558.43004575
delta logL = 0.0551092026653

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.009e-01  2.269e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.393e+00  3.487e-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:  7.605e-01  1.761e-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.247e+00  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.98
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.39 +/- 0.35
Photon Flux (Free Index): 1.27e-07 +/- 5.24e-08
Energy Flux (Free Index): 3.88e-05 +/- 1.32e-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/597150/cmap_HighResolution_256953601_257212801_4FGL_J1224.9+2122_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='3.88e-05', photon_flux_error='3.84e-08', dlogl='5.51e-02', energy_flux='4.02e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-05 13:32:27.189159', photon_index_error2='0.35', photon_index2='2.39', ts='22.01', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.26', time_epoch_completed='1630873947.19', return_code='0', job_id='597150', GAL2='0.76', EG2='1.25', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.24e-08', ts2='21.98', photon_index='2.28' WHERE bin_id='68' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:32:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 597150: <4FGL_J1224.9+2122_daily_bin68> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin68 186.228 21.3814 256953601 257212801 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 :                                   769.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

