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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1422
RA = 186.228, Dec = 21.3814
tmin = 607910401, tmax = 608169601
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='603411', job_status='RUN', time_executed='2021-09-05 13:40:33.808748', time_epoch_executed='1630874433.81' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603411/ft1_4FGL_J1224.9+2122_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603411/ft2_4FGL_J1224.9+2122_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603411/ft1_4FGL_J1224.9+2122_daily_bin1422.fits outfile=/scratch/kocevski/603411/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1422.fits ra=186.228 dec=21.3814 rad=12.0 tmin=607910401.0 tmax=608169601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.00
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603411/ft1_filtered_4FGL_J1224.9+2122_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/603411/ft2_4FGL_J1224.9+2122_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/603411/ltcube_607910401_608169601_4FGL_J1224.9+2122_daily_bin1422.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/603411/ft2_4FGL_J1224.9+2122_daily_bin1422.fits
.....................!
real 12.26
user 11.36
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603411/ft1_filtered_4FGL_J1224.9+2122_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/603411/ft2_4FGL_J1224.9+2122_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/603411/ltcube_607910401_608169601_4FGL_J1224.9+2122_daily_bin1422.fits outfile=/scratch/kocevski/603411/expmap_607910401_608169601_4FGL_J1224.9+2122_daily_bin1422.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/603411/ltcube_607910401_608169601_4FGL_J1224.9+2122_daily_bin1422.fits
.....................!
real 190.72
user 185.31
sys 4.67

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/603411/ft1_filtered_4FGL_J1224.9+2122_daily_bin1422.fits scfile=/scratch/kocevski/603411/ft2_4FGL_J1224.9+2122_daily_bin1422.fits outfile=/scratch/kocevski/603411/cmap_607910401_608169601_4FGL_J1224.9+2122_daily_bin1422.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603411/ft1_filtered_4FGL_J1224.9+2122_daily_bin1422.fits scfile=/scratch/kocevski/603411/ft2_4FGL_J1224.9+2122_daily_bin1422.fits outfile=/scratch/kocevski/603411/cmap_HighResolution_607910401_608169601_4FGL_J1224.9+2122_daily_bin1422.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85919E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.5668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12230E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2983       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15886E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5193       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9123       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30439       1.0000         .10000E-03   10000.    
    15 'norm      '    4.2022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7690       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.792       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26363E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4085       1.0000         .10000E-03   10000.    
    23 'norm      '    11.265       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95690       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2229       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=   5928.995     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2965 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2392       -.44492E-05** at limit **
   2  Prefactor     .10000E-03    4.4674        .28203E-06** at limit **
   3  Prefactor     .10000E-03    .80524       -.10449E-06** at limit **
   4  norm          5.5668        1.5428       -.16304E-08    .11607E-03
   5  Prefactor     .10000E-03    10.391        .77074E-05** at limit **
   6  Prefactor     .10000E-03    1.6530       -.19664E-06** at limit **
   7  Prefactor     .10000E-03    53.150       -.26543E-04** at limit **
   8  Prefactor     3.2971        2.7129       -.34744E-06   -.15503E-02
   9  Prefactor     .10004E-03    1.8198        .17749E-05** at limit **
  10  norm          4.5191        2.6958       -.96116E-07    .34004E-04
  11  Prefactor     1.9120        2.2723       -.18423E-07   -.52482E-03
  12  Prefactor     .10000E-03    .98802        .41332E-07** at limit **
  13  Prefactor     .10000E-03    2.2631        .29389E-07** at limit **
  14  norm          .30438        .22720       -.16457E-07   -.17621E-02
  15  norm          4.2021        4.4084       -.10643E-05   -.18303E-03
  16  Prefactor     .10000E-03    7.1299       -.30785E-05** at limit **
  17  Prefactor     8.7676        8.9161       -.68388E-07   -.26769E-04
  18  Prefactor     .10000E-03    44.983        .22724E-04** at limit **
  19  Prefactor     36.789        49.453       -.42188E-05    .31702E-06
  20  Prefactor     .10000E-03    12.360       -.62312E-05** at limit **
  21  Prefactor     .10003E-03    6.8019        .56283E-06** at limit **
  22  norm          3.4088        2.8545       -.14636E-06    .10680E-03
  23  norm          11.265        11.798        .37023E-07    .27403E-04
  24  Normalizat    .95697        .18121        .40746E-06   -.34925E-03
  25  Prefactor     1.2229        .18713       -.86923E-07   -.31709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 5.56679
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.29709
  Prefactor  = 0.000100043
  norm       = 4.51906
  Prefactor  = 1.91199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.304377
  norm       = 4.2021
  Prefactor  = 0.0001
  Prefactor  = 8.76759
  Prefactor  = 0.0001
  Prefactor  = 36.789
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  norm       = 3.40884
  norm       = 11.2654
  Normalizat = 0.956973
  Prefactor  = 1.22288
 **********
 **   18 **HESSE 
 **********

 FCN=   5928.995     FROM HESSE     STATUS=OK           431 CALLS     3396 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2501        .17216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4902        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.8789        .13262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5668        1.5434        .48409E-04   -1.5236    
   5  Prefactor     .10000E-03    10.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5855        .19002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2971        2.6282        .10678E-03   -1.5345    
   9  Prefactor     .10004E-03    5.5652        .18827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5191        2.6990        .89100E-04   -1.5283    
  11  Prefactor     1.9120        2.2548        .11513E-03   -1.5431    
  12  Prefactor     .10000E-03    1.6129        .14724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2686        .11307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30438        .22449        .29948E-04   -1.5598    
  15  norm          4.2021        4.4030        .15844E-03   -1.5298    
  16  Prefactor     .10000E-03    7.1906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7676        8.8871        .13536E-03   -1.5116    
  18  Prefactor     .10000E-03    45.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.789        49.445        .66073E-04   -1.4494    
  20  Prefactor     .10000E-03    12.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    43.321        .38979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4088        2.8538        .11567E-03   -1.5339    
  23  norm          11.265        11.800        .11936E-03   -1.5037    
  24  Normalizat    .95697        .20784        .26031E-03   -.94486    
  25  Prefactor     1.2229        .21769        .25060E-03   -.85630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42741e-09
Minuit parameter uncertainties:
  1  1.9544e-06
  2  1.40555e-06
  3  0.000410951
  4  1.54342
  5  1.14453e-05
  6  0.000191238
  7  1.24426e-05
  8  2.62831
  9  0.000975146
  10  2.6991
  11  2.25491
  12  9.61525e-06
  13  6.08349e-06
  14  0.224495
  15  4.40336
  16  1.1193e-05
  17  8.88845
  18  0.000195799
  19  49.5004
  20  7.0504e-05
  21  0.00235951
  22  2.85387
  23  11.8021
  24  0.20801
  25  0.217852
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.044e-01  2.245e-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:  1.223e+00  2.179e-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:  9.570e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.19
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.32e-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) = 5927.11664201
delta logL = 1.87880614369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5927.05496472
delta logL = 1.94048343192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70212E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1000       1.0000          .0000       5.0000    
     3 'Normalizat'    .99902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2048       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=   5927.055     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70280E-01    .71132E-01    .37397E-02   -.49068E-03
   2  alpha         1.1000        .32017        .22164       -.52269E-04
   3  Normalizat    .99896        .17292        .46155E-01    .11696E-04
   4  Prefactor     1.2049        .18655        .57031E-01    .49895E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0702797
  alpha      = 1.10001
  Normalizat = 0.998961
  Prefactor  = 1.20488
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.055     FROM HESSE     STATUS=OK            35 CALLS      256 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70280E-01    .12267        .15937E-03   -1.5655    
   2  alpha         1.1000        .56150        .92324E-02   -.59438    
   3  Normalizat    .99896        .20190        .25533E-03   -.93065    
   4  Prefactor     1.2049        .21812        .25219E-03   -.86181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.464e-09
Minuit parameter uncertainties:
  1  0.122671
  2  0.568621
  3  0.202054
  4  0.218288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603411': 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) = 5927.05496398
delta logL = 1.94048417188

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.028e-02  1.227e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.100e+00  5.686e-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:  1.205e+00  2.183e-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:  9.990e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.05
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.10 +/- 0.57
Photon Flux (Free Index): 1.23e-08 +/- 1.50e-08
Energy Flux (Free Index): 7.23e-05 +/- 8.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/603411/cmap_HighResolution_607910401_608169601_4FGL_J1224.9+2122_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='7.23e-05', photon_flux_error='3.79e-08', dlogl='1.94e+00', energy_flux='1.79e-05', photon_flux2='1.23e-08', job_status='DONE', time_completed='2021-09-05 13:51:27.809987', photon_index_error2='0.57', photon_index2='1.10', ts='4.19', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='8.06e-05', EG='0.96', time_epoch_completed='1630875087.81', return_code='0', job_id='603411', GAL2='1.20', EG2='1.00', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='1.50e-08', ts2='8.05', photon_index='2.28' WHERE bin_id='1422' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 603411: <4FGL_J1224.9+2122_daily_bin1422> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1422 186.228 21.3814 607910401 608169601 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 :                                   637.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

