/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 4 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 = 7502
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1552
RA = 186.228, Dec = 21.3814
tmin = 641606401, tmax = 641865601
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='603608', job_status='RUN', time_executed='2021-09-05 13:36:44.282753', time_epoch_executed='1630874204.28' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603608

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603608/ft1_4FGL_J1224.9+2122_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603608/ft2_4FGL_J1224.9+2122_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603608/ft1_4FGL_J1224.9+2122_daily_bin1552.fits outfile=/scratch/kocevski/603608/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1552.fits ra=186.228 dec=21.3814 rad=12.0 tmin=641606401.0 tmax=641865601.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 2.68
user 2.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603608/ft1_filtered_4FGL_J1224.9+2122_daily_bin1552.fits" evtable="EVENTS" scfile=/scratch/kocevski/603608/ft2_4FGL_J1224.9+2122_daily_bin1552.fits sctable="SC_DATA" outfile=/scratch/kocevski/603608/ltcube_641606401_641865601_4FGL_J1224.9+2122_daily_bin1552.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/603608/ft2_4FGL_J1224.9+2122_daily_bin1552.fits
.....................!
real 12.65
user 12.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603608/ft1_filtered_4FGL_J1224.9+2122_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/603608/ft2_4FGL_J1224.9+2122_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/603608/ltcube_641606401_641865601_4FGL_J1224.9+2122_daily_bin1552.fits outfile=/scratch/kocevski/603608/expmap_641606401_641865601_4FGL_J1224.9+2122_daily_bin1552.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/603608/ltcube_641606401_641865601_4FGL_J1224.9+2122_daily_bin1552.fits
.....................!
real 193.54
user 187.71
sys 5.06

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/603608/ft1_filtered_4FGL_J1224.9+2122_daily_bin1552.fits scfile=/scratch/kocevski/603608/ft2_4FGL_J1224.9+2122_daily_bin1552.fits outfile=/scratch/kocevski/603608/cmap_641606401_641865601_4FGL_J1224.9+2122_daily_bin1552.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.68
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603608/ft1_filtered_4FGL_J1224.9+2122_daily_bin1552.fits scfile=/scratch/kocevski/603608/ft2_4FGL_J1224.9+2122_daily_bin1552.fits outfile=/scratch/kocevski/603608/cmap_HighResolution_641606401_641865601_4FGL_J1224.9+2122_daily_bin1552.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.58
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41074E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6716       1.0000         .10000E-03   10000.    
     4 'norm      '    29.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19051E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1377       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2343       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2656       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .78206E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    7.9144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3360       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13340E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.8551       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2044       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85816       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=   7729.701     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2974 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.363       -.98943E-05** at limit **
   2  Prefactor     .10000E-03    15.729        .11707E-05** at limit **
   3  Prefactor     1.6698        2.0746       -.17202E-06   -.14531E-03
   4  norm          29.092        2.7256       -.54958E-08   -.18945E-03
   5  Prefactor     .10000E-03    6.2614        .32256E-07** at limit **
   6  Prefactor     .10000E-03    2.3700        .13225E-05** at limit **
   7  Prefactor     .10000E-03    31.500       -.37216E-05** at limit **
   8  Prefactor     4.2640        3.1560       -.15397E-06   -.32634E-03
   9  Prefactor     .10000E-03    2.2589        .15535E-06** at limit **
  10  norm          5.1378        2.7380        .16790E-07   -.57657E-06
  11  Prefactor     3.2344        1.8807        .36843E-07    .20996E-04
  12  Prefactor     3.2659        2.2940        .59903E-07   -.30607E-04
  13  Prefactor     .10000E-03    4.5041        .97776E-07** at limit **
  14  norm          .78255E-01    .17305       -.70965E-07    .34429E-03
  15  norm          7.9142        3.9900        .25525E-07   -.69033E-04
  16  Prefactor     7.3897        12.640       -.17387E-05    .24924E-05
  17  Prefactor     7.3368        9.3763       -.19125E-05   -.66120E-04
  18  Prefactor     .10000E-03    14.557       -.95836E-06** at limit **
  19  Prefactor     .10000E-03    96.301       -.16021E-05** at limit **
  20  Prefactor     .10000E-03    35.979        .13914E-04** at limit **
  21  Prefactor     .10000E-03    11.189        .10773E-05** at limit **
  22  norm          4.8554        3.0995        .40281E-07    .16142E-04
  23  norm          .10000E-03    11.603       -.10039E-05** at limit **
  24  Normalizat    1.2045        .18801        .10183E-06   -.33300E-03
  25  Prefactor     .85796        .18157       -.10159E-06   -.28864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.66977
  norm       = 29.0918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26399
  Prefactor  = 0.0001
  norm       = 5.13784
  Prefactor  = 3.23442
  Prefactor  = 3.26588
  Prefactor  = 0.0001
  norm       = 0.0782549
  norm       = 7.91417
  Prefactor  = 7.3897
  Prefactor  = 7.33675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.8554
  norm       = 0.0001
  Normalizat = 1.20449
  Prefactor  = 0.857964
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.701     FROM HESSE     STATUS=OK           447 CALLS     3421 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.266        .95229E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6698        2.0408        .12618E-03   -1.5450    
   4  norm          29.092        2.7279        .42308E-04   -1.4629    
   5  Prefactor     .10000E-03    6.2674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.462        .24153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2640        3.1150        .12618E-03   -1.5295    
   9  Prefactor     .10000E-03    2.3110        .25718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1378        2.7404        .99308E-04   -1.5255    
  11  Prefactor     3.2344        1.8832        .86722E-04   -1.5348    
  12  Prefactor     3.2659        2.2850        .10419E-03   -1.5347    
  13  Prefactor     .10000E-03    4.5855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .78255E-01    .17109        .51262E-04   -1.5652    
  15  norm          7.9142        3.9844        .12028E-03   -1.5145    
  16  Prefactor     7.3897        12.652        .73768E-03   -1.5164    
  17  Prefactor     7.3368        9.3695        .74042E-03   -1.5166    
  18  Prefactor     .10000E-03    14.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    96.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0921        .59633E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.8554        3.1015        .11961E-03   -1.5267    
  23  norm          .10000E-03    11.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2045        .22463        .27764E-03   -.86464    
  25  Prefactor     .85796        .21821        .32317E-03   -.97626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26473e-10
Minuit parameter uncertainties:
  1  0.00047446
  2  5.41129e-05
  3  2.04084
  4  2.72795
  5  5.58845e-06
  6  0.000178335
  7  8.21097e-05
  8  3.11514
  9  1.7028e-05
  10  2.74043
  11  1.8832
  12  2.28509
  13  1.46595e-05
  14  0.171092
  15  3.98455
  16  12.6565
  17  9.37135
  18  3.72134e-05
  19  0.000296245
  20  1.0321e-05
  21  6.30016e-06
  22  3.10158
  23  3.16309e-05
  24  0.224808
  25  0.218436
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.825e-02  1.711e-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.580e-01  2.184e-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.204e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 8.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603608/likelihoodResults_641606401_641865601_4FGL_J1224.9+2122_daily_bin1552.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) = 7729.65436852
delta logL = 0.0462983148991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7729.64986632
delta logL = 0.0508005181237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93568E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6822       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86203       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7729.650     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      256 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93558E-01    .17506        .47618E-04   -.85949E-05
   2  alpha         2.6811        1.2509        .38820E-01   -.24832E-05
   3  Normalizat    1.1964        .21751        .27845E-03    .57159E-06
   4  Prefactor     .86202        .21645        .32246E-03    .56409E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0935584
  alpha      = 2.68108
  Normalizat = 1.19644
  Prefactor  = 0.862018
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.650     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .34E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93558E-01    .17312        .19047E-05   -1.5647    
   2  alpha         2.6811        1.2389        .15528E-02    .72497E-01
   3  Normalizat    1.1964        .21784        .11138E-04   -.86713    
   4  Prefactor     .86202        .21664        .12899E-04   -.97481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42415e-14
Minuit parameter uncertainties:
  1  0.173116
  2  1.29654
  3  0.218009
  4  0.216856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603608': 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) = 7729.64986591
delta logL = 0.0508009224804

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.356e-02  1.731e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.681e+00  1.297e+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:  8.620e-01  2.169e-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.196e+00  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
Ra Dec: 186.228 21.381

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/603608/cmap_HighResolution_641606401_641865601_4FGL_J1224.9+2122_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', job_status='DONE', photon_flux_upper_limit='8.46e-08', time_completed='2021-09-05 13:50:44.909875', job_id='603608', GAL2='0.86', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630875044.91', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.08e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1552' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 603608: <4FGL_J1224.9+2122_daily_bin1552> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1552> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:23 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:26 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:36:26 2021
Terminated at Sun Sep  5 13:50:45 2021
Results reported at Sun Sep  5 13:50:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1552 186.228 21.3814 641606401 641865601 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 :                                   835.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

