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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1051
RA = 186.228, Dec = 21.3814
tmin = 511747201, tmax = 512006401
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='601720', job_status='RUN', time_executed='2021-09-05 13:33:09.486473', time_epoch_executed='1630873989.49' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601720/ft1_4FGL_J1224.9+2122_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601720/ft2_4FGL_J1224.9+2122_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601720/ft1_4FGL_J1224.9+2122_daily_bin1051.fits outfile=/scratch/kocevski/601720/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1051.fits ra=186.228 dec=21.3814 rad=12.0 tmin=511747201.0 tmax=512006401.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.62
user 3.32
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601720/ft1_filtered_4FGL_J1224.9+2122_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/601720/ft2_4FGL_J1224.9+2122_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/601720/ltcube_511747201_512006401_4FGL_J1224.9+2122_daily_bin1051.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/601720/ft2_4FGL_J1224.9+2122_daily_bin1051.fits
.....................!
real 15.28
user 14.71
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601720/ft1_filtered_4FGL_J1224.9+2122_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/601720/ft2_4FGL_J1224.9+2122_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/601720/ltcube_511747201_512006401_4FGL_J1224.9+2122_daily_bin1051.fits outfile=/scratch/kocevski/601720/expmap_511747201_512006401_4FGL_J1224.9+2122_daily_bin1051.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/601720/ltcube_511747201_512006401_4FGL_J1224.9+2122_daily_bin1051.fits
.....................!
real 190.50
user 185.23
sys 4.68

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/601720/ft1_filtered_4FGL_J1224.9+2122_daily_bin1051.fits scfile=/scratch/kocevski/601720/ft2_4FGL_J1224.9+2122_daily_bin1051.fits outfile=/scratch/kocevski/601720/cmap_511747201_512006401_4FGL_J1224.9+2122_daily_bin1051.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601720/ft1_filtered_4FGL_J1224.9+2122_daily_bin1051.fits scfile=/scratch/kocevski/601720/ft2_4FGL_J1224.9+2122_daily_bin1051.fits outfile=/scratch/kocevski/601720/cmap_HighResolution_511747201_512006401_4FGL_J1224.9+2122_daily_bin1051.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2767       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0899       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0694       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1377       1.0000         .10000E-03   10000.    
    10 'norm      '    12.125       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3010       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12498E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.644       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10998E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32322E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1146       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3905       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6198       1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1433       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0048       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=   5829.885     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2946 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9735       -.34196E-06** at limit **
   2  Prefactor     4.2831        12.096       -.24201E-05   -.10566E-03
   3  Prefactor     .10000E-03    .50836       -.34499E-07** at limit **
   4  norm          1.0901        1.0878       -.20189E-06   -.83581E-03
   5  Prefactor     20.650        14.959       -.14680E-05    .26554E-05
   6  Prefactor     .10000E-03    1.2752        .74195E-08** at limit **
   7  Prefactor     .10000E-03    26.604        .13546E-04** at limit **
   8  Prefactor     1.0686        2.2980       -.46238E-06   -.11372E-02
   9  Prefactor     4.1381        3.6332        .15967E-06   -.11166E-03
  10  norm          12.124        3.7276        .26629E-06    .40471E-03
  11  Prefactor     .10000E-03    .86914       -.14394E-07** at limit **
  12  Prefactor     3.3019        2.0898       -.64341E-07    .61371E-03
  13  Prefactor     .10000E-03    2.8312        .51367E-06** at limit **
  14  norm          .10000E-03    .13081       -.35353E-07** at limit **
  15  norm          12.643        5.2735       -.54727E-07    .16276E-03
  16  Prefactor     .10000E-03    6.6411       -.20675E-05** at limit **
  17  Prefactor     .10021E-03    7.5006       -.32440E-05** at limit **
  18  Prefactor     3.0751        30.498       -.14185E-04   -.33195E-04
  19  Prefactor     .10000E-03    25.185       -.10866E-04** at limit **
  20  Prefactor     .10000E-03    3.8791        .30188E-06** at limit **
  21  Prefactor     1.3902        17.457       -.36510E-05   -.34538E-03
  22  norm          2.6202        3.1822       -.21283E-06   -.30625E-03
  23  norm          .10000E-03    7.6413        .13665E-05** at limit **
  24  Normalizat    1.1432        .18594        .85495E-06    .39185E-03
  25  Prefactor     1.0048        .19112        .13484E-05    .29216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.28315
  Prefactor  = 0.0001
  norm       = 1.0901
  Prefactor  = 20.6496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06856
  Prefactor  = 4.13806
  norm       = 12.1237
  Prefactor  = 0.0001
  Prefactor  = 3.3019
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 12.6434
  Prefactor  = 0.0001
  Prefactor  = 0.000100209
  Prefactor  = 3.07513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3902
  norm       = 2.62017
  norm       = 0.0001
  Normalizat = 1.14316
  Prefactor  = 1.00485
 **********
 **   18 **HESSE 
 **********

 FCN=   5829.885     FROM HESSE     STATUS=OK           433 CALLS     3379 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9762        .14864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2831        12.170        .19482E-03   -1.5294    
   3  Prefactor     .10000E-03    .51936        .53147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0901        1.0292        .76426E-03   -1.5499    
   5  Prefactor     20.650        14.952        .88158E-04   -1.4799    
   6  Prefactor     .10000E-03    1.2947        .84148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0686        1.9230        .15155E-02   -1.5501    
   9  Prefactor     4.1381        3.4851        .11997E-03   -1.5301    
  10  norm          12.124        3.7199        .78000E-04   -1.5011    
  11  Prefactor     .10000E-03    .87747        .69412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3019        2.0747        .83117E-04   -1.5345    
  13  Prefactor     .10000E-03    5.9321        .24754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .26318        .53078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.643        5.2366        .10816E-03   -1.4997    
  16  Prefactor     .10000E-03    6.6178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10021E-03    29.509        .39064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0751        30.691        .22975E-03   -1.5357    
  19  Prefactor     .10000E-03    24.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8935        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3902        18.700        .36854E-03   -1.5472    
  22  norm          2.6202        3.1768        .14530E-03   -1.5384    
  23  norm          .10000E-03    7.6360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1432        .21692        .24020E-03   -.88378    
  25  Prefactor     1.0048        .22393        .26830E-03   -.92568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03165e-09
Minuit parameter uncertainties:
  1  1.34167e-06
  2  12.1767
  3  8.02798e-07
  4  1.0292
  5  14.9545
  6  1.22935e-06
  7  6.41286e-06
  8  1.92314
  9  3.4853
  10  3.71995
  11  2.27806e-06
  12  2.07475
  13  0.000188335
  14  2.42005e-06
  15  5.2368
  16  6.98889e-05
  17  0.00496784
  18  19.4423
  19  3.19494e-06
  20  7.64697e-06
  21  10.201
  22  3.17703
  23  1.73104e-06
  24  0.217094
  25  0.224138
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  2.420e-06  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.005e+00  2.241e-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.143e+00  2.171e-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: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601720/likelihoodResults_511747201_512006401_4FGL_J1224.9+2122_daily_bin1051.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) = 5829.90403983
delta logL = -0.0188832324229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5829.71918502
delta logL = 0.165971570867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12791E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0284       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=   5829.719     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      301 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12763E-01    .81856        .33586E-02   -.49968E-02
   2  alpha         5.0000        4.0711        .46313    ** at limit **
   3  Normalizat    1.1058        .50242E-01    .55120E-01   -.18698E-03
   4  Prefactor     1.0284        .51225E-01    .60098E-01   -.89954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0127628
  alpha      = 5
  Normalizat = 1.1058
  Prefactor  = 1.02836
 **********
 **   18 **HESSE 
 **********

 FCN=   5829.719     FROM HESSE     STATUS=OK            33 CALLS      334 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12763E-01    .31411E-01    .14644E-04   -1.5685    
   2  alpha         5.0000        4.6629        .50000        1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1058        .21941        .24373E-03   -.89566    
   4  Prefactor     1.0284        .22562        .26576E-03   -.91790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36851e-09
Minuit parameter uncertainties:
  1  0.0314108
  2  0.00110188
  3  0.219588
  4  0.225828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601720': 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) = 5829.71918057
delta logL = 0.165976019955

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.276e-02  3.141e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  1.102e-03  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.028e+00  2.258e-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.106e+00  2.196e-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/601720/cmap_HighResolution_511747201_512006401_4FGL_J1224.9+2122_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-05', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-09-05 13:45:19.292064', job_id='601720', GAL2='1.03', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1630874719.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.66e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1051' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 601720: <4FGL_J1224.9+2122_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1051 186.228 21.3814 511747201 512006401 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 :                                   721.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.77 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.

