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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin45
RA = 186.228, Dec = 21.3814
tmin = 250992001, tmax = 251251201
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='597106', job_status='RUN', time_executed='2021-09-05 13:18:25.023062', time_epoch_executed='1630873105.02' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597106/ft1_4FGL_J1224.9+2122_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597106/ft2_4FGL_J1224.9+2122_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597106/ft1_4FGL_J1224.9+2122_daily_bin45.fits outfile=/scratch/kocevski/597106/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin45.fits ra=186.228 dec=21.3814 rad=12.0 tmin=250992001.0 tmax=251251201.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.44
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597106/ft1_filtered_4FGL_J1224.9+2122_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/597106/ft2_4FGL_J1224.9+2122_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/597106/ltcube_250992001_251251201_4FGL_J1224.9+2122_daily_bin45.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/597106/ft2_4FGL_J1224.9+2122_daily_bin45.fits
.....................!
real 12.98
user 12.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597106/ft1_filtered_4FGL_J1224.9+2122_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/597106/ft2_4FGL_J1224.9+2122_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/597106/ltcube_250992001_251251201_4FGL_J1224.9+2122_daily_bin45.fits outfile=/scratch/kocevski/597106/expmap_250992001_251251201_4FGL_J1224.9+2122_daily_bin45.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/597106/ltcube_250992001_251251201_4FGL_J1224.9+2122_daily_bin45.fits
.....................!
real 190.04
user 184.96
sys 4.59

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/597106/ft1_filtered_4FGL_J1224.9+2122_daily_bin45.fits scfile=/scratch/kocevski/597106/ft2_4FGL_J1224.9+2122_daily_bin45.fits outfile=/scratch/kocevski/597106/cmap_250992001_251251201_4FGL_J1224.9+2122_daily_bin45.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597106/ft1_filtered_4FGL_J1224.9+2122_daily_bin45.fits scfile=/scratch/kocevski/597106/ft2_4FGL_J1224.9+2122_daily_bin45.fits outfile=/scratch/kocevski/597106/cmap_HighResolution_250992001_251251201_4FGL_J1224.9+2122_daily_bin45.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.6887       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7205       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1020       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7381       1.0000         .10000E-03   10000.    
    10 'norm      '    5.4296       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73799       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34067       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4897       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.173       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.131       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.501       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0343       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22089E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.909       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97173       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1545       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=   9486.286     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2903 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7559       -.17911E-07** at limit **
   2  Prefactor     .10000E-03    3.3800       -.38137E-07** at limit **
   3  Prefactor     .10000E-03    .73584        .13953E-06** at limit **
   4  norm          6.6886        1.4715       -.72581E-08   -.14111E-03
   5  Prefactor     6.8662        7.1074        .18808E-07   -.46953E-05
   6  Prefactor     3.7201        3.1557        .19156E-05   -.99618E-03
   7  Prefactor     9.4603        37.370        .78945E-06    .39492E-05
   8  Prefactor     3.1019        2.3786        .10563E-05   -.92280E-03
   9  Prefactor     5.7380        3.2525       -.29557E-06   -.19894E-03
  10  norm          5.4296        2.4075       -.97563E-07   -.72213E-04
  11  Prefactor     .73814        1.1709       -.19903E-06   -.90481E-03
  12  Prefactor     3.9652        2.1592        .98088E-06   -.96273E-03
  13  Prefactor     .10000E-03    2.2139       -.69012E-07** at limit **
  14  norm          .34065        .18524       -.23000E-07   -.11572E-02
  15  norm          1.4905        3.3703        .75130E-06   -.15823E-03
  16  Prefactor     13.176        11.436        .23715E-05    .15321E-03
  17  Prefactor     17.130        9.4929       -.26924E-06   -.34703E-04
  18  Prefactor     17.458        27.272       -.75149E-05   -.41369E-03
  19  Prefactor     8.0347        46.027        .87034E-06    .13154E-05
  20  Prefactor     .10002E-03    3.0188        .71440E-06** at limit **
  21  Prefactor     12.909        11.683        .35841E-06   -.33077E-04
  22  norm          .10000E-03    1.1551        .11850E-06** at limit **
  23  norm          .10000E-03    4.4554        .12226E-06** at limit **
  24  Normalizat    .97179        .15586       -.11320E-05   -.24712E-03
  25  Prefactor     1.1544        .15289       -.62608E-06   -.22156E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.68865
  Prefactor  = 6.86624
  Prefactor  = 3.72012
  Prefactor  = 9.46026
  Prefactor  = 3.10189
  Prefactor  = 5.73804
  norm       = 5.42957
  Prefactor  = 0.738143
  Prefactor  = 3.96517
  Prefactor  = 0.0001
  norm       = 0.340647
  norm       = 1.49047
  Prefactor  = 13.1761
  Prefactor  = 17.1299
  Prefactor  = 17.4579
  Prefactor  = 8.03473
  Prefactor  = 0.000100015
  Prefactor  = 12.9086
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.971787
  Prefactor  = 1.15444
 **********
 **   18 **HESSE 
 **********

 FCN=   9486.286     FROM HESSE     STATUS=OK           439 CALLS     3342 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3971        .17485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4647        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.6886        1.4723        .53075E-04   -1.5191    
   5  Prefactor     6.8662        7.1048        .15311E-03   -1.5184    
   6  Prefactor     3.7201        3.1740        .75740E-03   -1.5322    
   7  Prefactor     9.4603        37.346        .13030E-03   -1.5093    
   8  Prefactor     3.1019        2.3722        .59262E-03   -1.5356    
   9  Prefactor     5.7380        3.2355        .11839E-03   -1.5229    
  10  norm          5.4296        2.3824        .94722E-04   -1.5242    
  11  Prefactor     .73814        .89253        .12665E-02   -1.5536    
  12  Prefactor     3.9652        2.1673        .49570E-03   -1.5310    
  13  Prefactor     .10000E-03    2.2314        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34065        .18056        .29264E-04   -1.5591    
  15  norm          1.4905        3.3314        .25536E-03   -1.5464    
  16  Prefactor     13.176        11.666        .11036E-03   -1.4982    
  17  Prefactor     17.130        9.4820        .96768E-04   -1.4880    
  18  Prefactor     17.458        28.911        .95739E-04   -1.4872    
  19  Prefactor     8.0347        46.005        .14145E-03   -1.5141    
  20  Prefactor     .10002E-03    24.177        .32021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.909        11.678        .11149E-03   -1.4989    
  22  norm          .10000E-03    1.1671        .10219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.4560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97179        .17761        .27376E-03   -.93982    
  25  Prefactor     1.1544        .17688        .26244E-03   -.87745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1789e-09
Minuit parameter uncertainties:
  1  6.74984e-06
  2  9.86952e-06
  3  2.53286e-05
  4  1.47228
  5  7.1057
  6  3.17418
  7  37.4388
  8  2.37228
  9  3.23564
  10  2.38247
  11  0.892544
  12  2.16734
  13  7.47937e-06
  14  0.180555
  15  3.33181
  16  11.6682
  17  9.48286
  18  28.9343
  19  38.4969
  20  0.00120766
  21  11.6805
  22  1.02238e-06
  23  5.36086e-06
  24  0.177717
  25  0.17697
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.406e-01  1.806e-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.154e+00  1.770e-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.718e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.68
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.06e-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) = 9485.42501176
delta logL = 0.860527906203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9485.4192687
delta logL = 0.866270962062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34111       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0026       1.0000          .0000       5.0000    
     3 'Normalizat'    .91894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1887       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=   9485.419     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34108        2.2194        .53882E-02    .14243E-02
   2  alpha         3.0025        3.9399        .42255        .34306E-04
   3  Normalizat    .91893        .57474E-01    .45143E-01    .25004E-04
   4  Prefactor     1.1887        .61679E-01    .58590E-01    .81546E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.34108
  alpha      = 3.00248
  Normalizat = 0.918928
  Prefactor  = 1.18874
 **********
 **   18 **HESSE 
 **********

 FCN=   9485.419     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34108        .18028        .24192E-04   -1.5591    
   2  alpha         3.0025        .59634        .16952E-01    .20237    
   3  Normalizat    .91893        .17604        .28048E-03   -.95798    
   4  Prefactor     1.1887        .17836        .25909E-03   -.86679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60623e-12
Minuit parameter uncertainties:
  1  0.180278
  2  0.6024
  3  0.176152
  4  0.178446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597106': 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) = 9485.41926864
delta logL = 0.866271022949

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.411e-01  1.803e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.002e+00  6.024e-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.189e+00  1.784e-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.189e-01  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.51
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.00 +/- 0.60
Photon Flux (Free Index): 9.88e-08 +/- 4.98e-08
Energy Flux (Free Index): 1.97e-05 +/- 8.81e-06

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/597106/cmap_HighResolution_250992001_251251201_4FGL_J1224.9+2122_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='1.97e-05', photon_flux_error='3.05e-08', dlogl='8.66e-01', energy_flux='2.00e-05', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-09-05 13:32:05.854609', photon_index_error2='0.60', photon_index2='3.00', ts='6.68', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='8.81e-06', EG='0.97', time_epoch_completed='1630873925.85', return_code='0', job_id='597106', GAL2='1.19', EG2='0.92', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.98e-08', ts2='8.51', photon_index='2.28' WHERE bin_id='45' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 597106: <4FGL_J1224.9+2122_daily_bin45> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin45 186.228 21.3814 250992001 251251201 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 :                                   820.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

