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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1472
RA = 186.228, Dec = 21.3814
tmin = 620870401, tmax = 621129601
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='603487', job_status='RUN', time_executed='2021-09-05 13:39:57.939329', time_epoch_executed='1630874397.94' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603487/ft1_4FGL_J1224.9+2122_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603487/ft2_4FGL_J1224.9+2122_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603487/ft1_4FGL_J1224.9+2122_daily_bin1472.fits outfile=/scratch/kocevski/603487/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1472.fits ra=186.228 dec=21.3814 rad=12.0 tmin=620870401.0 tmax=621129601.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.22
user 3.00
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603487/ft2_4FGL_J1224.9+2122_daily_bin1472.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/603487/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1472.fits evtable="EVENTS" outfile="/scratch/kocevski/603487/ft1_filtered_4FGL_J1224.9+2122_daily_bin1472.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603487/ft1_filtered_4FGL_J1224.9+2122_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/603487/ft2_4FGL_J1224.9+2122_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/603487/ltcube_620870401_621129601_4FGL_J1224.9+2122_daily_bin1472.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/603487/ft2_4FGL_J1224.9+2122_daily_bin1472.fits
.....................!
real 12.14
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603487/ft1_filtered_4FGL_J1224.9+2122_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/603487/ft2_4FGL_J1224.9+2122_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/603487/ltcube_620870401_621129601_4FGL_J1224.9+2122_daily_bin1472.fits outfile=/scratch/kocevski/603487/expmap_620870401_621129601_4FGL_J1224.9+2122_daily_bin1472.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/603487/ltcube_620870401_621129601_4FGL_J1224.9+2122_daily_bin1472.fits
.....................!
real 190.30
user 185.12
sys 4.66

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/603487/ft1_filtered_4FGL_J1224.9+2122_daily_bin1472.fits scfile=/scratch/kocevski/603487/ft2_4FGL_J1224.9+2122_daily_bin1472.fits outfile=/scratch/kocevski/603487/cmap_620870401_621129601_4FGL_J1224.9+2122_daily_bin1472.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=186.228 yref=21.3814 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18232E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    83.044       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.914       1.0000         .10000E-03   10000.    
     4 'norm      '    9.5933       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.2731       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7433       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.8546       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.365       1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.568       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    83.869       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4722       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .45399E-01   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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1154.236     FROM MIGRAD    STATUS=CONVERGED    995 CALLS     3797 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    988.59        .18142E-02** at limit **
   2  Prefactor     83.109        142.16        .22039E-03    .34058E-04
   3  Prefactor     14.913        21.669        .10371E-03    .37763E-03
   4  norm          9.5928        8.4722        .89233E-04    .44584E-03
   5  Prefactor     .10000E-03    74.595        .18142E-02** at limit **
   6  Prefactor     .10000E-03    22.566        .15737E-02** at limit **
   7  Prefactor     .10000E-03    518.74        .18142E-02** at limit **
   8  Prefactor     .10000E-03    12.331        .11525E-02** at limit **
   9  Prefactor     .10000E-03    3.9171        .65650E-03** at limit **
  10  norm          8.2734        7.5015        .83103E-04    .88409E-04
  11  Prefactor     .10000E-03    3.3468        .60658E-03** at limit **
  12  Prefactor     2.7417        9.4839        .16433E-03   -.75928E-05
  13  Prefactor     .10000E-03    23.114        .15911E-02** at limit **
  14  norm          .10000E-03    .25587        .16615E-03** at limit **
  15  norm          9.8525        14.301        .12765E-03    .40657E-04
  16  Prefactor     .10000E-03    15.591        .13097E-02** at limit **
  17  Prefactor     18.142        24.429        .94033E-04    .63080E-04
  18  Prefactor     20.286        75.693        .88756E-04    .43992E-04
  19  Prefactor     61.637        103.64        .25569E-03    .49354E-05
  20  Prefactor     .10000E-03    4.3453        .69151E-03** at limit **
  21  Prefactor     83.872        40.831        .43863E-04    .58188E-04
  22  norm          .10000E-03    2.7425        .54790E-03** at limit **
  23  norm          .10000E-03    26.805        .17169E-02** at limit **
  24  Normalizat    1.4727        .49243        .19186E-03    .32472E-04
  25  Prefactor     .44894E-01    .82507        .76301E-02    .11786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 83.1091
  Prefactor  = 14.9129
  norm       = 9.59285
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.2734
  Prefactor  = 0.0001
  Prefactor  = 2.74167
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.85251
  Prefactor  = 0.000100001
  Prefactor  = 18.1424
  Prefactor  = 20.286
  Prefactor  = 61.6366
  Prefactor  = 0.0001
  Prefactor  = 83.8721
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.47265
  Prefactor  = 0.044894
 **********
 **   18 **HESSE 
 **********

 FCN=   1154.236     FROM HESSE     STATUS=OK           403 CALLS     4200 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    988.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     83.109        142.14        .88156E-05   -1.3882    
   3  Prefactor     14.913        21.667        .20743E-04   -1.4935    
   4  norm          9.5928        8.4713        .17847E-04   -1.5088    
   5  Prefactor     .10000E-03    74.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.568        .31473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    518.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.335        .23050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9171        .13130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.2734        7.5011        .33241E-05   -1.5133    
  11  Prefactor     .10000E-03    3.3468        .12132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7417        9.4778        .65732E-05   -1.5377    
  13  Prefactor     .10000E-03    23.117        .31822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .25587        .33230E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.8525        14.284        .51060E-05   -1.5080    
  16  Prefactor     .10000E-03    15.591        .26193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.142        24.427        .37613E-05   -1.4856    
  18  Prefactor     20.286        75.618        .17751E-04   -1.4807    
  19  Prefactor     61.637        103.60        .10227E-04   -1.4136    
  20  Prefactor     .10000E-03    4.3453        .13830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     83.872        40.802        .87726E-05   -1.3874    
  22  norm          .10000E-03    2.7426        .10958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    26.807        .34337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4727        .45931        .38371E-04   -.78550    
  25  Prefactor     .44894E-01    .70969        .30520E-03   -1.4367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44113e-10
Minuit parameter uncertainties:
  1  0.00395949
  2  142.727
  3  21.6781
  4  8.47233
  5  0.000146082
  6  0.000395496
  7  0.00132681
  8  0.000116616
  9  1.98466e-05
  10  7.50194
  11  6.92333e-06
  12  9.48302
  13  4.53811e-05
  14  9.4435e-08
  15  14.2889
  16  0.000297782
  17  24.4401
  18  75.9782
  19  103.904
  20  5.44298e-06
  21  40.8154
  22  9.99071e-06
  23  3.22058e-05
  24  0.460612
  25  0.362213
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  9.444e-08  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:  4.489e-02  3.622e-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.473e+00  4.606e-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: 2.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603487/likelihoodResults_620870401_621129601_4FGL_J1224.9+2122_daily_bin1472.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) = 1154.23992941
delta logL = -0.00389027574829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1154.07411226
delta logL = 0.161926868208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61049E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11448       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=   1154.074     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      303 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61213E-01    .20706        .31144E-02   -.78768E-03
   2  alpha         5.0000        4.5860        .46267    ** at limit **
   3  Normalizat    1.3561        .85692        .31876E-01   -.37994E-03
   4  Prefactor     .11396        1.0530        .12688       -.13039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.061213
  alpha      = 5
  Normalizat = 1.35613
  Prefactor  = 0.113964
 **********
 **   18 **HESSE 
 **********

 FCN=   1154.074     FROM HESSE     STATUS=OK            27 CALLS      330 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61213E-01    .11435        .13918E-04   -1.5659    
   2  alpha         5.0000        3.5101        .22468E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3561        .45424        .19841E-03   -.81906    
   4  Prefactor     .11396        .37317        .55618E-03   -1.3569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70441e-10
Minuit parameter uncertainties:
  1  0.114354
  2  1.22479e-05
  3  0.455594
  4  0.381315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603487': 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) = 1154.07410773
delta logL = 0.161931402914

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.121e-02  1.144e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  1.225e-05  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.140e-01  3.813e-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.356e+00  4.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

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/603487/cmap_HighResolution_620870401_621129601_4FGL_J1224.9+2122_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.40e-05', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2021-09-05 13:47:18.425466', job_id='603487', GAL2='0.11', fit_tolerance='1e-08', EG2='1.36', EG='1.47', time_epoch_completed='1630874838.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.04', dlogl='1.62e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1472' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 603487: <4FGL_J1224.9+2122_daily_bin1472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1472 186.228 21.3814 620870401 621129601 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 :                                   412.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            666 sec.

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

