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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin79
RA = 186.228, Dec = 21.3814
tmin = 259804801, tmax = 260064001
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='597172', job_status='RUN', time_executed='2021-09-05 13:17:53.573060', time_epoch_executed='1630873073.57' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597172/ft1_4FGL_J1224.9+2122_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597172/ft2_4FGL_J1224.9+2122_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597172/ft1_4FGL_J1224.9+2122_daily_bin79.fits outfile=/scratch/kocevski/597172/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin79.fits ra=186.228 dec=21.3814 rad=12.0 tmin=259804801.0 tmax=260064001.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 2.68
user 2.47
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597172/ft1_filtered_4FGL_J1224.9+2122_daily_bin79.fits" evtable="EVENTS" scfile=/scratch/kocevski/597172/ft2_4FGL_J1224.9+2122_daily_bin79.fits sctable="SC_DATA" outfile=/scratch/kocevski/597172/ltcube_259804801_260064001_4FGL_J1224.9+2122_daily_bin79.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/597172/ft2_4FGL_J1224.9+2122_daily_bin79.fits
.....................!
real 12.73
user 12.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597172/ft1_filtered_4FGL_J1224.9+2122_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/597172/ft2_4FGL_J1224.9+2122_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/597172/ltcube_259804801_260064001_4FGL_J1224.9+2122_daily_bin79.fits outfile=/scratch/kocevski/597172/expmap_259804801_260064001_4FGL_J1224.9+2122_daily_bin79.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/597172/ltcube_259804801_260064001_4FGL_J1224.9+2122_daily_bin79.fits
.....................!
real 191.90
user 186.01
sys 5.50

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/597172/ft1_filtered_4FGL_J1224.9+2122_daily_bin79.fits scfile=/scratch/kocevski/597172/ft2_4FGL_J1224.9+2122_daily_bin79.fits outfile=/scratch/kocevski/597172/cmap_259804801_260064001_4FGL_J1224.9+2122_daily_bin79.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597172/ft1_filtered_4FGL_J1224.9+2122_daily_bin79.fits scfile=/scratch/kocevski/597172/ft2_4FGL_J1224.9+2122_daily_bin79.fits outfile=/scratch/kocevski/597172/cmap_HighResolution_259804801_260064001_4FGL_J1224.9+2122_daily_bin79.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.55
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44586E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26247       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0992       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4951       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11180E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0966       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56753       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5957       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7154       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15479E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34026       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56114E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9331       1.0000         .10000E-03   10000.    
    22 'norm      '    7.6393       1.0000         .10000E-03   10000.    
    23 'norm      '    20.794       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99655       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2912       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=   8510.524     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2610 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10077E-03    7.1442       -.31448E-06** at limit **
   2  Prefactor     .22093        6.8219       -.24545E-06    .42757E-04
   3  Prefactor     2.0996        1.6855        .16778E-07   -.38537E-03
   4  norm          3.4951        1.2310        .18726E-07   -.23714E-04
   5  Prefactor     .10000E-03    8.7345        .10827E-06** at limit **
   6  Prefactor     .10000E-03    3.6274        .19717E-07** at limit **
   7  Prefactor     .10000E-03    29.195        .38898E-06** at limit **
   8  Prefactor     1.0984        2.5724       -.13979E-06   -.88467E-03
   9  Prefactor     .56975        2.4488       -.69280E-06   -.60987E-03
  10  norm          2.5960        2.2638        .43176E-07   -.37156E-04
  11  Prefactor     2.7530        2.2398       -.53514E-08   -.43587E-03
  12  Prefactor     3.7157        1.9751        .90970E-07   -.96883E-05
  13  Prefactor     .10000E-03    2.2526        .92004E-07** at limit **
  14  norm          .34023        .17459        .32852E-08   -.17726E-03
  15  norm          .10000E-03    1.4482        .90275E-08** at limit **
  16  Prefactor     .94021E-01    4.9012       -.11340E-05    .44322E-03
  17  Prefactor     7.4888        6.6300       -.23526E-05    .19644E-04
  18  Prefactor     .10000E-03    13.778       -.14986E-06** at limit **
  19  Prefactor     .10000E-03    37.685       -.81727E-06** at limit **
  20  Prefactor     10.990        8.0920        .37652E-05   -.93500E-04
  21  Prefactor     4.9327        10.654        .37720E-05   -.11292E-03
  22  norm          7.6403        3.9758       -.24872E-06   -.22413E-03
  23  norm          20.785        17.441       -.40222E-05    .49074E-06
  24  Normalizat    .99668        .17139       -.15236E-06    .25209E-03
  25  Prefactor     1.2911        .17219       -.45225E-06    .29435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010077
  Prefactor  = 0.220926
  Prefactor  = 2.0996
  norm       = 3.49515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09842
  Prefactor  = 0.569752
  norm       = 2.59598
  Prefactor  = 2.75303
  Prefactor  = 3.71572
  Prefactor  = 0.0001
  norm       = 0.340233
  norm       = 0.0001
  Prefactor  = 0.0940215
  Prefactor  = 7.48881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9904
  Prefactor  = 4.93265
  norm       = 7.64031
  norm       = 20.7853
  Normalizat = 0.996678
  Prefactor  = 1.29108
 **********
 **   18 **HESSE 
 **********

 FCN=   8510.524     FROM HESSE     STATUS=OK           463 CALLS     3073 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10077E-03    13.486        .81748E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22093        13.553        .67213E-01   -1.5614    
   3  Prefactor     2.0996        1.6751        .10140E-03   -1.5418    
   4  norm          3.4951        1.2309        .58298E-04   -1.5334    
   5  Prefactor     .10000E-03    8.7721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7619        .34182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0984        2.3182        .17739E-03   -1.5498    
   9  Prefactor     .56975        3.7240        .22191E-02   -1.5557    
  10  norm          2.5960        2.2621        .12003E-03   -1.5386    
  11  Prefactor     2.7530        2.2274        .11520E-03   -1.5376    
  12  Prefactor     3.7157        1.9722        .89403E-04   -1.5322    
  13  Prefactor     .10000E-03    4.7012        .26835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34023        .17277        .26426E-04   -1.5591    
  15  norm          .10000E-03    1.4586        .10833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .94021E-01    7.7685        .65394E-01   -1.5647    
  17  Prefactor     7.4888        6.6338        .14654E-03   -1.5161    
  18  Prefactor     .10000E-03    13.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.990        7.9838        .12082E-03   -1.5045    
  21  Prefactor     4.9327        10.526        .18108E-03   -1.5264    
  22  norm          7.6403        3.9815        .12681E-03   -1.5155    
  23  norm          20.785        17.446        .87836E-04   -1.4796    
  24  Normalizat    .99668        .20128        .27519E-03   -.93142    
  25  Prefactor     1.2911        .20364        .25902E-03   -.83573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29886e-09
Minuit parameter uncertainties:
  1  0.00644478
  2  3.46083
  3  1.67512
  4  1.23088
  5  1.01912e-05
  6  2.06366e-05
  7  8.36177e-06
  8  2.31835
  9  2.91326
  10  2.26213
  11  2.22746
  12  1.97225
  13  8.59435e-06
  14  0.172767
  15  1.3217e-06
  16  1.7086
  17  6.63444
  18  2.82924e-05
  19  1.40069e-05
  20  7.98456
  21  10.5299
  22  3.98161
  23  17.4503
  24  0.201436
  25  0.203769
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.402e-01  1.728e-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.291e+00  2.038e-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:  9.967e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.79
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.01e-05

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) = 8509.40416903
delta logL = 1.12029520074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8509.39770416
delta logL = 1.12676007168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24779       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6807       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2774       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=   8509.398     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24780        .14367        .55404E-02   -.54870E-02
   2  alpha         1.6807        .28321        .25606        .77537E-04
   3  Normalizat    1.0226        .15869        .61559E-01   -.21248E-03
   4  Prefactor     1.2774        .16780        .58850E-01   -.22500E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.247795
  alpha      = 1.68074
  Normalizat = 1.02259
  Prefactor  = 1.27738
 **********
 **   18 **HESSE 
 **********

 FCN=   8509.398     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24780        .17661        .24573E-04   -1.5608    
   2  alpha         1.6807        .38428        .10305E-01   -.33387    
   3  Normalizat    1.0226        .19101        .27225E-03   -.92277    
   4  Prefactor     1.2774        .20203        .26025E-03   -.83982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57025e-10
Minuit parameter uncertainties:
  1  0.176612
  2  0.385999
  3  0.191135
  4  0.202152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597172': 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) = 8509.39770414
delta logL = 1.1267600863

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.478e-01  1.766e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.681e+00  3.860e-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.277e+00  2.022e-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.023e+00  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.01
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.68 +/- 0.39
Photon Flux (Free Index): 3.35e-08 +/- 2.45e-08
Energy Flux (Free Index): 3.65e-05 +/- 2.76e-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/597172/cmap_HighResolution_259804801_260064001_4FGL_J1224.9+2122_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='3.65e-05', photon_flux_error='2.92e-08', dlogl='1.13e+00', energy_flux='2.00e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2021-09-05 13:30:17.552546', photon_index_error2='0.39', photon_index2='1.68', ts='11.79', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='2.76e-05', EG='1.00', time_epoch_completed='1630873817.55', return_code='0', job_id='597172', GAL2='1.28', EG2='1.02', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.45e-08', ts2='14.01', photon_index='2.28' WHERE bin_id='79' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:30:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 597172: <4FGL_J1224.9+2122_daily_bin79> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin79> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:53 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:55 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:15:55 2021
Terminated at Sun Sep  5 13:30:20 2021
Results reported at Sun Sep  5 13:30:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin79 186.228 21.3814 259804801 260064001 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            867 sec.

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

