/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 73 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 = 7372
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1038
RA = 186.228, Dec = 21.3814
tmin = 508377601, tmax = 508636801
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='601699', job_status='RUN', time_executed='2021-09-05 13:32:56.756486', time_epoch_executed='1630873976.76' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601699/ft1_4FGL_J1224.9+2122_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601699/ft2_4FGL_J1224.9+2122_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601699/ft1_4FGL_J1224.9+2122_daily_bin1038.fits outfile=/scratch/kocevski/601699/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1038.fits ra=186.228 dec=21.3814 rad=12.0 tmin=508377601.0 tmax=508636801.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.63
user 3.39
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601699/ft2_4FGL_J1224.9+2122_daily_bin1038.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/601699/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1038.fits evtable="EVENTS" outfile="/scratch/kocevski/601699/ft1_filtered_4FGL_J1224.9+2122_daily_bin1038.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/601699/ft1_filtered_4FGL_J1224.9+2122_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/601699/ft2_4FGL_J1224.9+2122_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/601699/ltcube_508377601_508636801_4FGL_J1224.9+2122_daily_bin1038.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/601699/ft2_4FGL_J1224.9+2122_daily_bin1038.fits
.....................!
real 12.07
user 11.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601699/ft1_filtered_4FGL_J1224.9+2122_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/601699/ft2_4FGL_J1224.9+2122_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/601699/ltcube_508377601_508636801_4FGL_J1224.9+2122_daily_bin1038.fits outfile=/scratch/kocevski/601699/expmap_508377601_508636801_4FGL_J1224.9+2122_daily_bin1038.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/601699/ltcube_508377601_508636801_4FGL_J1224.9+2122_daily_bin1038.fits
.....................!
real 191.42
user 186.27
sys 4.73

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/601699/ft1_filtered_4FGL_J1224.9+2122_daily_bin1038.fits scfile=/scratch/kocevski/601699/ft2_4FGL_J1224.9+2122_daily_bin1038.fits outfile=/scratch/kocevski/601699/cmap_508377601_508636801_4FGL_J1224.9+2122_daily_bin1038.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601699/ft1_filtered_4FGL_J1224.9+2122_daily_bin1038.fits scfile=/scratch/kocevski/601699/ft2_4FGL_J1224.9+2122_daily_bin1038.fits outfile=/scratch/kocevski/601699/cmap_HighResolution_508377601_508636801_4FGL_J1224.9+2122_daily_bin1038.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.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7911       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0311       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7278       1.0000         .10000E-03   10000.    
    10 'norm      '    15.188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11068E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .59306E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    17.297       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.670       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6659       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.009       1.0000         .10000E-03   10000.    
    23 'norm      '    18.140       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3625       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71974       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=   6589.959     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2493 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.184        .79860E-07** at limit **
   2  Prefactor     .10000E-03    9.7228        .11372E-06** at limit **
   3  Prefactor     .10000E-03    .95430        .24150E-06** at limit **
   4  norm          3.7910        1.4795        .22696E-07   -.18736E-03
   5  Prefactor     3.0310        9.6454        .26596E-06   -.72881E-05
   6  Prefactor     .10000E-03    2.5200        .10583E-06** at limit **
   7  Prefactor     .10000E-03    28.187        .16966E-06** at limit **
   8  Prefactor     4.0296        3.3851        .23248E-07   -.18950E-03
   9  Prefactor     2.7271        3.3291        .12647E-06   -.70526E-04
  10  norm          15.189        4.8448       -.10212E-06   -.15095E-03
  11  Prefactor     4.3637        2.7655       -.13270E-06   -.70659E-04
  12  Prefactor     .10000E-03    1.0785        .56096E-07** at limit **
  13  Prefactor     .10000E-03    5.2999        .52685E-06** at limit **
  14  norm          .59497E-01    .17803        .37218E-07   -.87806E-03
  15  norm          17.308        6.7274       -.23203E-06   -.54612E-03
  16  Prefactor     25.658        12.527        .83265E-07   -.44441E-04
  17  Prefactor     1.6688        14.064        .10599E-04   -.43141E-04
  18  Prefactor     .10000E-03    9.2962        .71852E-07** at limit **
  19  Prefactor     .10000E-03    36.566       -.19713E-06** at limit **
  20  Prefactor     .10000E-03    2.3168       -.12059E-07** at limit **
  21  Prefactor     .10000E-03    4.7996        .27109E-07** at limit **
  22  norm          16.010        6.1370       -.18178E-07   -.11201E-03
  23  norm          18.117        29.798        .17565E-05   -.13565E-04
  24  Normalizat    1.3625        .19162       -.81484E-06   -.26134E-03
  25  Prefactor     .71975        .17868       -.36881E-06   -.21218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.79098
  Prefactor  = 3.031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02959
  Prefactor  = 2.7271
  norm       = 15.1885
  Prefactor  = 4.36371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0594972
  norm       = 17.3084
  Prefactor  = 25.6579
  Prefactor  = 1.66883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0102
  norm       = 18.1171
  Normalizat = 1.36252
  Prefactor  = 0.719749
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.959     FROM HESSE     STATUS=OK           431 CALLS     2924 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5644        .15340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7910        1.4788        .59275E-04   -1.5319    
   5  Prefactor     3.0310        9.6250        .23308E-03   -1.5360    
   6  Prefactor     .10000E-03    2.5549        .12571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0296        3.3532        .12151E-03   -1.5306    
   9  Prefactor     2.7271        3.2920        .14607E-03   -1.5378    
  10  norm          15.189        4.8436        .92651E-04   -1.4928    
  11  Prefactor     4.3637        2.7661        .99664E-04   -1.5290    
  12  Prefactor     .10000E-03    1.0914        .82232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.006        .34306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .59497E-01    .23172        .53687E-03   -1.5659    
  15  norm          17.308        6.4604        .96302E-04   -1.4876    
  16  Prefactor     25.658        12.523        .79065E-04   -1.4694    
  17  Prefactor     1.6688        14.082        .16337E-02   -1.5450    
  18  Prefactor     .10000E-03    9.3030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3201        .12066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8086        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.010        6.1475        .10010E-03   -1.4907    
  23  norm          18.117        29.798        .94039E-04   -1.4856    
  24  Normalizat    1.3625        .22340        .24790E-03   -.81719    
  25  Prefactor     .71975        .20785        .31863E-03   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28961e-08
Minuit parameter uncertainties:
  1  1.24987e-05
  2  4.44906e-05
  3  1.91246e-05
  4  1.47878
  5  9.62995
  6  1.27108e-05
  7  4.7932e-06
  8  3.35335
  9  3.29218
  10  4.8437
  11  2.76618
  12  3.46944e-06
  13  8.69086e-05
  14  0.231722
  15  6.46066
  16  12.5246
  17  9.69824
  18  6.23707e-06
  19  2.18444e-05
  20  1.22926e-06
  21  4.60367e-06
  22  6.14774
  23  29.8224
  24  0.223557
  25  0.208073
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.950e-02  2.317e-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:  7.197e-01  2.081e-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.363e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601699/likelihoodResults_508377601_508636801_4FGL_J1224.9+2122_daily_bin1038.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) = 6589.41919524
delta logL = 0.539474540441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6589.41553199
delta logL = 0.543137789218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76920E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1221       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75798       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=   6589.416     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      225 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76980E-01    1.6277        .48528E-02    .65221E-02
   2  alpha         4.1206        2.7315        .50000        .45100E-04
   3  Normalizat    1.2988        .49716E-01    .57181E-01    .88606E-04
   4  Prefactor     .75798        .48550E-01    .70332E-01    .52914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0769795
  alpha      = 4.12056
  Normalizat = 1.2988
  Prefactor  = 0.757975
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.416     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76980E-01    3.7557        .22178E-03   -1.5653    
   2  alpha         4.1206        3.2333        .42042E-01    .70525    
   3  Normalizat    1.2988        .16885        .25286E-03   -.83602    
   4  Prefactor     .75798        .17214        .31123E-03   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.73577e-11
Minuit parameter uncertainties:
  1  1.07475
  2  13.1861
  3  0.168923
  4  0.172266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601699': 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): 102
logL (Free Index) = 6589.41553156
delta logL = 0.543138215251

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.698e-02  1.075e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.121e+00  1.319e+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:  7.580e-01  1.723e-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.299e+00  1.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 186.228 21.381
Photon Index (Free Index): 4.12 +/- 13.19
Photon Flux (Free Index): 6.55e-08 +/- 6.46e-08
Energy Flux (Free Index): 9.70e-06 +/- 2.36e-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/601699/cmap_HighResolution_508377601_508636801_4FGL_J1224.9+2122_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-05', comment='SUCCESS', energy_flux2='9.70e-06', dlogl='5.43e-01', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-09-05 13:44:50.542574', photon_index_error2='13.19', photon_index2='4.12', ts='0.07', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.36e-05', EG='1.36', time_epoch_completed='1630874690.54', return_code='0', job_id='601699', GAL2='0.76', EG2='1.30', return_code2='102', photon_flux_error2='6.46e-08', ts2='1.22', photon_index='2.28' WHERE bin_id='1038' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:50 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1038 186.228 21.3814 508377601 508636801 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 :                                   707.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

