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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1002
RA = 186.228, Dec = 21.3814
tmin = 499046401, tmax = 499305601
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='601643', job_status='RUN', time_executed='2021-09-05 13:34:18.754656', time_epoch_executed='1630874058.75' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601643/ft1_4FGL_J1224.9+2122_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601643/ft2_4FGL_J1224.9+2122_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601643/ft1_4FGL_J1224.9+2122_daily_bin1002.fits outfile=/scratch/kocevski/601643/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1002.fits ra=186.228 dec=21.3814 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.28
user 4.05
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601643/ft1_filtered_4FGL_J1224.9+2122_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/601643/ft2_4FGL_J1224.9+2122_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/601643/ltcube_499046401_499305601_4FGL_J1224.9+2122_daily_bin1002.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/601643/ft2_4FGL_J1224.9+2122_daily_bin1002.fits
.....................!
real 11.96
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601643/ft1_filtered_4FGL_J1224.9+2122_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/601643/ft2_4FGL_J1224.9+2122_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/601643/ltcube_499046401_499305601_4FGL_J1224.9+2122_daily_bin1002.fits outfile=/scratch/kocevski/601643/expmap_499046401_499305601_4FGL_J1224.9+2122_daily_bin1002.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/601643/ltcube_499046401_499305601_4FGL_J1224.9+2122_daily_bin1002.fits
.....................!
real 192.16
user 186.26
sys 5.54

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/601643/ft1_filtered_4FGL_J1224.9+2122_daily_bin1002.fits scfile=/scratch/kocevski/601643/ft2_4FGL_J1224.9+2122_daily_bin1002.fits outfile=/scratch/kocevski/601643/cmap_499046401_499305601_4FGL_J1224.9+2122_daily_bin1002.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601643/ft1_filtered_4FGL_J1224.9+2122_daily_bin1002.fits scfile=/scratch/kocevski/601643/ft2_4FGL_J1224.9+2122_daily_bin1002.fits outfile=/scratch/kocevski/601643/cmap_HighResolution_499046401_499305601_4FGL_J1224.9+2122_daily_bin1002.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.428       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .84707       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8298       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.263       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3216       1.0000         .10000E-03   10000.    
    10 'norm      '    7.6696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .49126E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.377       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.834       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7283       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0557       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9316       1.0000         .10000E-03   10000.    
    23 'norm      '    16.538       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99054       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96210       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=   4555.742     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2939 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.442        32.191       -.46994E-05   -.90379E-04
   2  Prefactor     .10000E-03    24.903        .62988E-06** at limit **
   3  Prefactor     .84435        2.9441        .31047E-05   -.14353E-03
   4  norm          1.8296        1.4331        .13676E-06   -.13645E-03
   5  Prefactor     15.259        21.525        .45748E-06   -.81406E-05
   6  Prefactor     .10000E-03    1.6088        .25534E-07** at limit **
   7  Prefactor     .10000E-03    60.615        .36791E-07** at limit **
   8  Prefactor     2.7908        2.9373       -.22733E-07   -.72871E-04
   9  Prefactor     3.3210        3.2891        .55104E-07   -.12289E-03
  10  norm          7.6685        3.8154        .40601E-07   -.40453E-04
  11  Prefactor     .10000E-03    1.7192       -.10115E-07** at limit **
  12  Prefactor     1.8423        2.2910        .11134E-06   -.71741E-04
  13  Prefactor     .10000E-03    5.9118        .16743E-06** at limit **
  14  norm          .49049E-01    .22995        .24898E-06   -.85004E-03
  15  norm          .10000E-03    1.7277        .25622E-07** at limit **
  16  Prefactor     26.380        13.538        .11722E-06   -.56925E-05
  17  Prefactor     .10000E-03    5.9624       -.66974E-07** at limit **
  18  Prefactor     .10000E-03    13.877        .70387E-07** at limit **
  19  Prefactor     45.712        69.983       -.28295E-06   -.69568E-04
  20  Prefactor     4.7274        9.0330        .54049E-06   -.40519E-04
  21  Prefactor     7.0525        19.961        .95123E-06   -.91033E-05
  22  norm          1.9315        2.1964        .15831E-07    .13711E-04
  23  norm          16.538        19.416        .11867E-06   -.86489E-06
  24  Normalizat    .99086        .21502       -.14079E-05   -.14463E-03
  25  Prefactor     .96183        .20495       -.87163E-06   -.97113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4423
  Prefactor  = 0.0001
  Prefactor  = 0.844345
  norm       = 1.82959
  Prefactor  = 15.2593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79083
  Prefactor  = 3.32099
  norm       = 7.66851
  Prefactor  = 0.0001
  Prefactor  = 1.84234
  Prefactor  = 0.0001
  norm       = 0.0490487
  norm       = 0.0001
  Prefactor  = 26.3795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.7116
  Prefactor  = 4.72742
  Prefactor  = 7.05248
  norm       = 1.93146
  norm       = 16.5376
  Normalizat = 0.99086
  Prefactor  = 0.961827
 **********
 **   18 **HESSE 
 **********

 FCN=   4555.742     FROM HESSE     STATUS=OK           437 CALLS     3376 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.442        32.354        .79440E-04   -1.4699    
   2  Prefactor     .10000E-03    25.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .84435        2.9553        .17547E-03   -1.5524    
   4  norm          1.8296        1.4232        .68017E-04   -1.5437    
   5  Prefactor     15.259        21.520        .10252E-03   -1.4927    
   6  Prefactor     .10000E-03    1.6147        .83571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7908        2.9187        .11099E-03   -1.5374    
   9  Prefactor     3.3210        3.2735        .11397E-03   -1.5343    
  10  norm          7.6685        3.8039        .88353E-04   -1.5154    
  11  Prefactor     .10000E-03    1.7717        .17232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8423        2.2699        .10770E-03   -1.5436    
  13  Prefactor     .10000E-03    6.0267        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .49049E-01    .30509        .58251E-03   -1.5664    
  15  norm          .10000E-03    1.7319        .86625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.380        13.539        .78000E-04   -1.4680    
  17  Prefactor     .10000E-03    5.9824        .16092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.712        69.808        .29612E-03   -1.4355    
  20  Prefactor     4.7274        9.0261        .18505E-03   -1.5273    
  21  Prefactor     7.0525        19.955        .15102E-03   -1.5177    
  22  norm          1.9315        2.1943        .10376E-03   -1.5430    
  23  norm          16.538        19.414        .98486E-04   -1.4894    
  24  Normalizat    .99086        .24714        .25181E-03   -.93337    
  25  Prefactor     .96183        .23684        .25720E-03   -.94013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55896e-08
Minuit parameter uncertainties:
  1  32.3767
  2  3.27283e-05
  3  2.95581
  4  1.42321
  5  21.5307
  6  1.78591e-06
  7  3.05463e-05
  8  2.91887
  9  3.27366
  10  3.80399
  11  3.86075e-06
  12  2.27002
  13  1.72314e-06
  14  0.244408
  15  1.11523e-07
  16  13.5402
  17  9.11848e-06
  18  3.92066e-06
  19  69.9328
  20  9.02869
  21  19.9739
  22  2.19439
  23  19.4215
  24  0.247425
  25  0.237099
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.905e-02  2.444e-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:  9.618e-01  2.371e-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.909e-01  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601643/likelihoodResults_499046401_499305601_4FGL_J1224.9+2122_daily_bin1002.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) = 4554.95953455
delta logL = 0.78211585526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4554.92946677
delta logL = 0.812183637587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37726E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .89981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0210       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=   4554.929     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      277 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37722E-01    1.2011        .24603E-02    .28353E-02
   2  alpha         5.0000        2.7533        .46269    ** at limit **
   3  Normalizat    .89947        .97812E-01    .44899E-01    .98213E-05
   4  Prefactor     1.0214        .95986E-01    .42039E-01    .89138E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0377216
  alpha      = 5
  Normalizat = 0.899468
  Prefactor  = 1.02139
 **********
 **   18 **HESSE 
 **********

 FCN=   4554.929     FROM HESSE     STATUS=OK            37 CALLS      314 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37722E-01    .47557E-01    .11181E-03   -1.5669    
   2  alpha         5.0000        4.2691        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89947        .24147        .26281E-03   -.96479    
   4  Prefactor     1.0214        .23760        .25044E-03   -.92020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25698e-10
Minuit parameter uncertainties:
  1  0.047557
  2  7.00338e-05
  3  0.241758
  4  0.237849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601643': 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) = 4554.9294641
delta logL = 0.812186307807

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.772e-02  4.756e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  7.003e-05  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.021e+00  2.378e-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:  8.995e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 186.228 21.381
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.31e-08 +/- 1.04e-07
Energy Flux (Free Index): 1.11e-05 +/- 1.40e-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/601643/cmap_HighResolution_499046401_499305601_4FGL_J1224.9+2122_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='8.12e-01', photon_flux2='8.31e-08', job_status='DONE', time_completed='2021-09-05 13:44:35.849705', photon_index_error2='0.00', photon_index2='5.00', ts='0.05', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.40e-05', EG='0.99', time_epoch_completed='1630874675.85', return_code='0', job_id='601643', GAL2='1.02', EG2='0.90', return_code2='0', photon_flux_error2='1.04e-07', ts2='1.80', photon_index='2.28' WHERE bin_id='1002' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 601643: <4FGL_J1224.9+2122_daily_bin1002> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1002 186.228 21.3814 499046401 499305601 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

