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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1588
RA = 186.228, Dec = 21.3814
tmin = 650937601, tmax = 651196801
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='605018', job_status='RUN', time_executed='2021-09-05 13:44:20.825972', time_epoch_executed='1630874660.83' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605018/ft1_4FGL_J1224.9+2122_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605018/ft2_4FGL_J1224.9+2122_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605018/ft1_4FGL_J1224.9+2122_daily_bin1588.fits outfile=/scratch/kocevski/605018/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1588.fits ra=186.228 dec=21.3814 rad=12.0 tmin=650937601.0 tmax=651196801.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.60
user 3.34
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605018/ft1_filtered_4FGL_J1224.9+2122_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/605018/ft2_4FGL_J1224.9+2122_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/605018/ltcube_650937601_651196801_4FGL_J1224.9+2122_daily_bin1588.fits outfile=/scratch/kocevski/605018/expmap_650937601_651196801_4FGL_J1224.9+2122_daily_bin1588.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/605018/ltcube_650937601_651196801_4FGL_J1224.9+2122_daily_bin1588.fits
.....................!
real 191.84
user 186.24
sys 4.75

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/605018/ft1_filtered_4FGL_J1224.9+2122_daily_bin1588.fits scfile=/scratch/kocevski/605018/ft2_4FGL_J1224.9+2122_daily_bin1588.fits outfile=/scratch/kocevski/605018/cmap_650937601_651196801_4FGL_J1224.9+2122_daily_bin1588.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.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30483E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4234       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13884E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.437       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6635       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5987       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9513       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3821       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    23.263       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.846       1.0000         .10000E-03   10000.    
    22 'norm      '    .35829       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4463       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75267       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=   6699.948     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2930 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.619       -.79351E-05** at limit **
   2  Prefactor     10.445        9.2399       -.63670E-07    .42663E-04
   3  Prefactor     .10000E-03    1.0429       -.56013E-06** at limit **
   4  norm          5.4198        1.7452        .11813E-07    .52597E-03
   5  Prefactor     .10001E-03    27.936        .29162E-05** at limit **
   6  Prefactor     1.3015        3.1673       -.11247E-05   -.90941E-03
   7  Prefactor     36.396        67.236       -.58622E-04   -.45807E-05
   8  Prefactor     .10000E-03    1.4768       -.45344E-06** at limit **
   9  Prefactor     2.6643        2.7706       -.31424E-06   -.19942E-03
  10  norm          3.5997        4.1872        .22914E-06   -.44534E-03
  11  Prefactor     2.9513        2.3623       -.19220E-06    .12081E-03
  12  Prefactor     5.3822        3.8299       -.61785E-06   -.26344E-03
  13  Prefactor     .10000E-03    8.2624        .47631E-06** at limit **
  14  norm          .10000E-03    .64386E-01    .52485E-07** at limit **
  15  norm          23.268        7.5774       -.74822E-06    .79824E-04
  16  Prefactor     14.963        10.197       -.46925E-07    .18147E-04
  17  Prefactor     10.593        9.6583       -.17812E-06    .49508E-04
  18  Prefactor     .10000E-03    19.649       -.44756E-06** at limit **
  19  Prefactor     .10000E-03    52.472        .27891E-05** at limit **
  20  Prefactor     .10000E-03    2.3455       -.49832E-06** at limit **
  21  Prefactor     29.851        17.759       -.14460E-06    .28336E-04
  22  norm          .35915        2.0899       -.18491E-05    .60646E-03
  23  norm          .10000E-03    9.4593        .22382E-06** at limit **
  24  Normalizat    1.4462        .19703        .26243E-05    .39225E-03
  25  Prefactor     .75254        .18478        .20101E-05    .31414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.4455
  Prefactor  = 0.0001
  norm       = 5.41978
  Prefactor  = 0.000100013
  Prefactor  = 1.30146
  Prefactor  = 36.3959
  Prefactor  = 0.0001
  Prefactor  = 2.66427
  norm       = 3.59968
  Prefactor  = 2.9513
  Prefactor  = 5.38216
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 23.268
  Prefactor  = 14.9632
  Prefactor  = 10.5928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8506
  norm       = 0.359147
  norm       = 0.0001
  Normalizat = 1.44619
  Prefactor  = 0.752536
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.948     FROM HESSE     STATUS=OK           433 CALLS     3363 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.236        .42766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.445        9.2340        .12398E-03   -1.5061    
   3  Prefactor     .10000E-03    1.7499        .16132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4198        1.7447        .58711E-04   -1.5242    
   5  Prefactor     .10001E-03    28.820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3015        3.1381        .21721E-03   -1.5480    
   7  Prefactor     36.396        67.119        .66393E-04   -1.4501    
   8  Prefactor     .10000E-03    1.4918        .96875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6643        2.7594        .13250E-03   -1.5382    
  10  norm          3.5997        4.1669        .15388E-03   -1.5328    
  11  Prefactor     2.9513        2.3658        .10097E-03   -1.5364    
  12  Prefactor     5.3822        3.8087        .11808E-03   -1.5244    
  13  Prefactor     .10000E-03    8.5365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .71496E-01    .40365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          23.268        7.5655        .83050E-04   -1.4743    
  16  Prefactor     14.963        10.195        .10355E-03   -1.4934    
  17  Prefactor     10.593        9.6531        .12311E-03   -1.5057    
  18  Prefactor     .10000E-03    19.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    52.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3501        .12242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.851        17.777        .73338E-04   -1.4615    
  22  norm          .35915        7.2633        .22578E-02   -1.5588    
  23  norm          .10000E-03    9.4712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4462        .23155        .24901E-03   -.79302    
  25  Prefactor     .75254        .21645        .32164E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85117e-09
Minuit parameter uncertainties:
  1  0.000397485
  2  9.23521
  3  1.20882e-06
  4  1.7447
  5  0.00122358
  6  3.13848
  7  67.2588
  8  2.39261e-06
  9  2.75956
  10  4.1672
  11  2.36585
  12  3.80886
  13  7.81783e-07
  14  9.29576e-07
  15  7.56583
  16  10.196
  17  9.65447
  18  4.49551e-05
  19  5.15797e-05
  20  4.50739e-06
  21  17.7806
  22  3.23022
  23  2.42943e-06
  24  0.231715
  25  0.216697
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  9.296e-07  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.525e-01  2.167e-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.446e+00  2.317e-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: 5.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605018/likelihoodResults_650937601_651196801_4FGL_J1224.9+2122_daily_bin1588.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) = 6699.94825393
delta logL = -1.66313766385e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6699.94823724
delta logL = 6.12262738287e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2808       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75254       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=   6699.948     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      266 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .78510E-01    .40368E-03** at limit **
   2  alpha         2.3195        3.1708        .16541        .20811E-06
   3  Normalizat    1.4462        .22182        .24901E-03    .15705E-04
   4  Prefactor     .75254        .21523        .32164E-03   -.75641E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.31948
  Normalizat = 1.44619
  Prefactor  = 0.752535
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.948     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .71648E-01    .80735E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3195        2.8225        .66165E-01   -.72272E-01
   3  Normalizat    1.4462        .22202        .99605E-05   -.79302    
   4  Prefactor     .75254        .21543        .12865E-04   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82639e-11
Minuit parameter uncertainties:
  1  6.42183e-07
  2  31.9927
  3  0.222172
  4  0.215668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605018': 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) = 6699.94823646
delta logL = 8.41115252115e-07

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  6.422e-07  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.319e+00  3.199e+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.525e-01  2.157e-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.446e+00  2.222e-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/605018/cmap_HighResolution_650937601_651196801_4FGL_J1224.9+2122_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-09-05 13:57:08.422365', job_id='605018', GAL2='0.75', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630875428.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1588' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:57:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 605018: <4FGL_J1224.9+2122_daily_bin1588> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1588> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 13:41:19 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:41:22 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:41:22 2021
Terminated at Sun Sep  5 13:57:09 2021
Results reported at Sun Sep  5 13:57:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1588 186.228 21.3814 650937601 651196801 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 :                                   756.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            950 sec.

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

