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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin286
RA = 186.228, Dec = 21.3814
tmin = 313459201, tmax = 313718401
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='597539', job_status='RUN', time_executed='2021-09-05 13:16:38.799277', time_epoch_executed='1630872998.8' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597539/ft1_4FGL_J1224.9+2122_daily_bin286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597539/ft2_4FGL_J1224.9+2122_daily_bin286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597539/ft1_4FGL_J1224.9+2122_daily_bin286.fits outfile=/scratch/kocevski/597539/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin286.fits ra=186.228 dec=21.3814 rad=12.0 tmin=313459201.0 tmax=313718401.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.66
user 3.08
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597539/ft1_filtered_4FGL_J1224.9+2122_daily_bin286.fits" evtable="EVENTS" scfile=/scratch/kocevski/597539/ft2_4FGL_J1224.9+2122_daily_bin286.fits sctable="SC_DATA" outfile=/scratch/kocevski/597539/ltcube_313459201_313718401_4FGL_J1224.9+2122_daily_bin286.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/597539/ft2_4FGL_J1224.9+2122_daily_bin286.fits
.....................!
real 12.52
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597539/ft1_filtered_4FGL_J1224.9+2122_daily_bin286.fits evtable="EVENTS" scfile=/scratch/kocevski/597539/ft2_4FGL_J1224.9+2122_daily_bin286.fits sctable="SC_DATA" expcube=/scratch/kocevski/597539/ltcube_313459201_313718401_4FGL_J1224.9+2122_daily_bin286.fits outfile=/scratch/kocevski/597539/expmap_313459201_313718401_4FGL_J1224.9+2122_daily_bin286.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/597539/ltcube_313459201_313718401_4FGL_J1224.9+2122_daily_bin286.fits
.....................!
real 193.15
user 187.48
sys 5.12

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/597539/ft1_filtered_4FGL_J1224.9+2122_daily_bin286.fits scfile=/scratch/kocevski/597539/ft2_4FGL_J1224.9+2122_daily_bin286.fits outfile=/scratch/kocevski/597539/cmap_313459201_313718401_4FGL_J1224.9+2122_daily_bin286.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.39
sys 0.13

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

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3513       1.0000         .10000E-03   10000.    
     4 'norm      '    13.710       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6666       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1107       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4119       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7086       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1846       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.036       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9309       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1106       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81331       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=   7323.167     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3321 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9734       -.12020E-04** at limit **
   2  Prefactor     .10000E-03    6.7295        .33571E-05** at limit **
   3  Prefactor     3.3511        1.8491        .11904E-06   -.63396E-04
   4  norm          13.709        2.1853        .86195E-07    .26148E-03
   5  Prefactor     19.829        17.155       -.14970E-04   -.54388E-03
   6  Prefactor     .10000E-03    1.8662        .11369E-06** at limit **
   7  Prefactor     3.7243        388.27        .26959E-03    .27463E-04
   8  Prefactor     .10000E-03    1.2219       -.17426E-06** at limit **
   9  Prefactor     .10015E-03    1.3662        .15069E-05** at limit **
  10  norm          9.1108        3.8131        .15391E-06   -.40357E-04
  11  Prefactor     2.4119        2.1534       -.13946E-07    .11750E-04
  12  Prefactor     1.4959        1.8649       -.98169E-07   -.62252E-03
  13  Prefactor     .10000E-03    2.2690        .10528E-06** at limit **
  14  norm          4.7086        .52029        .12677E-07   -.25558E-02
  15  norm          9.1852        5.4095       -.20896E-06   -.15925E-03
  16  Prefactor     9.2740        8.6201        .15096E-06   -.80725E-04
  17  Prefactor     6.6454        8.9023        .19761E-05   -.63714E-04
  18  Prefactor     32.450        25.202        .64441E-05   -.93220E-04
  19  Prefactor     .10000E-03    63.251       -.29928E-05** at limit **
  20  Prefactor     14.762        8.1983        .26230E-05   -.43447E-04
  21  Prefactor     50.034        18.841        .14554E-06   -.38119E-04
  22  norm          .10000E-03    1.7979        .90896E-07** at limit **
  23  norm          2.9250        52.219       -.11472E-04   -.35779E-04
  24  Normalizat    1.1105        .19116       -.15646E-05   -.43037E-03
  25  Prefactor     .81334        .18264       -.20131E-05   -.37289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35106
  norm       = 13.7093
  Prefactor  = 19.8285
  Prefactor  = 0.0001
  Prefactor  = 3.72431
  Prefactor  = 0.0001
  Prefactor  = 0.000100148
  norm       = 9.11075
  Prefactor  = 2.41194
  Prefactor  = 1.49594
  Prefactor  = 0.0001
  norm       = 4.70857
  norm       = 9.1852
  Prefactor  = 9.27401
  Prefactor  = 6.64538
  Prefactor  = 32.4502
  Prefactor  = 0.0001
  Prefactor  = 14.7616
  Prefactor  = 50.0343
  norm       = 0.0001
  norm       = 2.92496
  Normalizat = 1.11053
  Prefactor  = 0.813336
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.167     FROM HESSE     STATUS=OK           433 CALLS     3754 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3511        1.8455        .83246E-04   -1.5342    
   4  norm          13.709        2.1885        .48405E-04   -1.4967    
   5  Prefactor     19.829        17.203        .89973E-04   -1.4817    
   6  Prefactor     .10000E-03    3.4811        .22502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7243        384.17        .21095E-03   -1.5322    
   8  Prefactor     .10000E-03    2.0434        .17932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10015E-03    8.5284        .18774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1108        3.8067        .98508E-04   -1.5104    
  11  Prefactor     2.4119        2.1558        .10960E-03   -1.5397    
  12  Prefactor     1.4959        1.8348        .12274E-03   -1.5463    
  13  Prefactor     .10000E-03    2.2737        .12583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7086        .52264        .19351E-04   -1.5274    
  15  norm          9.1852        5.4030        .13224E-03   -1.5102    
  16  Prefactor     9.2740        8.6176        .13159E-03   -1.5099    
  17  Prefactor     6.6454        8.8810        .15566E-03   -1.5192    
  18  Prefactor     32.450        25.179        .70351E-04   -1.4568    
  19  Prefactor     .10000E-03    63.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.762        8.1953        .10424E-03   -1.4939    
  21  Prefactor     50.034        18.862        .56693E-04   -1.4292    
  22  norm          .10000E-03    1.8180        .11199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9250        52.379        .23727E-03   -1.5366    
  24  Normalizat    1.1105        .22111        .28708E-03   -.89414    
  25  Prefactor     .81334        .21138        .33195E-03   -.99239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80498e-08
Minuit parameter uncertainties:
  1  2.24163e-05
  2  1.64977e-05
  3  1.84551
  4  2.18853
  5  17.2076
  6  5.02063e-05
  7  76.1574
  8  1.54929e-05
  9  0.00225018
  10  3.80683
  11  2.15588
  12  1.83491
  13  4.05904e-06
  14  0.522637
  15  5.40325
  16  8.6188
  17  8.88278
  18  25.1869
  19  5.92648e-05
  20  8.19588
  21  18.8643
  22  7.66521e-06
  23  24.7802
  24  0.221298
  25  0.211596
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.709e+00  5.226e-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.133e-01  2.116e-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.111e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 294.88
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.96e-07 +/- 8.83e-08
Energy Flux (Fixed Index): 2.77e-04 +/- 3.07e-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) = 7321.87935883
delta logL = 1.28752804086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7321.86883749
delta logL = 1.29804938191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4956       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4830       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86492       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=   7321.869     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4957        .59600        .41858E-02   -.14325E-03
   2  alpha         2.4830        .14841        .88612E-01    .73507E-04
   3  Normalizat    1.0371        .18427        .66645E-01    .13751E-04
   4  Prefactor     .86496        .18339        .72992E-01   -.26531E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49572
  alpha      = 2.48303
  Normalizat = 1.03714
  Prefactor  = 0.86496
 **********
 **   18 **HESSE 
 **********

 FCN=   7321.869     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4957        .52302        .18498E-04   -1.5284    
   2  alpha         2.4830        .13117        .39019E-03   -.67866E-02
   3  Normalizat    1.0371        .21656        .29482E-03   -.91796    
   4  Prefactor     .86496        .21415        .32298E-03   -.97376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81665e-11
Minuit parameter uncertainties:
  1  0.523024
  2  0.131233
  3  0.216748
  4  0.214361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597539': 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) = 7321.86883742
delta logL = 1.29804945663

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.496e+00  5.230e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.483e+00  1.312e-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.650e-01  2.144e-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.037e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 288.60
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.48 +/- 0.13
Photon Flux (Free Index): 8.67e-07 +/- 1.03e-07
Energy Flux (Free Index): 2.42e-04 +/- 3.15e-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/597539/cmap_HighResolution_313459201_313718401_4FGL_J1224.9+2122_daily_bin286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-07', energy_flux2='2.42e-04', photon_flux_error='8.83e-08', dlogl='1.30e+00', energy_flux='2.77e-04', photon_flux2='8.67e-07', job_status='DONE', time_completed='2021-09-05 13:29:51.283055', photon_index_error2='0.13', photon_index2='2.48', ts='294.88', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='1.11', time_epoch_completed='1630873791.28', return_code='0', job_id='597539', GAL2='0.86', EG2='1.04', return_code2='0', energy_flux_error='3.07e-05', photon_flux_error2='1.03e-07', ts2='288.60', photon_index='2.28' WHERE bin_id='286' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 597539: <4FGL_J1224.9+2122_daily_bin286> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin286 186.228 21.3814 313459201 313718401 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 :                                   770.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

