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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1157
RA = 186.228, Dec = 21.3814
tmin = 539222401, tmax = 539481601
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='603034', job_status='RUN', time_executed='2021-09-05 13:38:39.575016', time_epoch_executed='1630874319.58' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603034

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603034/ft1_4FGL_J1224.9+2122_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603034/ft2_4FGL_J1224.9+2122_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603034/ft1_4FGL_J1224.9+2122_daily_bin1157.fits outfile=/scratch/kocevski/603034/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1157.fits ra=186.228 dec=21.3814 rad=12.0 tmin=539222401.0 tmax=539481601.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.78
user 5.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603034/ft1_filtered_4FGL_J1224.9+2122_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/603034/ft2_4FGL_J1224.9+2122_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/603034/ltcube_539222401_539481601_4FGL_J1224.9+2122_daily_bin1157.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/603034/ft2_4FGL_J1224.9+2122_daily_bin1157.fits
.....................!
real 14.02
user 13.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603034/ft1_filtered_4FGL_J1224.9+2122_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/603034/ft2_4FGL_J1224.9+2122_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/603034/ltcube_539222401_539481601_4FGL_J1224.9+2122_daily_bin1157.fits outfile=/scratch/kocevski/603034/expmap_539222401_539481601_4FGL_J1224.9+2122_daily_bin1157.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/603034/ltcube_539222401_539481601_4FGL_J1224.9+2122_daily_bin1157.fits
.....................!
real 196.95
user 187.01
sys 5.10

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/603034/ft1_filtered_4FGL_J1224.9+2122_daily_bin1157.fits scfile=/scratch/kocevski/603034/ft2_4FGL_J1224.9+2122_daily_bin1157.fits outfile=/scratch/kocevski/603034/cmap_539222401_539481601_4FGL_J1224.9+2122_daily_bin1157.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.86
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603034/ft1_filtered_4FGL_J1224.9+2122_daily_bin1157.fits scfile=/scratch/kocevski/603034/ft2_4FGL_J1224.9+2122_daily_bin1157.fits outfile=/scratch/kocevski/603034/cmap_HighResolution_539222401_539481601_4FGL_J1224.9+2122_daily_bin1157.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 1.08
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    86.106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.097       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4239       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .96945       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4287       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.284       1.0000         .10000E-03   10000.    
    14 'norm      '    .66531       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    315.15       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.553       1.0000         .10000E-03   10000.    
    22 'norm      '    29.425       1.0000         .10000E-03   10000.    
    23 'norm      '    52.533       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .45240       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89282       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=   1246.492     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2925 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    205.84       -.64362E-04** at limit **
   2  Prefactor     86.095        53.231       -.51904E-05    .16053E-03
   3  Prefactor     10.097        8.3009        .70631E-06    .42474E-03
   4  norm          8.4239        5.5580       -.64195E-06    .30325E-03
   5  Prefactor     .10000E-03    10.802        .22191E-05** at limit **
   6  Prefactor     .10000E-03    7.0782        .12979E-06** at limit **
   7  Prefactor     .10000E-03    59.262       -.51910E-04** at limit **
   8  Prefactor     .10000E-03    3.0213        .27930E-06** at limit **
   9  Prefactor     .96919        12.112       -.85624E-05    .59894E-03
  10  norm          .10000E-03    5.3492       -.11764E-06** at limit **
  11  Prefactor     6.4284        7.0540        .12012E-05   -.56702E-04
  12  Prefactor     .10000E-03    2.9433       -.29558E-07** at limit **
  13  Prefactor     20.283        19.897       -.15420E-06   -.28103E-04
  14  norm          .66529        .64428        .43156E-07    .60865E-03
  15  norm          .10000E-03    20.861       -.47842E-06** at limit **
  16  Prefactor     .10000E-03    10.531       -.19024E-05** at limit **
  17  Prefactor     .10000E-03    42.098        .14748E-04** at limit **
  18  Prefactor     .10000E-03    15.189       -.30055E-06** at limit **
  19  Prefactor     315.12        283.53       -.16876E-04   -.13101E-04
  20  Prefactor     .10001E-03    85.580        .61180E-04** at limit **
  21  Prefactor     16.554        26.062       -.30049E-06   -.21681E-04
  22  norm          29.423        19.790       -.35900E-05   -.59508E-03
  23  norm          52.563        120.03        .35376E-04   -.50076E-04
  24  Normalizat    .45243        .44001        .94256E-05    .21514E-04
  25  Prefactor     .89279        .35763       -.31611E-05    .65055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 86.095
  Prefactor  = 10.0973
  norm       = 8.42389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.969189
  norm       = 0.0001
  Prefactor  = 6.4284
  Prefactor  = 0.0001
  Prefactor  = 20.2833
  norm       = 0.665287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 315.116
  Prefactor  = 0.000100006
  Prefactor  = 16.5539
  norm       = 29.423
  norm       = 52.5628
  Normalizat = 0.452425
  Prefactor  = 0.89279
 **********
 **   18 **HESSE 
 **********

 FCN=   1246.492     FROM HESSE     STATUS=OK           417 CALLS     3342 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    206.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     86.095        53.078        .43294E-04   -1.3850    
   3  Prefactor     10.097        8.3071        .86782E-04   -1.5072    
   4  norm          8.4239        5.5713        .63247E-04   -1.5127    
   5  Prefactor     .10000E-03    10.806        .11337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0865        .91717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0250        .59868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .96919        17.175        .20464E-02   -1.5511    
  10  norm          .10000E-03    5.3529        .79621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4284        7.0421        .94486E-04   -1.5201    
  12  Prefactor     .10000E-03    2.9479        .59142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.283        19.816        .88931E-04   -1.4807    
  14  norm          .66529        .63803        .26184E-04   -1.5545    
  15  norm          .10000E-03    21.024        .15701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.594        .11190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.196        .13443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     315.12        283.39        .11448E-03   -1.2139    
  20  Prefactor     .10001E-03    86.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.554        26.019        .98443E-04   -1.4894    
  22  norm          29.423        19.854        .73859E-04   -1.4623    
  23  norm          52.563        120.18        .55336E-04   -1.4257    
  24  Normalizat    .45243        .48774        .33079E-03   -1.1467    
  25  Prefactor     .89279        .40791        .22576E-03   -.96393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29413e-09
Minuit parameter uncertainties:
  1  6.26123e-05
  2  53.1076
  3  8.308
  4  5.57167
  5  1.88868e-05
  6  5.33138e-05
  7  3.13243e-05
  8  4.48803e-05
  9  8.16214
  10  3.02518e-05
  11  7.04301
  12  7.42509e-06
  13  19.8227
  14  0.638038
  15  4.21946e-05
  16  1.05678e-05
  17  0.00010438
  18  9.27121e-06
  19  284.643
  20  0.00138258
  21  26.0364
  22  19.8583
  23  120.738
  24  0.492442
  25  0.409312
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.653e-01  6.380e-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:  8.928e-01  4.093e-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:  4.524e-01  4.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 1.08e-07
Energy Flux (Fixed Index): 3.91e-05 +/- 3.75e-05

TS (Fixed Index): 2.06
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 3.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603034/likelihoodResults_539222401_539481601_4FGL_J1224.9+2122_daily_bin1157.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) = 1246.30140549
delta logL = 0.19089911711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1246.29006359
delta logL = 0.202241020158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57460       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9828       1.0000          .0000       5.0000    
     3 'Normalizat'    .38802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93849       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=   1246.290     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      230 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57455        17.380        .49278E-02    .10953E-03
   2  alpha         2.9830        3.5000        .29662        .49318E-05
   3  Normalizat    .38804        .17651        .80509E-01    .99093E-05
   4  Prefactor     .93850        .18248        .45494E-01    .68500E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.574546
  alpha      = 2.98296
  Normalizat = 0.38804
  Prefactor  = 0.9385
 **********
 **   18 **HESSE 
 **********

 FCN=   1246.290     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57455        .67256        .21951E-04   -1.5556    
   2  alpha         2.9830        1.2615        .12614E-01    .19441    
   3  Normalizat    .38804        .43398        .35661E-03   -1.1792    
   4  Prefactor     .93850        .40558        .22107E-03   -.94808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23921e-13
Minuit parameter uncertainties:
  1  0.672565
  2  1.325
  3  0.437822
  4  0.406896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603034': 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) = 1246.29006356
delta logL = 0.202241041478

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.745e-01  6.726e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.983e+00  1.325e+00  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:  9.385e-01  4.069e-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:  3.880e-01  4.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.98 +/- 1.33
Photon Flux (Free Index): 1.64e-07 +/- 1.53e-07
Energy Flux (Free Index): 3.29e-05 +/- 2.98e-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/603034/cmap_HighResolution_539222401_539481601_4FGL_J1224.9+2122_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-04', comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.29e-05', photon_flux_error='1.08e-07', dlogl='2.02e-01', energy_flux='3.91e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-05 13:45:46.492956', photon_index_error2='1.33', photon_index2='2.98', ts='2.06', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='3.81e-07', energy_flux_error2='2.98e-05', EG='0.45', time_epoch_completed='1630874746.49', return_code='0', job_id='603034', GAL2='0.94', EG2='0.39', return_code2='0', energy_flux_error='3.75e-05', photon_flux_error2='1.53e-07', ts2='2.52', photon_index='2.28' WHERE bin_id='1157' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 603034: <4FGL_J1224.9+2122_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1157> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:36 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:38 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:35:38 2021
Terminated at Sun Sep  5 13:45:47 2021
Results reported at Sun Sep  5 13:45:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1157 186.228 21.3814 539222401 539481601 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 :                                   414.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

