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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin9
RA = 186.228, Dec = 21.3814
tmin = 241660801, tmax = 241920001
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='595795', job_status='RUN', time_executed='2021-09-05 13:14:03.276539', time_epoch_executed='1630872843.28' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595795/ft1_4FGL_J1224.9+2122_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595795/ft2_4FGL_J1224.9+2122_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595795/ft1_4FGL_J1224.9+2122_daily_bin9.fits outfile=/scratch/kocevski/595795/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin9.fits ra=186.228 dec=21.3814 rad=12.0 tmin=241660801.0 tmax=241920001.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 1.96
user 1.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595795/ft2_4FGL_J1224.9+2122_daily_bin9.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/595795/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin9.fits evtable="EVENTS" outfile="/scratch/kocevski/595795/ft1_filtered_4FGL_J1224.9+2122_daily_bin9.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.91
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595795/ft1_filtered_4FGL_J1224.9+2122_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/595795/ft2_4FGL_J1224.9+2122_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/595795/ltcube_241660801_241920001_4FGL_J1224.9+2122_daily_bin9.fits outfile=/scratch/kocevski/595795/expmap_241660801_241920001_4FGL_J1224.9+2122_daily_bin9.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/595795/ltcube_241660801_241920001_4FGL_J1224.9+2122_daily_bin9.fits
.....................!
real 193.80
user 186.53
sys 4.69

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/595795/ft1_filtered_4FGL_J1224.9+2122_daily_bin9.fits scfile=/scratch/kocevski/595795/ft2_4FGL_J1224.9+2122_daily_bin9.fits outfile=/scratch/kocevski/595795/cmap_241660801_241920001_4FGL_J1224.9+2122_daily_bin9.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.56
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0154       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7494       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.279       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .20998       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.689       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.554       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18304E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8494       1.0000         .10000E-03   10000.    
    23 'norm      '    12.686       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0749       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9729.387     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     2064 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1392       -.49932E-06** at limit **
   2  Prefactor     .10000E-03    2.5279       -.66705E-07** at limit **
   3  Prefactor     .10000E-03    .44830        .22666E-06** at limit **
   4  norm          4.9448        1.3864        .13405E-06   -.84513E-04
   5  Prefactor     15.637        6.5326        .13549E-04    .82646E-02
   6  Prefactor     8.0153        3.5398       -.48487E-06   -.10892E-02
   7  Prefactor     .10013E-03    550.27       -.12869E-03** at limit **
   8  Prefactor     3.0060        1.9868        .13417E-06    .13366E-03
   9  Prefactor     .10000E-03    .94400       -.43860E-07** at limit **
  10  norm          1.9258        2.0571       -.17622E-07    .69409E-04
  11  Prefactor     2.7493        2.3087        .23006E-06    .17003E-03
  12  Prefactor     15.279        3.1857        .75421E-06   -.14264E-02
  13  Prefactor     .10000E-03    7.6247       -.14156E-06** at limit **
  14  norm          .20997        .15396        .63435E-07    .27060E-03
  15  norm          .10000E-03    2.0038       -.28054E-06** at limit **
  16  Prefactor     .10000E-03    5.3348       -.46479E-06** at limit **
  17  Prefactor     18.167        2.1877       -.38051E-05   -.68747E-02
  18  Prefactor     24.675        18.178        .27947E-04   -.47964E-02
  19  Prefactor     24.567        3.6321       -.16189E-05    .15083E-02
  20  Prefactor     .10000E-03    11.351        .81044E-06** at limit **
  21  Prefactor     .10000E-03    26.126       -.21896E-05** at limit **
  22  norm          1.8489        2.1840        .24346E-06    .14138E-03
  23  norm          12.686        1.3360        .20456E-05    .88617E-03
  24  Normalizat    1.0750        .18335       -.41225E-05   -.96518E-04
  25  Prefactor     1.1201        .18350       -.46778E-06   -.19265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.94481
  Prefactor  = 15.6369
  Prefactor  = 8.01529
  Prefactor  = 0.000100132
  Prefactor  = 3.00598
  Prefactor  = 0.0001
  norm       = 1.9258
  Prefactor  = 2.74932
  Prefactor  = 15.2786
  Prefactor  = 0.0001
  norm       = 0.209965
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1674
  Prefactor  = 24.6751
  Prefactor  = 24.5667
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 1.84889
  norm       = 12.686
  Normalizat = 1.075
  Prefactor  = 1.12009
 **********
 **   18 **HESSE 
 **********

 FCN=   9729.387     FROM HESSE     STATUS=OK           499 CALLS     2563 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5232        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .44316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9448        1.3872        .45216E-02   -1.5263    
   5  Prefactor     15.637        12.370        .25322E-02   -1.4917    
   6  Prefactor     8.0153        3.5418        .35405E-02   -1.5142    
   7  Prefactor     .10013E-03    543.21        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0060        1.9939        .58527E-02   -1.5361    
   9  Prefactor     .10000E-03    .92956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9258        2.0712        .74840E-02   -1.5430    
  11  Prefactor     2.7493        2.3290        .61378E-02   -1.5376    
  12  Prefactor     15.279        3.2318        .25616E-02   -1.4926    
  13  Prefactor     .10000E-03    2.1611        .50646E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .20997        .15743        .71864E-02   -1.5616    
  15  norm          .10000E-03    1.9594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.167        9.4943        .23490E-02   -1.4855    
  18  Prefactor     24.675        21.781        .20155E-02   -1.4714    
  19  Prefactor     24.567        37.912        .20210E-02   -1.4716    
  20  Prefactor     .10000E-03    3.2846        .66267E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1016        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8489        2.2070        .76648E-02   -1.5436    
  23  norm          12.686        12.090        .28116E-02   -1.4995    
  24  Normalizat    1.0750        .15571        .61466E-01   -.90559    
  25  Prefactor     1.1201        .15423        .61962E-01   -.88827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48104e-07
Minuit parameter uncertainties:
  1  5.27471e-05
  2  1.74286e-07
  3  4.02591e-07
  4  1.38719
  5  12.3722
  6  3.54194
  7  0.0171149
  8  1.99391
  9  2.86805e-07
  10  2.07124
  11  2.32912
  12  3.23181
  13  2.23748e-05
  14  0.157429
  15  3.5277e-06
  16  3.23767e-05
  17  9.49512
  18  21.7883
  19  37.9496
  20  9.68503e-05
  21  0.000171118
  22  2.2071
  23  12.0926
  24  0.155776
  25  0.154293
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.100e-01  1.574e-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.120e+00  1.543e-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.075e+00  1.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 9.25e-06

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) = 9729.22113457
delta logL = 0.165436445661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9729.20683421
delta logL = 0.179736805594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14832       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7491       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1103       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=   9729.207     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14831        .12192        .62442E-02    .56316E-03
   2  alpha         1.7491        .42420        .30345       -.10180E-03
   3  Normalizat    1.0932        .14903        .61000E-01    .16984E-04
   4  Prefactor     1.1103        .15320        .62192E-01    .13520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.148313
  alpha      = 1.74914
  Normalizat = 1.09316
  Prefactor  = 1.11031
 **********
 **   18 **HESSE 
 **********

 FCN=   9729.207     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14831        .16130        .28186E-04   -1.5631    
   2  alpha         1.7491        .69787        .16044E-01   -.30505    
   3  Normalizat    1.0932        .17785        .26979E-03   -.89972    
   4  Prefactor     1.1103        .18243        .27506E-03   -.89138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46502e-08
Minuit parameter uncertainties:
  1  0.161302
  2  0.708239
  3  0.177947
  4  0.182534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595795': 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) = 9729.20683418
delta logL = 0.179736833757

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.483e-01  1.613e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.749e+00  7.082e-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.110e+00  1.825e-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.093e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.75 +/- 0.71
Photon Flux (Free Index): 2.02e-08 +/- 2.37e-08
Energy Flux (Free Index): 1.85e-05 +/- 2.07e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.85e-05', photon_flux_error='2.66e-08', dlogl='1.80e-01', energy_flux='1.23e-05', photon_flux2='2.02e-08', job_status='DONE', time_completed='2021-09-05 13:26:24.408314', photon_index_error2='0.71', photon_index2='1.75', ts='4.51', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.07e-05', EG='1.07', time_epoch_completed='1630873584.41', return_code='0', job_id='595795', GAL2='1.11', EG2='1.09', return_code2='0', energy_flux_error='9.25e-06', photon_flux_error2='2.37e-08', ts2='4.85', photon_index='2.28' WHERE bin_id='9' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:26:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 595795: <4FGL_J1224.9+2122_daily_bin9> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin9> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:11:26 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:11:28 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:11:28 2021
Terminated at Sun Sep  5 13:26:25 2021
Results reported at Sun Sep  5 13:26:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin9 186.228 21.3814 241660801 241920001 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 :                                   735.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

