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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1003
RA = 186.228, Dec = 21.3814
tmin = 499305601, tmax = 499564801
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='601644', job_status='RUN', time_executed='2021-09-05 13:34:32.879284', time_epoch_executed='1630874072.88' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601644

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601644/ft1_4FGL_J1224.9+2122_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601644/ft2_4FGL_J1224.9+2122_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601644/ft1_4FGL_J1224.9+2122_daily_bin1003.fits outfile=/scratch/kocevski/601644/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1003.fits ra=186.228 dec=21.3814 rad=12.0 tmin=499305601.0 tmax=499564801.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.38
user 5.13
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601644/ft1_filtered_4FGL_J1224.9+2122_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/601644/ft2_4FGL_J1224.9+2122_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/601644/ltcube_499305601_499564801_4FGL_J1224.9+2122_daily_bin1003.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/601644/ft2_4FGL_J1224.9+2122_daily_bin1003.fits
.....................!
real 12.68
user 12.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601644/ft1_filtered_4FGL_J1224.9+2122_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/601644/ft2_4FGL_J1224.9+2122_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/601644/ltcube_499305601_499564801_4FGL_J1224.9+2122_daily_bin1003.fits outfile=/scratch/kocevski/601644/expmap_499305601_499564801_4FGL_J1224.9+2122_daily_bin1003.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/601644/ltcube_499305601_499564801_4FGL_J1224.9+2122_daily_bin1003.fits
.....................!
real 191.10
user 185.19
sys 5.51

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/601644/ft1_filtered_4FGL_J1224.9+2122_daily_bin1003.fits scfile=/scratch/kocevski/601644/ft2_4FGL_J1224.9+2122_daily_bin1003.fits outfile=/scratch/kocevski/601644/cmap_499305601_499564801_4FGL_J1224.9+2122_daily_bin1003.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.62
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601644/ft1_filtered_4FGL_J1224.9+2122_daily_bin1003.fits scfile=/scratch/kocevski/601644/ft2_4FGL_J1224.9+2122_daily_bin1003.fits outfile=/scratch/kocevski/601644/cmap_HighResolution_499305601_499564801_4FGL_J1224.9+2122_daily_bin1003.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3243       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9496       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0826       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    226.37       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4131       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    27.335       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4911       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72609       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=   4702.762     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2878 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.143       -.43951E-05** at limit **
   2  Prefactor     .10000E-03    5.6410       -.26543E-06** at limit **
   3  Prefactor     1.3243        1.8371        .70754E-07   -.46101E-03
   4  norm          5.9498        2.1045        .10558E-06   -.84402E-04
   5  Prefactor     .10000E-03    10.658       -.70691E-05** at limit **
   6  Prefactor     .10000E-03    2.8619        .80764E-06** at limit **
   7  Prefactor     41.569        120.38        .76724E-04    .14677E-04
   8  Prefactor     9.0821        4.5825        .26917E-07   -.31297E-03
   9  Prefactor     .10000E-03    5.5966        .21972E-06** at limit **
  10  norm          2.6448        2.6272        .56266E-07    .66225E-04
  11  Prefactor     .10000E-03    1.6940       -.16794E-06** at limit **
  12  Prefactor     6.3335        3.7338       -.64435E-07   -.46949E-03
  13  Prefactor     .10000E-03    5.2071       -.30609E-05** at limit **
  14  norm          .10000E-03    .22298        .16905E-06** at limit **
  15  norm          10.049        7.1420        .90815E-07   -.15397E-03
  16  Prefactor     .10000E-03    7.8852        .81309E-05** at limit **
  17  Prefactor     .10000E-03    20.210        .16179E-04** at limit **
  18  Prefactor     .10000E-03    25.588       -.10958E-04** at limit **
  19  Prefactor     226.44        156.12        .47615E-04   -.22769E-04
  20  Prefactor     .10000E-03    3.4143       -.29432E-05** at limit **
  21  Prefactor     1.3908        58.393       -.45530E-04   -.45209E-04
  22  norm          .10000E-03    3.6739        .33950E-05** at limit **
  23  norm          27.346        26.266        .13072E-04   -.31215E-04
  24  Normalizat    1.4911        .23671       -.31983E-05    .16339E-03
  25  Prefactor     .72610        .21863       -.40865E-06   -.68977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.32433
  norm       = 5.94976
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 41.5689
  Prefactor  = 9.08212
  Prefactor  = 0.0001
  norm       = 2.64485
  Prefactor  = 0.0001
  Prefactor  = 6.33346
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.0488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 226.437
  Prefactor  = 0.0001
  Prefactor  = 1.39079
  norm       = 0.0001
  norm       = 27.3465
  Normalizat = 1.49105
  Prefactor  = 0.726103
 **********
 **   18 **HESSE 
 **********

 FCN=   4702.762     FROM HESSE     STATUS=OK           421 CALLS     3299 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6661        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3243        1.8040        .10553E-03   -1.5478    
   4  norm          5.9498        2.1062        .56828E-04   -1.5220    
   5  Prefactor     .10000E-03    10.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8974        .11318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.569        120.34        .62212E-04   -1.4418    
   8  Prefactor     9.0821        4.5828        .97595E-04   -1.5105    
   9  Prefactor     .10000E-03    5.7297        .31513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6448        2.6037        .10586E-03   -1.5383    
  11  Prefactor     .10000E-03    2.6608        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3335        3.7190        .95540E-04   -1.5205    
  13  Prefactor     .10000E-03    5.2330        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .60823        .61413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.049        7.1385        .12640E-03   -1.5074    
  16  Prefactor     .10000E-03    7.9144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     226.44        155.79        .13446E-03   -1.2687    
  20  Prefactor     .10000E-03    3.4189        .12373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3908        59.799        .36431E-03   -1.5472    
  22  norm          .10000E-03    3.7767        .25636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          27.346        26.240        .76625E-04   -1.4662    
  24  Normalizat    1.4911        .27987        .24239E-03   -.78030    
  25  Prefactor     .72610        .25773        .32112E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.96101e-10
Minuit parameter uncertainties:
  1  1.48182e-05
  2  7.89655e-06
  3  1.80403
  4  2.10621
  5  0.000257615
  6  7.66642e-06
  7  121.056
  8  4.58297
  9  1.67678e-06
  10  2.60381
  11  9.78993e-06
  12  3.71918
  13  1.30472e-05
  14  1.31989e-05
  15  7.13911
  16  1.35901e-05
  17  0.000198129
  18  8.17555e-05
  19  156.078
  20  7.18124e-06
  21  18.2581
  22  4.7135e-05
  23  26.2512
  24  0.280161
  25  0.258151
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.320e-05  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.261e-01  2.582e-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.491e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601644/likelihoodResults_499305601_499564801_4FGL_J1224.9+2122_daily_bin1003.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): 102
logL (Free Index) = 4702.77034493
delta logL = -0.00825408874971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4701.84883439
delta logL = 0.913256456531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54927E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9998       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81601       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=   4701.849     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      356 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55010E-01    1.4919        .28119E-02    .25854E-02
   2  alpha         5.0000        4.3885        .46272    ** at limit **
   3  Normalizat    1.3460        .12097        .57144E-01   -.32842E-05
   4  Prefactor     .81585        .10632        .68872E-01    .46740E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0550096
  alpha      = 5
  Normalizat = 1.34597
  Prefactor  = 0.815851
 **********
 **   18 **HESSE 
 **********

 FCN=   4701.849     FROM HESSE     STATUS=OK            35 CALLS      391 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55010E-01    .62526E-01    .12670E-04   -1.5661    
   2  alpha         5.0000        3.9863        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3460        .28951        .25270E-03   -.82204    
   4  Prefactor     .81585        .26846        .30472E-03   -.99147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27698e-11
Minuit parameter uncertainties:
  1  0.0625266
  2  0.000635241
  3  0.289859
  4  0.268895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601644': 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) = 4701.84882429
delta logL = 0.913266558044

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.501e-02  6.253e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  6.352e-04  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.159e-01  2.689e-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.346e+00  2.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 186.228 21.381
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.21e-07 +/- 1.37e-07
Energy Flux (Free Index): 1.62e-05 +/- 1.84e-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/601644/cmap_HighResolution_499305601_499564801_4FGL_J1224.9+2122_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='9.13e-01', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-05 13:45:13.840496', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.84e-05', EG='1.49', time_epoch_completed='1630874713.84', return_code='0', job_id='601644', GAL2='0.82', EG2='1.35', return_code2='0', photon_flux_error2='1.37e-07', ts2='2.02', photon_index='2.28' WHERE bin_id='1003' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 601644: <4FGL_J1224.9+2122_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1003> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:02 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:04 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:31:04 2021
Terminated at Sun Sep  5 13:45:14 2021
Results reported at Sun Sep  5 13:45:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1003 186.228 21.3814 499305601 499564801 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 :                                   634.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

