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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1595
RA = 186.228, Dec = 21.3814
tmin = 652752001, tmax = 653011201
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='52760', job_status='RUN', time_executed='2021-09-11 00:14:32.698167', time_epoch_executed='1631344472.7' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52760/ft1_4FGL_J1224.9+2122_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52760/ft2_4FGL_J1224.9+2122_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52760/ft1_4FGL_J1224.9+2122_daily_bin1595.fits outfile=/scratch/kocevski/52760/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1595.fits ra=186.228 dec=21.3814 rad=12.0 tmin=652752001.0 tmax=653011201.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.18
user 2.97
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52760/ft1_filtered_4FGL_J1224.9+2122_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/52760/ft2_4FGL_J1224.9+2122_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/52760/ltcube_652752001_653011201_4FGL_J1224.9+2122_daily_bin1595.fits outfile=/scratch/kocevski/52760/expmap_652752001_653011201_4FGL_J1224.9+2122_daily_bin1595.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/52760/ltcube_652752001_653011201_4FGL_J1224.9+2122_daily_bin1595.fits
.....................!
real 191.05
user 185.92
sys 4.77

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/52760/ft1_filtered_4FGL_J1224.9+2122_daily_bin1595.fits scfile=/scratch/kocevski/52760/ft2_4FGL_J1224.9+2122_daily_bin1595.fits outfile=/scratch/kocevski/52760/cmap_652752001_653011201_4FGL_J1224.9+2122_daily_bin1595.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52760/ft1_filtered_4FGL_J1224.9+2122_daily_bin1595.fits scfile=/scratch/kocevski/52760/ft2_4FGL_J1224.9+2122_daily_bin1595.fits outfile=/scratch/kocevski/52760/cmap_HighResolution_652752001_653011201_4FGL_J1224.9+2122_daily_bin1595.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/52760/ft1_filtered_4FGL_J1224.9+2122_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/52760/ft2_4FGL_J1224.9+2122_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52760/Model_4FGL_J1224.9+2122_daily_bin1595.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/52760/ft1_filtered_4FGL_J1224.9+2122_daily_bin1595.fits............................!
real 18.11
user 16.85
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4669.8       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .71285E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10684E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14072E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13974E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.067       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.554       1.0000         .10000E-03   10000.    
    14 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.472       1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.735       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18567E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    514.70       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2407       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=   646.7512     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     3810 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        1931.3       -.13882E-05** at limit **
   2  Prefactor     4679.7        7053.9       -.17299E-04   -.57636E-05
   3  Prefactor     .10009E-03    781.38        .19158E-04** at limit **
   4  norm          .10000E-03    43.621        .54640E-06** at limit **
   5  Prefactor     .10000E-03    298.31        .24603E-05** at limit **
   6  Prefactor     .10001E-03    164.27        .10474E-04** at limit **
   7  Prefactor     .10000E-03    548.36       -.44816E-06** at limit **
   8  Prefactor     .10000E-03    19.629        .15117E-05** at limit **
   9  Prefactor     22.018        32.529        .14514E-06   -.11952E-03
  10  norm          7.1508        13.781        .32448E-06   -.81508E-04
  11  Prefactor     .10000E-03    9.3834        .27345E-07** at limit **
  12  Prefactor     .10000E-03    4.8007        .71266E-07** at limit **
  13  Prefactor     41.539        39.218       -.22254E-06   -.11131E-03
  14  norm          .10000E-03    .96884        .12344E-05** at limit **
  15  norm          17.470        19.592       -.17228E-06   -.11967E-03
  16  Prefactor     70.679        52.039       -.20909E-07   -.94572E-04
  17  Prefactor     .10000E-03    32.169       -.77946E-08** at limit **
  18  Prefactor     .10000E-03    66.273        .82114E-06** at limit **
  19  Prefactor     514.72        329.73       -.18805E-05   -.68455E-04
  20  Prefactor     .10000E-03    11.163        .82997E-07** at limit **
  21  Prefactor     .10000E-03    13.441       -.53564E-07** at limit **
  22  norm          .10000E-03    3.0639       -.37446E-07** at limit **
  23  norm          .10000E-03    17.961       -.31869E-07** at limit **
  24  Normalizat    .10000E-01    .20472        .26598E-04** at limit **
  25  Prefactor     1.2403        .27158       -.56506E-05   -.34868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 4679.66
  Prefactor  = 0.000100089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 22.0177
  norm       = 7.15085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.5387
  norm       = 0.0001
  norm       = 17.4697
  Prefactor  = 70.679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 514.725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.24029
 **********
 **   18 **HESSE 
 **********

 FCN=   646.7512     FROM HESSE     STATUS=OK           405 CALLS     4215 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1932.1        .21313E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4679.7        7056.0        .40088E-04   -.64113E-01
   3  Prefactor     .10009E-03    771.49        .18670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    43.634        .16416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    297.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    161.04        .20520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    547.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.568        .10995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.018        32.510        .85267E-04   -1.4769    
  10  norm          7.1508        13.767        .12724E-03   -1.5173    
  11  Prefactor     .10000E-03    9.3858        .76078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8011        .54436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.539        39.239        .62185E-04   -1.4418    
  14  norm          .10000E-03    .97000        .47874E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.470        19.602        .95819E-04   -1.4872    
  16  Prefactor     70.679        52.063        .23865E-03   -1.4025    
  17  Prefactor     .10000E-03    32.204        .14098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    66.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     514.72        330.35        .90517E-04   -1.1131    
  20  Prefactor     .10000E-03    11.192        .83007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.453        .91099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.0720        .43481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    17.962        .10532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .24016        .70263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2403        .28669        .20132E-03   -.85100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27078e-09
Minuit parameter uncertainties:
  1  0.00465922
  2  5117.2
  3  0.0167514
  4  5.03862e-06
  5  0.000554173
  6  0.00212619
  7  0.00307131
  8  0.000128806
  9  32.5365
  10  13.7735
  11  1.80157e-06
  12  2.60755e-06
  13  39.2637
  14  2.81083e-05
  15  19.6089
  16  52.0966
  17  7.93016e-07
  18  0.000250021
  19  331.596
  20  1.18385e-05
  21  2.03028e-05
  22  5.39704e-06
  23  7.70333e-07
  24  2.99346e-06
  25  0.287053
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  2.811e-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:  1.240e+00  2.871e-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.000e-02  2.993e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/52760/likelihoodResults_652752001_653011201_4FGL_J1224.9+2122_daily_bin1595.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) = 646.75384561
delta logL = -0.00267701194969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 646.751166096
delta logL = 2.50208654506e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4741       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2402       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=   646.7512     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      272 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2543        .49461E-03** at limit **
   2  alpha         2.8076        3.8782        .16462        .21478E-07
   3  Normalizat    .10000E-01    .24015        .70255E-02** at limit **
   4  Prefactor     1.2403        .26684        .20132E-03   -.26011E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.80758
  Normalizat = 0.01
  Prefactor  = 1.24029
 **********
 **   18 **HESSE 
 **********

 FCN=   646.7512     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1127        .98922E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8076        3.4189        .65847E-02    .12334    
   3  Normalizat    .10000E-01    .24017        .14051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2403        .26680        .40264E-04   -.85100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84489e-10
Minuit parameter uncertainties:
  1  1.45982e-06
  2  153.633
  3  3.00986e-06
  4  0.267089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52760': 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) = 646.751161984
delta logL = 6.61416106595e-06

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.460e-06  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.808e+00  1.536e+02  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.240e+00  2.671e-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.000e-02  3.010e-06  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/52760/cmap_HighResolution_652752001_653011201_4FGL_J1224.9+2122_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-04', job_status='DONE', photon_flux_upper_limit='5.88e-07', time_completed='2021-09-11 00:20:39.761410', job_id='52760', GAL2='1.24', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631344839.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='6.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1595' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:20:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 52760: <4FGL_J1224.9+2122_daily_bin1595> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1595> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 00:11:20 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:11:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:11:21 2021
Terminated at Sat Sep 11 00:20:40 2021
Results reported at Sat Sep 11 00:20:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1595 186.228 21.3814 652752001 653011201 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 :                                   369.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            560 sec.

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

