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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin36
RA = 186.228, Dec = 21.3814
tmin = 248659201, tmax = 248918401
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='597087', job_status='RUN', time_executed='2021-09-05 13:19:23.107830', time_epoch_executed='1630873163.11' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597087/ft1_4FGL_J1224.9+2122_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597087/ft2_4FGL_J1224.9+2122_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597087/ft1_4FGL_J1224.9+2122_daily_bin36.fits outfile=/scratch/kocevski/597087/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin36.fits ra=186.228 dec=21.3814 rad=12.0 tmin=248659201.0 tmax=248918401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.44
user 1.24
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597087/ft1_filtered_4FGL_J1224.9+2122_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/597087/ft2_4FGL_J1224.9+2122_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/597087/ltcube_248659201_248918401_4FGL_J1224.9+2122_daily_bin36.fits outfile=/scratch/kocevski/597087/expmap_248659201_248918401_4FGL_J1224.9+2122_daily_bin36.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/597087/ltcube_248659201_248918401_4FGL_J1224.9+2122_daily_bin36.fits
.....................!
real 192.43
user 185.98
sys 5.43

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/597087/ft1_filtered_4FGL_J1224.9+2122_daily_bin36.fits scfile=/scratch/kocevski/597087/ft2_4FGL_J1224.9+2122_daily_bin36.fits outfile=/scratch/kocevski/597087/cmap_248659201_248918401_4FGL_J1224.9+2122_daily_bin36.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597087/ft1_filtered_4FGL_J1224.9+2122_daily_bin36.fits scfile=/scratch/kocevski/597087/ft2_4FGL_J1224.9+2122_daily_bin36.fits outfile=/scratch/kocevski/597087/cmap_HighResolution_248659201_248918401_4FGL_J1224.9+2122_daily_bin36.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62659E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3159       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5284       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2196       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2111       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6912       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5581       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .83402E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7497       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.110       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.698       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13306E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.523       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7530       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.181       1.0000         .10000E-03   10000.    
    22 'norm      '    7.6895       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99082       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1176       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=   6157.516     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2914 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.180        17.917       -.60749E-06   -.59202E-04
   2  Prefactor     .10000E-03    2.6051        .10801E-06** at limit **
   3  Prefactor     .10007E-03    .86744       -.21532E-06** at limit **
   4  norm          .10000E-03    .53388        .50539E-06** at limit **
   5  Prefactor     .10000E-03    5.2294       -.22302E-05** at limit **
   6  Prefactor     .10000E-03    .96242        .76334E-07** at limit **
   7  Prefactor     8.1229        171.65       -.75152E-05   -.95298E-05
   8  Prefactor     1.5284        3.1888        .18053E-06   -.13672E-03
   9  Prefactor     1.2196        3.5138        .37510E-06   -.53527E-04
  10  norm          2.2109        3.3142        .30225E-06   -.89702E-04
  11  Prefactor     3.6910        2.9601       -.37268E-07   -.10106E-03
  12  Prefactor     6.5579        2.8955       -.34896E-07   -.30422E-03
  13  Prefactor     .10000E-03    1.5853        .53350E-07** at limit **
  14  norm          .83374E-01    .17565        .30174E-06    .44543E-03
  15  norm          3.7496        3.6624       -.38575E-08   -.10890E-03
  16  Prefactor     11.110        8.9773        .83715E-07   -.30977E-04
  17  Prefactor     11.697        10.952        .11053E-06   -.33985E-04
  18  Prefactor     .10000E-03    68.488        .16489E-05** at limit **
  19  Prefactor     37.509        73.561        .51279E-06   -.52970E-05
  20  Prefactor     3.7525        5.3082        .30162E-06   -.12920E-04
  21  Prefactor     20.176        16.723        .28009E-06   -.16545E-04
  22  norm          7.6888        4.1428        .59122E-07   -.35857E-04
  23  norm          .10000E-03    7.3545        .47505E-07** at limit **
  24  Normalizat    .99097        .18602       -.16406E-05   -.25334E-03
  25  Prefactor     1.1177        .18800       -.39154E-06   -.25537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1801
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.12285
  Prefactor  = 1.52843
  Prefactor  = 1.21964
  norm       = 2.21088
  Prefactor  = 3.69103
  Prefactor  = 6.55788
  Prefactor  = 0.0001
  norm       = 0.0833742
  norm       = 3.74964
  Prefactor  = 11.1102
  Prefactor  = 11.697
  Prefactor  = 0.0001
  Prefactor  = 37.5091
  Prefactor  = 3.75248
  Prefactor  = 20.1755
  norm       = 7.68881
  norm       = 0.0001
  Normalizat = 0.990969
  Prefactor  = 1.11765
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.516     FROM HESSE     STATUS=OK           433 CALLS     3347 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.180        17.570        .93983E-04   -1.4855    
   2  Prefactor     .10000E-03    2.6105        .12371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    10.538        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .89577        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0953        .17285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .96590        .75158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1229        173.52        .13902E-03   -1.5138    
   8  Prefactor     1.5284        2.9602        .15965E-03   -1.5461    
   9  Prefactor     1.2196        3.2659        .19714E-03   -1.5487    
  10  norm          2.2109        3.2850        .14926E-03   -1.5411    
  11  Prefactor     3.6910        2.9553        .10386E-03   -1.5324    
  12  Prefactor     6.5579        2.8912        .82158E-04   -1.5196    
  13  Prefactor     .10000E-03    1.5872        .96457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .83374E-01    .17541        .45412E-04   -1.5650    
  15  norm          3.7496        3.6522        .14291E-03   -1.5321    
  16  Prefactor     11.110        8.9704        .12020E-03   -1.5041    
  17  Prefactor     11.697        10.943        .11713E-03   -1.5024    
  18  Prefactor     .10000E-03    69.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.509        73.608        .65429E-04   -1.4482    
  20  Prefactor     3.7525        5.3013        .20787E-03   -1.5321    
  21  Prefactor     20.176        16.732        .89158E-04   -1.4809    
  22  norm          7.6888        4.1429        .11326E-03   -1.5153    
  23  norm          .10000E-03    7.3556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99097        .21835        .25737E-03   -.93334    
  25  Prefactor     1.1177        .22233        .25787E-03   -.88904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38092e-09
Minuit parameter uncertainties:
  1  17.5748
  2  3.04724e-06
  3  0.00168864
  4  1.4199e-05
  5  5.97593e-06
  6  1.22003e-06
  7  75.3347
  8  2.96044
  9  3.26634
  10  3.28528
  11  2.95539
  12  2.89124
  13  2.98544e-07
  14  0.175406
  15  3.65237
  16  8.97149
  17  10.9453
  18  0.000196435
  19  73.7875
  20  5.30198
  21  16.7357
  22  4.14308
  23  2.15289e-06
  24  0.218544
  25  0.222518
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.337e-02  1.754e-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.118e+00  2.225e-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.910e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/597087/likelihoodResults_248659201_248918401_4FGL_J1224.9+2122_daily_bin36.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) = 6157.47647528
delta logL = 0.0396055460615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6157.47538571
delta logL = 0.0406951135865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89073E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7214       1.0000          .0000       5.0000    
     3 'Normalizat'    .98106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1245       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=   6157.475     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      272 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88966E-01    .17850        .40290E-04    .18595E-03
   2  alpha         2.7197        1.6334        .40656E-01    .20740E-05
   3  Normalizat    .98149        .21189        .25849E-03   -.18252E-04
   4  Prefactor     1.1241        .22235        .25723E-03    .15690E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0889661
  alpha      = 2.71968
  Normalizat = 0.98149
  Prefactor  = 1.1241
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.475     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88966E-01    .17059        .16116E-05   -1.5648    
   2  alpha         2.7197        1.5734        .16262E-02    .87986E-01
   3  Normalizat    .98149        .21217        .10340E-04   -.93653    
   4  Prefactor     1.1241        .22240        .10289E-04   -.88700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29839e-12
Minuit parameter uncertainties:
  1  0.170588
  2  1.70311
  3  0.212351
  4  0.222581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597087': 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) = 6157.47538313
delta logL = 0.0406976960294

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.897e-02  1.706e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.720e+00  1.703e+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.124e+00  2.226e-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.815e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 186.228 21.381

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/597087/cmap_HighResolution_248659201_248918401_4FGL_J1224.9+2122_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-05 13:31:17.872353', job_id='597087', GAL2='1.12', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1630873877.87', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.07e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='36' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:31:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 597087: <4FGL_J1224.9+2122_daily_bin36> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin36 186.228 21.3814 248659201 248918401 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 :                                   714.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

