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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin969
RA = 186.228, Dec = 21.3814
tmin = 490492801, tmax = 490752001
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='601608', job_status='RUN', time_executed='2021-09-05 13:31:19.406063', time_epoch_executed='1630873879.41' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='969'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601608/ft1_4FGL_J1224.9+2122_daily_bin969.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601608/ft2_4FGL_J1224.9+2122_daily_bin969.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601608/ft1_4FGL_J1224.9+2122_daily_bin969.fits outfile=/scratch/kocevski/601608/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin969.fits ra=186.228 dec=21.3814 rad=12.0 tmin=490492801.0 tmax=490752001.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.93
user 5.56
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601608/ft1_filtered_4FGL_J1224.9+2122_daily_bin969.fits" evtable="EVENTS" scfile=/scratch/kocevski/601608/ft2_4FGL_J1224.9+2122_daily_bin969.fits sctable="SC_DATA" outfile=/scratch/kocevski/601608/ltcube_490492801_490752001_4FGL_J1224.9+2122_daily_bin969.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/601608/ft2_4FGL_J1224.9+2122_daily_bin969.fits
.....................!
real 19.96
user 12.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601608/ft1_filtered_4FGL_J1224.9+2122_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/601608/ft2_4FGL_J1224.9+2122_daily_bin969.fits sctable="SC_DATA" expcube=/scratch/kocevski/601608/ltcube_490492801_490752001_4FGL_J1224.9+2122_daily_bin969.fits outfile=/scratch/kocevski/601608/expmap_490492801_490752001_4FGL_J1224.9+2122_daily_bin969.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/601608/ltcube_490492801_490752001_4FGL_J1224.9+2122_daily_bin969.fits
.....................!
real 192.76
user 185.39
sys 4.69

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/601608/ft1_filtered_4FGL_J1224.9+2122_daily_bin969.fits scfile=/scratch/kocevski/601608/ft2_4FGL_J1224.9+2122_daily_bin969.fits outfile=/scratch/kocevski/601608/cmap_490492801_490752001_4FGL_J1224.9+2122_daily_bin969.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.57
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601608/ft1_filtered_4FGL_J1224.9+2122_daily_bin969.fits scfile=/scratch/kocevski/601608/ft2_4FGL_J1224.9+2122_daily_bin969.fits outfile=/scratch/kocevski/601608/cmap_HighResolution_490492801_490752001_4FGL_J1224.9+2122_daily_bin969.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/601608/ft1_filtered_4FGL_J1224.9+2122_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/601608/ft2_4FGL_J1224.9+2122_daily_bin969.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601608/Model_4FGL_J1224.9+2122_daily_bin969.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/601608/ft1_filtered_4FGL_J1224.9+2122_daily_bin969.fits.....................!
real 44.63
user 43.34
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7162       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11628E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    87.894       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47697E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.0762       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9515       1.0000         .10000E-03   10000.    
    14 'norm      '    .25907       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6657       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.375       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18200E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2088       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91403       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0763       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=   4639.850     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2933 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5492        .90035E-07** at limit **
   2  Prefactor     3.8316        8.3717        .34638E-06   -.48526E-04
   3  Prefactor     .10000E-03    .54987        .44556E-07** at limit **
   4  norm          4.7165        1.8491        .12711E-07   -.20092E-03
   5  Prefactor     .10000E-03    17.411       -.32595E-05** at limit **
   6  Prefactor     5.7506        5.7998        .33375E-06   -.40719E-03
   7  Prefactor     87.791        111.09       -.19334E-05   -.15125E-03
   8  Prefactor     .10001E-03    2.0148        .36185E-06** at limit **
   9  Prefactor     .10000E-03    1.7582        .78206E-07** at limit **
  10  norm          8.0753        4.2874       -.11562E-06   -.27920E-03
  11  Prefactor     .10000E-03    1.2373       -.68046E-07** at limit **
  12  Prefactor     .89055        2.3860        .69058E-06    .19554E-03
  13  Prefactor     6.9513        6.0608       -.15240E-06   -.92341E-04
  14  norm          .25917        .36457        .20148E-06   -.54968E-03
  15  norm          1.6652        2.9625        .69695E-07   -.84244E-04
  16  Prefactor     .10000E-03    4.7122        .11778E-06** at limit **
  17  Prefactor     .10000E-03    2.9687       -.72573E-08** at limit **
  18  Prefactor     .10000E-03    26.389        .58098E-06** at limit **
  19  Prefactor     23.331        96.144       -.10921E-05   -.48474E-04
  20  Prefactor     .10000E-03    7.4523        .45239E-06** at limit **
  21  Prefactor     4.2095        9.9549        .65132E-05   -.18990E-03
  22  norm          .10000E-03    1.1887        .52945E-07** at limit **
  23  norm          .10000E-03    14.683        .34844E-06** at limit **
  24  Normalizat    .91423        .21056       -.71126E-06   -.25123E-03
  25  Prefactor     1.0760        .20035       -.11849E-05   -.17765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.8316
  Prefactor  = 0.0001
  norm       = 4.71651
  Prefactor  = 0.0001
  Prefactor  = 5.7506
  Prefactor  = 87.7914
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 8.07527
  Prefactor  = 0.0001
  Prefactor  = 0.890547
  Prefactor  = 6.95133
  norm       = 0.25917
  norm       = 1.66517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3314
  Prefactor  = 0.000100005
  Prefactor  = 4.20953
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.91423
  Prefactor  = 1.076
 **********
 **   18 **HESSE 
 **********

 FCN=   4639.850     FROM HESSE     STATUS=OK           429 CALLS     3362 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8316        8.3430        .20622E-03   -1.5316    
   3  Prefactor     .10000E-03    .55199        .49315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7165        1.8470        .55274E-04   -1.5274    
   5  Prefactor     .10000E-03    17.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7506        5.5943        .14651E-03   -1.5228    
   7  Prefactor     87.791        110.85        .21428E-03   -1.3831    
   8  Prefactor     .10001E-03    11.201        .17225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7058        .17130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.0753        4.1725        .93210E-04   -1.5140    
  11  Prefactor     .10000E-03    1.2440        .73827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .89055        2.1551        .15448E-02   -1.5519    
  13  Prefactor     6.9513        6.0355        .14973E-03   -1.5181    
  14  norm          .25917        .35241        .43051E-04   -1.5606    
  15  norm          1.6652        2.9212        .15100E-03   -1.5450    
  16  Prefactor     .10000E-03    4.7207        .14441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9694        .11462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.331        96.419        .82850E-04   -1.4742    
  20  Prefactor     .10000E-03    70.389        .35588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2095        9.9122        .98216E-03   -1.5298    
  22  norm          .10000E-03    1.1905        .72526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91423        .24255        .26099E-03   -.95962    
  25  Prefactor     1.0760        .23378        .24576E-03   -.90237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98341e-09
Minuit parameter uncertainties:
  1  1.03788e-05
  2  8.34549
  3  2.0694e-07
  4  1.847
  5  1.10348e-05
  6  5.59486
  7  111.116
  8  0.000794521
  9  2.15395e-05
  10  4.17265
  11  1.88447e-07
  12  2.15533
  13  6.03605
  14  0.352412
  15  2.92146
  16  1.97319e-06
  17  1.33822e-07
  18  8.36399e-05
  19  95.1247
  20  0.00114445
  21  9.91603
  22  4.42103e-07
  23  8.86645e-05
  24  0.242839
  25  0.234007
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.592e-01  3.524e-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.076e+00  2.340e-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.142e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601608/likelihoodResults_490492801_490752001_4FGL_J1224.9+2122_daily_bin969.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) = 4638.26999107
delta logL = 1.58018678075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4638.2551651
delta logL = 1.59501274746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10502       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6073       1.0000          .0000       5.0000    
     3 'Normalizat'    .77287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1794       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4638.255     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      293 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10445        .96389        .12350E-04    .70621E-02
   2  alpha         4.6129        3.7295        .30761E-01    .25933E-04
   3  Normalizat    .77274        .24460        .28137E-03    .52728E-04
   4  Prefactor     1.1793        .24190        .23606E-03   -.59467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.104446
  alpha      = 4.61285
  Normalizat = 0.772743
  Prefactor  = 1.1793
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.255     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10445        .24274        .49402E-06   -1.5643    
   2  alpha         4.6129        4.1875        .12304E-02    1.0068    
   3  Normalizat    .77274        .24394        .11255E-04   -1.0109    
   4  Prefactor     1.1793        .24038        .47213E-04   -.86971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68037e-10
Minuit parameter uncertainties:
  1  0.242739
  2  2.05268
  3  0.24429
  4  0.240602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601608': 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) = 4638.25515862
delta logL = 1.59501923426

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.044e-01  2.427e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.613e+00  2.053e+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:  1.179e+00  2.406e-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:  7.727e-01  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 186.228 21.381
Photon Index (Free Index): 4.61 +/- 2.05
Photon Flux (Free Index): 1.50e-07 +/- 9.19e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.37e-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/601608/cmap_HighResolution_490492801_490752001_4FGL_J1224.9+2122_daily_bin969.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-05', comment='SUCCESS', energy_flux2='2.09e-05', dlogl='1.60e+00', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-05 13:42:01.000955', photon_index_error2='2.05', photon_index2='4.61', ts='0.65', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.37e-05', EG='0.91', time_epoch_completed='1630874521.0', return_code='0', job_id='601608', GAL2='1.18', EG2='0.77', return_code2='0', photon_flux_error2='9.19e-08', ts2='4.27', photon_index='2.28' WHERE bin_id='969' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:42:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 601608: <4FGL_J1224.9+2122_daily_bin969> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin969 186.228 21.3814 490492801 490752001 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 :                                   623.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            663 sec.

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

