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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1027
RA = 186.228, Dec = 21.3814
tmin = 505526401, tmax = 505785601
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='601682', job_status='RUN', time_executed='2021-09-05 13:32:44.577846', time_epoch_executed='1630873964.58' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601682

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601682/ft1_4FGL_J1224.9+2122_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601682/ft2_4FGL_J1224.9+2122_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601682/ft1_4FGL_J1224.9+2122_daily_bin1027.fits outfile=/scratch/kocevski/601682/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1027.fits ra=186.228 dec=21.3814 rad=12.0 tmin=505526401.0 tmax=505785601.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.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601682/ft1_filtered_4FGL_J1224.9+2122_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/601682/ft2_4FGL_J1224.9+2122_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/601682/ltcube_505526401_505785601_4FGL_J1224.9+2122_daily_bin1027.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/601682/ft2_4FGL_J1224.9+2122_daily_bin1027.fits
.....................!
real 11.69
user 11.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601682/ft1_filtered_4FGL_J1224.9+2122_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/601682/ft2_4FGL_J1224.9+2122_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/601682/ltcube_505526401_505785601_4FGL_J1224.9+2122_daily_bin1027.fits outfile=/scratch/kocevski/601682/expmap_505526401_505785601_4FGL_J1224.9+2122_daily_bin1027.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/601682/ltcube_505526401_505785601_4FGL_J1224.9+2122_daily_bin1027.fits
.....................!
real 190.69
user 185.30
sys 4.96

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/601682/ft1_filtered_4FGL_J1224.9+2122_daily_bin1027.fits scfile=/scratch/kocevski/601682/ft2_4FGL_J1224.9+2122_daily_bin1027.fits outfile=/scratch/kocevski/601682/cmap_505526401_505785601_4FGL_J1224.9+2122_daily_bin1027.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 1.14
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601682/ft1_filtered_4FGL_J1224.9+2122_daily_bin1027.fits scfile=/scratch/kocevski/601682/ft2_4FGL_J1224.9+2122_daily_bin1027.fits outfile=/scratch/kocevski/601682/cmap_HighResolution_505526401_505785601_4FGL_J1224.9+2122_daily_bin1027.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.90
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33220       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2780       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3906       1.0000         .10000E-03   10000.    
    10 'norm      '    14.656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2695       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14252       1.0000         .10000E-03   10000.    
    15 'norm      '    5.6064       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0727       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9837       1.0000         .10000E-03   10000.    
    22 'norm      '    6.0528       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .72548       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1255       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=   5649.892     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2906 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.821        23.255       -.17793E-04   -.35925E-03
   2  Prefactor     .10000E-03    7.4447       -.35173E-06** at limit **
   3  Prefactor     .33447        1.1714        .19504E-05    .39556E-03
   4  norm          2.8237        1.3038        .34127E-06   -.14455E-03
   5  Prefactor     .10001E-03    9.2302        .16015E-06** at limit **
   6  Prefactor     .10000E-03    5.5059       -.12188E-05** at limit **
   7  Prefactor     4.1971        186.12       -.34351E-03    .53594E-04
   8  Prefactor     8.8461        4.6491       -.47046E-06    .16444E-03
   9  Prefactor     4.3908        3.9278       -.50769E-06    .22595E-04
  10  norm          14.656        4.2958       -.16018E-06    .14562E-03
  11  Prefactor     5.2696        2.5854       -.12713E-06    .15925E-03
  12  Prefactor     1.0397        1.8534       -.83133E-06   -.17908E-02
  13  Prefactor     .10000E-03    3.8186        .79348E-06** at limit **
  14  norm          .14251        .14878       -.11722E-06   -.10171E-02
  15  norm          5.6061        3.5271       -.41917E-06    .96712E-04
  16  Prefactor     5.0726        6.7011       -.36427E-06   -.39711E-04
  17  Prefactor     .10000E-03    3.5645        .42621E-07** at limit **
  18  Prefactor     .10000E-03    6.9439        .22628E-05** at limit **
  19  Prefactor     .10000E-03    45.413        .66647E-05** at limit **
  20  Prefactor     .10000E-03    2.0719       -.16743E-06** at limit **
  21  Prefactor     8.9846        13.582       -.29280E-05   -.25722E-04
  22  norm          6.0534        3.9088       -.43312E-06   -.30356E-04
  23  norm          .10000E-03    9.5455        .30125E-06** at limit **
  24  Normalizat    .72527        .18563        .63262E-05   -.25130E-04
  25  Prefactor     1.1257        .18341        .25920E-05    .12187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8206
  Prefactor  = 0.0001
  Prefactor  = 0.334469
  norm       = 2.82366
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 4.19708
  Prefactor  = 8.84607
  Prefactor  = 4.39075
  norm       = 14.6561
  Prefactor  = 5.26958
  Prefactor  = 1.03968
  Prefactor  = 0.0001
  norm       = 0.142508
  norm       = 5.60607
  Prefactor  = 5.07257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.98463
  norm       = 6.05341
  norm       = 0.0001
  Normalizat = 0.725271
  Prefactor  = 1.12573
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.892     FROM HESSE     STATUS=OK           435 CALLS     3341 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.821        22.726        .78802E-04   -1.4691    
   2  Prefactor     .10000E-03    7.4895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33447        1.2583        .13736E-02   -1.5592    
   4  norm          2.8237        1.3030        .55398E-04   -1.5372    
   5  Prefactor     .10001E-03    9.2547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7239        .34308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1971        187.64        .19479E-03   -1.5298    
   8  Prefactor     8.8461        4.6245        .10039E-03   -1.5113    
   9  Prefactor     4.3908        3.9064        .12295E-03   -1.5289    
  10  norm          14.656        4.2722        .78457E-04   -1.4942    
  11  Prefactor     5.2696        2.5820        .79964E-04   -1.5249    
  12  Prefactor     1.0397        1.5738        .12784E-02   -1.5504    
  13  Prefactor     .10000E-03    3.8727        .14333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .14251        .14395        .28439E-03   -1.5632    
  15  norm          5.6061        3.5226        .10844E-03   -1.5234    
  16  Prefactor     5.0726        6.6962        .17852E-03   -1.5257    
  17  Prefactor     .10000E-03    3.5729        .13857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0749        .10565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9846        13.586        .13372E-03   -1.5108    
  22  norm          6.0534        3.9083        .11498E-03   -1.5216    
  23  norm          .10000E-03    9.5527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .72527        .21889        .28116E-03   -1.0290    
  25  Prefactor     1.1257        .21862        .24136E-03   -.88648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77282e-09
Minuit parameter uncertainties:
  1  22.734
  2  2.02234e-05
  3  1.25842
  4  1.30303
  5  0.000658493
  6  1.15074e-05
  7  56.3147
  8  4.62473
  9  3.90663
  10  4.27232
  11  2.58206
  12  1.57391
  13  2.3239e-05
  14  0.14395
  15  3.52278
  16  6.69719
  17  9.60134e-06
  18  3.6043e-06
  19  0.000118902
  20  9.89604e-06
  21  13.5908
  22  3.90846
  23  1.54566e-05
  24  0.219154
  25  0.218792
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.425e-01  1.439e-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.126e+00  2.188e-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:  7.253e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 8.37e-06 +/- 8.45e-06

TS (Fixed Index): 2.62
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601682/likelihoodResults_505526401_505785601_4FGL_J1224.9+2122_daily_bin1027.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) = 5648.84469436
delta logL = 1.04754890577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5648.83593046
delta logL = 1.05631280569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66717E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2320       1.0000          .0000       5.0000    
     3 'Normalizat'    .74401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1123       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=   5648.836     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66715E-01    .62828E-01    .35595E-02   -.41208E-02
   2  alpha         1.2320        .35967        .27405       -.65825E-05
   3  Normalizat    .74407        .17291        .62768E-01    .21258E-05
   4  Prefactor     1.1123        .18209        .54821E-01   -.11510E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0667151
  alpha      = 1.23205
  Normalizat = 0.744069
  Prefactor  = 1.11226
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.836     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66715E-01    .83421E-01    .15823E-04   -1.5656    
   2  alpha         1.2320        .53216        .10910E-01   -.53191    
   3  Normalizat    .74407        .20528        .27767E-03   -1.0218    
   4  Prefactor     1.1123        .21641        .24238E-03   -.89076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02296e-10
Minuit parameter uncertainties:
  1  0.0834212
  2  0.537721
  3  0.205496
  4  0.216577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601682': 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) = 5648.83593041
delta logL = 1.0563128575

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.672e-02  8.342e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.232e+00  5.377e-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.112e+00  2.166e-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:  7.441e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.23 +/- 0.54
Photon Flux (Free Index): 1.03e-08 +/- 1.01e-08
Energy Flux (Free Index): 4.11e-05 +/- 5.61e-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/601682/cmap_HighResolution_505526401_505785601_4FGL_J1224.9+2122_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='4.11e-05', photon_flux_error='2.43e-08', dlogl='1.06e+00', energy_flux='8.37e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-09-05 13:44:08.344307', photon_index_error2='0.54', photon_index2='1.23', ts='2.62', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='9.12e-08', energy_flux_error2='5.61e-05', EG='0.73', time_epoch_completed='1630874648.34', return_code='0', job_id='601682', GAL2='1.11', EG2='0.74', return_code2='0', energy_flux_error='8.45e-06', photon_flux_error2='1.01e-08', ts2='4.74', photon_index='2.28' WHERE bin_id='1027' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 601682: <4FGL_J1224.9+2122_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1027 186.228 21.3814 505526401 505785601 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 :                                   678.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

