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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin66
RA = 186.228, Dec = 21.3814
tmin = 256435201, tmax = 256694401
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='597146', job_status='RUN', time_executed='2021-09-05 13:19:15.140705', time_epoch_executed='1630873155.14' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597146

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597146/ft1_4FGL_J1224.9+2122_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597146/ft2_4FGL_J1224.9+2122_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597146/ft1_4FGL_J1224.9+2122_daily_bin66.fits outfile=/scratch/kocevski/597146/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin66.fits ra=186.228 dec=21.3814 rad=12.0 tmin=256435201.0 tmax=256694401.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.46
user 1.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597146/ft2_4FGL_J1224.9+2122_daily_bin66.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/597146/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/597146/ft1_filtered_4FGL_J1224.9+2122_daily_bin66.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/597146/ft1_filtered_4FGL_J1224.9+2122_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/597146/ft2_4FGL_J1224.9+2122_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/597146/ltcube_256435201_256694401_4FGL_J1224.9+2122_daily_bin66.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/597146/ft2_4FGL_J1224.9+2122_daily_bin66.fits
.....................!
real 12.52
user 12.13
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597146/ft1_filtered_4FGL_J1224.9+2122_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/597146/ft2_4FGL_J1224.9+2122_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/597146/ltcube_256435201_256694401_4FGL_J1224.9+2122_daily_bin66.fits outfile=/scratch/kocevski/597146/expmap_256435201_256694401_4FGL_J1224.9+2122_daily_bin66.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/597146/ltcube_256435201_256694401_4FGL_J1224.9+2122_daily_bin66.fits
.....................!
real 190.41
user 185.19
sys 4.86

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/597146/ft1_filtered_4FGL_J1224.9+2122_daily_bin66.fits scfile=/scratch/kocevski/597146/ft2_4FGL_J1224.9+2122_daily_bin66.fits outfile=/scratch/kocevski/597146/cmap_256435201_256694401_4FGL_J1224.9+2122_daily_bin66.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/597146/ft1_filtered_4FGL_J1224.9+2122_daily_bin66.fits scfile=/scratch/kocevski/597146/ft2_4FGL_J1224.9+2122_daily_bin66.fits outfile=/scratch/kocevski/597146/cmap_HighResolution_256435201_256694401_4FGL_J1224.9+2122_daily_bin66.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0344       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0723       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5009       1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5365       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7220       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0939       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .98614       1.0000         .10000E-03   10000.    
    14 'norm      '    .26666       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7971       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7750       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    104.84       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0730       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1627       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3251       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85955       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0465       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=   8805.079     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2998 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5536        .39501E-06** at limit **
   2  Prefactor     .10000E-03    3.8623       -.11585E-06** at limit **
   3  Prefactor     4.0340        1.7839       -.10166E-06   -.95043E-04
   4  norm          3.0722        1.0864       -.38419E-07   -.26164E-04
   5  Prefactor     .10000E-03    8.9825        .15759E-06** at limit **
   6  Prefactor     3.5005        2.1951        .84800E-06   -.43320E-02
   7  Prefactor     69.427        62.605       -.76336E-05   -.15914E-03
   8  Prefactor     1.5358        2.4815       -.15852E-06   -.33316E-03
   9  Prefactor     3.7220        2.5483       -.19589E-06   -.16329E-03
  10  norm          1.0939        1.2088       -.15605E-07    .91509E-04
  11  Prefactor     .10000E-03    .45903        .78406E-07** at limit **
  12  Prefactor     6.7803        2.1615       -.60780E-07   -.93727E-04
  13  Prefactor     .98926        2.4526        .30827E-06   -.11954E-03
  14  norm          .26661        .15030       -.76601E-07   -.14230E-02
  15  norm          2.7964        2.1717       -.12630E-06   -.98094E-04
  16  Prefactor     .62096E-01    3.6318       -.51379E-08   -.12373E-03
  17  Prefactor     4.7742        5.7315       -.84825E-06   -.21924E-03
  18  Prefactor     41.628        23.428        .34224E-06    .81068E-04
  19  Prefactor     104.84        73.869       -.36150E-05   -.76186E-04
  20  Prefactor     3.0725        4.3498       -.56114E-07   -.12301E-03
  21  Prefactor     4.1557        11.669       -.45794E-05   -.20127E-03
  22  norm          2.3249        2.2850        .14156E-06    .23843E-04
  23  norm          .10000E-03    21.089        .24329E-06** at limit **
  24  Normalizat    .85944        .15526        .15260E-05   -.22100E-04
  25  Prefactor     1.0467        .15237       -.35152E-06    .86605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03405
  norm       = 3.07221
  Prefactor  = 0.0001
  Prefactor  = 3.50046
  Prefactor  = 69.4268
  Prefactor  = 1.53582
  Prefactor  = 3.72197
  norm       = 1.09387
  Prefactor  = 0.0001
  Prefactor  = 6.78034
  Prefactor  = 0.989261
  norm       = 0.266609
  norm       = 2.79643
  Prefactor  = 0.062096
  Prefactor  = 4.77419
  Prefactor  = 41.6282
  Prefactor  = 104.835
  Prefactor  = 3.07246
  Prefactor  = 4.15567
  norm       = 2.32488
  norm       = 0.0001
  Normalizat = 0.859439
  Prefactor  = 1.04669
 **********
 **   18 **HESSE 
 **********

 FCN=   8805.079     FROM HESSE     STATUS=OK           445 CALLS     3443 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8895        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0340        1.7822        .79331E-04   -1.5306    
   4  norm          3.0722        1.0870        .55815E-04   -1.5357    
   5  Prefactor     .10000E-03    9.0460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5005        3.3467        .78091E-03   -1.5334    
   7  Prefactor     69.427        63.629        .24085E-03   -1.4040    
   8  Prefactor     1.5358        2.4160        .16093E-03   -1.5460    
   9  Prefactor     3.7220        2.5084        .10900E-03   -1.5322    
  10  norm          1.0939        1.2084        .22815E-03   -1.5499    
  11  Prefactor     .10000E-03    .46066        .62043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7803        2.1630        .73693E-04   -1.5187    
  13  Prefactor     .98926        1.9925        .22429E-02   -1.5509    
  14  norm          .26661        .14861        .26144E-04   -1.5605    
  15  norm          2.7964        2.1601        .11779E-03   -1.5374    
  16  Prefactor     .62096E-01    5.2724        .65051E-01   -1.5658    
  17  Prefactor     4.7742        5.7453        .18412E-03   -1.5271    
  18  Prefactor     41.628        23.392        .62175E-04   -1.4417    
  19  Prefactor     104.84        74.331        .39272E-04   -1.3657    
  20  Prefactor     3.0725        4.3457        .22441E-03   -1.5357    
  21  Prefactor     4.1557        11.902        .19755E-03   -1.5300    
  22  norm          2.3249        2.2761        .13590E-03   -1.5403    
  23  norm          .10000E-03    21.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85944        .17691        .26564E-03   -.97900    
  25  Prefactor     1.0467        .17310        .25148E-03   -.91189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50753e-08
Minuit parameter uncertainties:
  1  6.13776e-06
  2  9.44035e-06
  3  1.78225
  4  1.08697
  5  6.46857e-05
  6  3.34686
  7  63.6919
  8  2.41619
  9  2.50851
  10  1.20846
  11  6.35003e-07
  12  2.16302
  13  1.99268
  14  0.148605
  15  2.16016
  16  1.14356
  17  5.74594
  18  23.3973
  19  74.397
  20  4.34614
  21  11.9084
  22  2.27619
  23  1.4977e-05
  24  0.177033
  25  0.173196
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.666e-01  1.486e-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.047e+00  1.732e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.594e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.49
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.50e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 8.73e-06

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) = 8804.67875725
delta logL = 0.40042605722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8804.66220935
delta logL = 0.416973958592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19617       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7824       1.0000          .0000       5.0000    
     3 'Normalizat'    .88198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0341       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=   8804.662     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      202 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19618        .12147        .54895E-02    .26198E-02
   2  alpha         1.7823        .32848        .33026       -.67793E-04
   3  Normalizat    .88199        .14585        .44671E-01    .20013E-03
   4  Prefactor     1.0341        .15116        .40948E-01    .22526E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.196181
  alpha      = 1.78234
  Normalizat = 0.881992
  Prefactor  = 1.03409
 **********
 **   18 **HESSE 
 **********

 FCN=   8804.662     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19618        .15869        .24321E-04   -1.5619    
   2  alpha         1.7823        .51103        .12282E-01   -.29116    
   3  Normalizat    .88199        .16657        .26255E-03   -.97096    
   4  Prefactor     1.0341        .17222        .25281E-03   -.91602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32917e-11
Minuit parameter uncertainties:
  1  0.158694
  2  0.514988
  3  0.166672
  4  0.172316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597146': 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) = 8804.66220934
delta logL = 0.4169739673

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.962e-01  1.587e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.782e+00  5.150e-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.034e+00  1.723e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.820e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.30
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.78 +/- 0.51
Photon Flux (Free Index): 2.69e-08 +/- 2.37e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.90e-05

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/597146/cmap_HighResolution_256435201_256694401_4FGL_J1224.9+2122_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.50e-08', energy_flux2='2.27e-05', photon_flux_error='2.51e-08', dlogl='4.17e-01', energy_flux='1.57e-05', photon_flux2='2.69e-08', job_status='DONE', time_completed='2021-09-05 13:32:16.758354', photon_index_error2='0.51', photon_index2='1.78', ts='8.49', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.86', time_epoch_completed='1630873936.76', return_code='0', job_id='597146', GAL2='1.03', EG2='0.88', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='2.37e-08', ts2='9.30', photon_index='2.28' WHERE bin_id='66' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:32:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 597146: <4FGL_J1224.9+2122_daily_bin66> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin66 186.228 21.3814 256435201 256694401 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 :                                   781.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

