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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1085
RA = 186.228, Dec = 21.3814
tmin = 520560001, tmax = 520819201
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='601775', job_status='RUN', time_executed='2021-09-05 13:34:33.167568', time_epoch_executed='1630874073.17' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601775/ft1_4FGL_J1224.9+2122_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601775/ft2_4FGL_J1224.9+2122_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601775/ft1_4FGL_J1224.9+2122_daily_bin1085.fits outfile=/scratch/kocevski/601775/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1085.fits ra=186.228 dec=21.3814 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.20
user 4.94
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601775/ft2_4FGL_J1224.9+2122_daily_bin1085.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/601775/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/601775/ft1_filtered_4FGL_J1224.9+2122_daily_bin1085.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/601775/ft1_filtered_4FGL_J1224.9+2122_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/601775/ft2_4FGL_J1224.9+2122_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/601775/ltcube_520560001_520819201_4FGL_J1224.9+2122_daily_bin1085.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/601775/ft2_4FGL_J1224.9+2122_daily_bin1085.fits
.....................!
real 12.29
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601775/ft1_filtered_4FGL_J1224.9+2122_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/601775/ft2_4FGL_J1224.9+2122_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/601775/ltcube_520560001_520819201_4FGL_J1224.9+2122_daily_bin1085.fits outfile=/scratch/kocevski/601775/expmap_520560001_520819201_4FGL_J1224.9+2122_daily_bin1085.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/601775/ltcube_520560001_520819201_4FGL_J1224.9+2122_daily_bin1085.fits
.....................!
real 192.50
user 187.23
sys 4.78

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/601775/ft1_filtered_4FGL_J1224.9+2122_daily_bin1085.fits scfile=/scratch/kocevski/601775/ft2_4FGL_J1224.9+2122_daily_bin1085.fits outfile=/scratch/kocevski/601775/cmap_520560001_520819201_4FGL_J1224.9+2122_daily_bin1085.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601775/ft1_filtered_4FGL_J1224.9+2122_daily_bin1085.fits scfile=/scratch/kocevski/601775/ft2_4FGL_J1224.9+2122_daily_bin1085.fits outfile=/scratch/kocevski/601775/cmap_HighResolution_520560001_520819201_4FGL_J1224.9+2122_daily_bin1085.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/601775/ft1_filtered_4FGL_J1224.9+2122_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/601775/ft2_4FGL_J1224.9+2122_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601775/Model_4FGL_J1224.9+2122_daily_bin1085.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/601775/ft1_filtered_4FGL_J1224.9+2122_daily_bin1085.fits.....................!
real 41.99
user 40.63
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3906       1.0000         .10000E-03   10000.    
     4 'norm      '    6.7582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.388       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6659       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1329       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7523       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1032       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18672       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.599       1.0000         .10000E-03   10000.    
    14 'norm      '    .56164       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5270       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.835       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.719       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.200       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.519       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5562       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63124       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=   3961.625     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2885 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.401        .16472E-06** at limit **
   2  Prefactor     6.0807        8.5071        .31982E-05    .33138E-03
   3  Prefactor     4.3906        2.4472        .78064E-07    .63663E-04
   4  norm          6.7582        1.9535        .46355E-07   -.88467E-04
   5  Prefactor     14.386        19.949        .35791E-06    .22237E-04
   6  Prefactor     .10000E-03    1.7957       -.43993E-07** at limit **
   7  Prefactor     9.7372        140.66        .86973E-06    .36972E-04
   8  Prefactor     7.1325        4.0988       -.19045E-07    .21982E-05
   9  Prefactor     1.7522        2.6058        .14420E-06    .24519E-04
  10  norm          7.1010        3.5840       -.18047E-06   -.41456E-03
  11  Prefactor     .19033        2.6530        .16347E-05   -.76754E-03
  12  Prefactor     .10000E-03    .54902       -.42056E-07** at limit **
  13  Prefactor     11.599        7.3916        .27044E-07   -.18277E-04
  14  norm          .56163        .28536        .12146E-07   -.82726E-04
  15  norm          4.5269        4.5805        .11505E-06   -.52180E-05
  16  Prefactor     20.837        12.791        .48557E-07    .77889E-05
  17  Prefactor     .10000E-03    6.0933       -.71170E-07** at limit **
  18  Prefactor     24.721        23.881        .10376E-06    .93870E-05
  19  Prefactor     22.206        54.082        .33105E-06    .55881E-05
  20  Prefactor     .10000E-03    8.7344       -.27400E-06** at limit **
  21  Prefactor     36.520        19.118        .97918E-07    .27269E-05
  22  norm          4.5559        5.9478        .23767E-06    .18676E-04
  23  norm          .10000E-03    17.041       -.13247E-06** at limit **
  24  Normalizat    1.0040        .21197       -.47201E-06   -.59102E-04
  25  Prefactor     .63114        .20588       -.49405E-06   -.53127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.08068
  Prefactor  = 4.39056
  norm       = 6.75819
  Prefactor  = 14.3857
  Prefactor  = 0.0001
  Prefactor  = 9.73725
  Prefactor  = 7.13251
  Prefactor  = 1.7522
  norm       = 7.10104
  Prefactor  = 0.190332
  Prefactor  = 0.0001
  Prefactor  = 11.599
  norm       = 0.561634
  norm       = 4.52686
  Prefactor  = 20.8365
  Prefactor  = 0.0001
  Prefactor  = 24.721
  Prefactor  = 22.2058
  Prefactor  = 0.0001
  Prefactor  = 36.5203
  norm       = 4.55594
  norm       = 0.0001
  Normalizat = 1.00398
  Prefactor  = 0.631144
 **********
 **   18 **HESSE 
 **********

 FCN=   3961.625     FROM HESSE     STATUS=OK           441 CALLS     3326 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0807        8.8086        .81413E-03   -1.5215    
   3  Prefactor     4.3906        2.4478        .70091E-04   -1.5289    
   4  norm          6.7582        1.9594        .45210E-04   -1.5188    
   5  Prefactor     14.386        19.940        .10559E-03   -1.4949    
   6  Prefactor     .10000E-03    1.8089        .82312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7372        139.17        .12889E-03   -1.5084    
   8  Prefactor     7.1325        4.0839        .88174E-04   -1.5174    
   9  Prefactor     1.7522        2.5727        .11579E-03   -1.5443    
  10  norm          7.1010        3.6534        .76528E-04   -1.5175    
  11  Prefactor     .19033        4.1760        .16353E-02   -1.5621    
  12  Prefactor     .10000E-03    .55051        .45534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.599        7.3893        .11763E-03   -1.5027    
  14  norm          .56163        .28347        .22672E-04   -1.5558    
  15  norm          4.5269        4.5746        .12924E-03   -1.5282    
  16  Prefactor     20.837        12.794        .87750E-04   -1.4795    
  17  Prefactor     .10000E-03    6.1223        .15172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.721        23.884        .80570E-04   -1.4713    
  19  Prefactor     22.206        54.103        .85011E-04   -1.4765    
  20  Prefactor     .10000E-03    8.8354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.520        19.124        .66318E-04   -1.4499    
  22  norm          4.5559        5.9572        .16485E-03   -1.5281    
  23  norm          .10000E-03    17.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0040        .24580        .23343E-03   -.92897    
  25  Prefactor     .63114        .23631        .29409E-03   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85769e-10
Minuit parameter uncertainties:
  1  4.52367e-05
  2  8.81049
  3  2.44787
  4  1.95939
  5  19.9494
  6  3.94089e-06
  7  73.8332
  8  4.08402
  9  2.57286
  10  3.65347
  11  1.78273
  12  1.32107e-06
  13  7.38991
  14  0.283475
  15  4.5749
  16  12.7952
  17  2.87241e-06
  18  23.8933
  19  54.2229
  20  1.98155e-05
  21  19.1276
  22  5.95802
  23  4.03634e-05
  24  0.246073
  25  0.236684
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.616e-01  2.835e-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:  6.311e-01  2.367e-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.004e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.46
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.49e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.66e-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) = 3961.46982835
delta logL = 0.154845265658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3961.46709323
delta logL = 0.15758037774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55316       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5507       1.0000          .0000       5.0000    
     3 'Normalizat'    .98318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64497       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=   3961.467     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55318        6.5917        .48466E-02   -.37111E-03
   2  alpha         2.5507        3.1543        .26465        .20144E-05
   3  Normalizat    .98323        .17426        .45956E-01    .10506E-04
   4  Prefactor     .64495        .22992        .65800E-01    .10010E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.553179
  alpha      = 2.55074
  Normalizat = 0.983226
  Prefactor  = 0.644947
 **********
 **   18 **HESSE 
 **********

 FCN=   3961.467     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55318        .27561        .21550E-04   -1.5559    
   2  alpha         2.5507        .49949        .11125E-01    .20296E-01
   3  Normalizat    .98323        .23512        .23549E-03   -.93594    
   4  Prefactor     .64495        .23683        .29115E-03   -1.0573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75158e-12
Minuit parameter uncertainties:
  1  0.275612
  2  0.502874
  3  0.235369
  4  0.237194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601775': 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) = 3961.46709321
delta logL = 0.1575804032

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.532e-01  2.756e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.551e+00  5.029e-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:  6.449e-01  2.372e-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.832e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.71
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.55 +/- 0.50
Photon Flux (Free Index): 1.12e-07 +/- 5.99e-08
Energy Flux (Free Index): 2.94e-05 +/- 1.52e-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/601775/cmap_HighResolution_520560001_520819201_4FGL_J1224.9+2122_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.49e-08', energy_flux2='2.94e-05', photon_flux_error='4.79e-08', dlogl='1.58e-01', energy_flux='3.30e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-05 13:43:39.638040', photon_index_error2='0.50', photon_index2='2.55', ts='8.46', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.00', time_epoch_completed='1630874619.64', return_code='0', job_id='601775', GAL2='0.64', EG2='0.98', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.99e-08', ts2='8.71', photon_index='2.28' WHERE bin_id='1085' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:43:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 601775: <4FGL_J1224.9+2122_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1085 186.228 21.3814 520560001 520819201 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 :                                   542.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            747 sec.

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

