/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 158 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 = 7479
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin69
RA = 186.228, Dec = 21.3814
tmin = 257212801, tmax = 257472001
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='597152', job_status='RUN', time_executed='2021-09-05 13:18:42.901643', time_epoch_executed='1630873122.9' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597152/ft1_4FGL_J1224.9+2122_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597152/ft2_4FGL_J1224.9+2122_daily_bin69.fits


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

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

Done.
real 2.31
user 2.08
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597152/ft1_filtered_4FGL_J1224.9+2122_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/597152/ft2_4FGL_J1224.9+2122_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/597152/ltcube_257212801_257472001_4FGL_J1224.9+2122_daily_bin69.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/597152/ft2_4FGL_J1224.9+2122_daily_bin69.fits
.....................!
real 12.48
user 12.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597152/ft1_filtered_4FGL_J1224.9+2122_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/597152/ft2_4FGL_J1224.9+2122_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/597152/ltcube_257212801_257472001_4FGL_J1224.9+2122_daily_bin69.fits outfile=/scratch/kocevski/597152/expmap_257212801_257472001_4FGL_J1224.9+2122_daily_bin69.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/597152/ltcube_257212801_257472001_4FGL_J1224.9+2122_daily_bin69.fits
.....................!
real 190.59
user 185.49
sys 4.44

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/597152/ft1_filtered_4FGL_J1224.9+2122_daily_bin69.fits scfile=/scratch/kocevski/597152/ft2_4FGL_J1224.9+2122_daily_bin69.fits outfile=/scratch/kocevski/597152/cmap_257212801_257472001_4FGL_J1224.9+2122_daily_bin69.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597152/ft1_filtered_4FGL_J1224.9+2122_daily_bin69.fits scfile=/scratch/kocevski/597152/ft2_4FGL_J1224.9+2122_daily_bin69.fits outfile=/scratch/kocevski/597152/cmap_HighResolution_257212801_257472001_4FGL_J1224.9+2122_daily_bin69.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/597152/ft1_filtered_4FGL_J1224.9+2122_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/597152/ft2_4FGL_J1224.9+2122_daily_bin69.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597152/Model_4FGL_J1224.9+2122_daily_bin69.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/597152/ft1_filtered_4FGL_J1224.9+2122_daily_bin69.fits.....................!
real 64.74
user 63.35
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6778       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.671       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.2443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .51021       1.0000         .10000E-03   10000.    
    15 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1320       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0165       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=   7659.967     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2476 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.449        .20338E-05** at limit **
   2  Prefactor     .10000E-03    6.5546       -.11244E-05** at limit **
   3  Prefactor     3.6776        1.9940       -.34574E-07   -.16368E-03
   4  norm          1.1054        .78765       -.33096E-07   -.44315E-03
   5  Prefactor     11.671        10.598        .28861E-07   -.22737E-05
   6  Prefactor     .10008E-03    1.8101       -.80862E-06** at limit **
   7  Prefactor     .10000E-03    17.610        .74764E-05** at limit **
   8  Prefactor     .10000E-03    1.3947        .11877E-07** at limit **
   9  Prefactor     .10000E-03    1.9685        .42378E-07** at limit **
  10  norm          6.2443        2.6677        .34033E-06    .70602E-04
  11  Prefactor     2.5787        1.8583       -.14422E-06    .56342E-04
  12  Prefactor     5.5025        2.2401       -.82061E-07   -.25627E-05
  13  Prefactor     .10000E-03    1.6296        .16144E-07** at limit **
  14  norm          .51023        .24161       -.90979E-08   -.24526E-03
  15  norm          .10000E-03    2.5940       -.26486E-07** at limit **
  16  Prefactor     .10000E-03    4.5708        .63531E-06** at limit **
  17  Prefactor     .10000E-03    3.6349       -.67412E-06** at limit **
  18  Prefactor     .10000E-03    14.895       -.46387E-05** at limit **
  19  Prefactor     .10000E-03    34.750       -.24295E-05** at limit **
  20  Prefactor     .10000E-03    3.2897        .37901E-06** at limit **
  21  Prefactor     .10000E-03    10.951       -.16152E-06** at limit **
  22  norm          .10000E-03    1.0491       -.28409E-08** at limit **
  23  norm          .10000E-03    10.227        .46114E-05** at limit **
  24  Normalizat    1.1320        .15845        .23074E-06    .25820E-03
  25  Prefactor     1.0165        .15830        .41347E-07    .22714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67763
  norm       = 1.10539
  Prefactor  = 11.6706
  Prefactor  = 0.000100085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24429
  Prefactor  = 2.57867
  Prefactor  = 5.50254
  Prefactor  = 0.0001
  norm       = 0.510228
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.132
  Prefactor  = 1.01653
 **********
 **   18 **HESSE 
 **********

 FCN=   7659.967     FROM HESSE     STATUS=OK           421 CALLS     2897 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6776        1.9920        .86795E-04   -1.5324    
   4  norm          1.1054        .76455        .63641E-03   -1.5498    
   5  Prefactor     11.671        10.598        .11726E-03   -1.5025    
   6  Prefactor     .10008E-03    13.322        .21465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4252        .20136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0547        .23930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.2443        2.6754        .87821E-04   -1.5208    
  11  Prefactor     2.5787        1.8624        .95328E-04   -1.5387    
  12  Prefactor     5.5025        2.2398        .79730E-04   -1.5239    
  13  Prefactor     .10000E-03    1.6358        .10909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .51023        .23833        .27892E-04   -1.5565    
  15  norm          .10000E-03    2.6669        .27514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6449        .16294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3130        .15497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0558        .87532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1320        .18266        .24319E-03   -.88731    
  25  Prefactor     1.0165        .18338        .26172E-03   -.92181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28926e-09
Minuit parameter uncertainties:
  1  4.29197e-06
  2  9.08078e-06
  3  1.99199
  4  0.764554
  5  10.5998
  6  0.00212522
  7  4.85767e-07
  8  3.76261e-06
  9  2.02316e-06
  10  2.67541
  11  1.86249
  12  2.2398
  13  8.84005e-08
  14  0.238332
  15  1.16817e-07
  16  4.03503e-07
  17  1.25097e-07
  18  1.39613e-06
  19  1.92211e-06
  20  1.71172e-06
  21  3.2015e-06
  22  4.57334e-07
  23  4.22285e-06
  24  0.182758
  25  0.183498
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.102e-01  2.383e-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.017e+00  1.835e-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.132e+00  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.73
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 8.62e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 1.40e-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) = 7659.69651332
delta logL = 0.270960648074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7659.69595385
delta logL = 0.27152011928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51433       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6440       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0403       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=   7659.696     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51446        3.7213        .57522E-02    .96112E-03
   2  alpha         2.6441        3.6825        .36654        .11826E-04
   3  Normalizat    1.0974        .73245E-01    .55726E-01    .82474E-05
   4  Prefactor     1.0402        .93305E-01    .58627E-01    .12488E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.514456
  alpha      = 2.64405
  Normalizat = 1.09736
  Prefactor  = 1.04022
 **********
 **   18 **HESSE 
 **********

 FCN=   7659.696     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51446        .23456        .25738E-04   -1.5565    
   2  alpha         2.6441        .51973        .14093E-01    .57652E-01
   3  Normalizat    1.0974        .18626        .24641E-03   -.89836    
   4  Prefactor     1.0402        .18684        .25925E-03   -.91401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16452e-10
Minuit parameter uncertainties:
  1  0.234557
  2  0.523558
  3  0.186373
  4  0.186956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597152': 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) = 7659.69595351
delta logL = 0.271520452073

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.145e-01  2.346e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.644e+00  5.236e-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.040e+00  1.870e-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.097e+00  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.28
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.64 +/- 0.52
Photon Flux (Free Index): 1.11e-07 +/- 5.58e-08
Energy Flux (Free Index): 2.73e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/597152/cmap_HighResolution_257212801_257472001_4FGL_J1224.9+2122_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.62e-08', energy_flux2='2.73e-05', photon_flux_error='4.02e-08', dlogl='2.72e-01', energy_flux='3.00e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-05 13:30:02.708298', photon_index_error2='0.52', photon_index2='2.64', ts='7.73', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.13', time_epoch_completed='1630873802.71', return_code='0', job_id='597152', GAL2='1.04', EG2='1.10', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='5.58e-08', ts2='8.28', photon_index='2.28' WHERE bin_id='69' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:30:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 597152: <4FGL_J1224.9+2122_daily_bin69> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin69> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:52 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:54 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:15:54 2021
Terminated at Sun Sep  5 13:30:03 2021
Results reported at Sun Sep  5 13:30:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin69 186.228 21.3814 257212801 257472001 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 :                                   675.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

