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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin94
RA = 186.228, Dec = 21.3814
tmin = 263692801, tmax = 263952001
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='597195', job_status='RUN', time_executed='2021-09-05 13:16:30.169426', time_epoch_executed='1630872990.17' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597195

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597195/ft1_4FGL_J1224.9+2122_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597195/ft2_4FGL_J1224.9+2122_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597195/ft1_4FGL_J1224.9+2122_daily_bin94.fits outfile=/scratch/kocevski/597195/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin94.fits ra=186.228 dec=21.3814 rad=12.0 tmin=263692801.0 tmax=263952001.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.75
user 1.45
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597195/ft2_4FGL_J1224.9+2122_daily_bin94.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/597195/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/597195/ft1_filtered_4FGL_J1224.9+2122_daily_bin94.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.53
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597195/ft1_filtered_4FGL_J1224.9+2122_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/597195/ft2_4FGL_J1224.9+2122_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/597195/ltcube_263692801_263952001_4FGL_J1224.9+2122_daily_bin94.fits outfile=/scratch/kocevski/597195/expmap_263692801_263952001_4FGL_J1224.9+2122_daily_bin94.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/597195/ltcube_263692801_263952001_4FGL_J1224.9+2122_daily_bin94.fits
.....................!
real 191.73
user 184.95
sys 5.42

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/597195/ft1_filtered_4FGL_J1224.9+2122_daily_bin94.fits scfile=/scratch/kocevski/597195/ft2_4FGL_J1224.9+2122_daily_bin94.fits outfile=/scratch/kocevski/597195/cmap_263692801_263952001_4FGL_J1224.9+2122_daily_bin94.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597195/ft1_filtered_4FGL_J1224.9+2122_daily_bin94.fits scfile=/scratch/kocevski/597195/ft2_4FGL_J1224.9+2122_daily_bin94.fits outfile=/scratch/kocevski/597195/cmap_HighResolution_263692801_263952001_4FGL_J1224.9+2122_daily_bin94.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.490       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3360       1.0000         .10000E-03   10000.    
     4 'norm      '    .78730       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31892E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27546E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6206       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5651       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .44588       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.638       1.0000         .10000E-03   10000.    
    23 'norm      '    33.069       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82955       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0790       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=   5704.666     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2535 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.492        18.223        .97979E-06    .74024E-05
   2  Prefactor     .10000E-03    3.9020       -.26722E-06** at limit **
   3  Prefactor     2.3360        1.7916       -.19854E-06   -.28737E-03
   4  norm          .78704        1.0540       -.28416E-06   -.14037E-02
   5  Prefactor     7.5983        10.567       -.10619E-06   -.82166E-04
   6  Prefactor     .10009E-03    1.7160       -.17896E-07** at limit **
   7  Prefactor     37.887        43.737       -.67903E-06   -.11119E-04
   8  Prefactor     1.2455        1.9022       -.45269E-06   -.14185E-02
   9  Prefactor     .31445E-01    1.4896        .14607E-05   -.23563E-02
  10  norm          1.6206        1.6835       -.31588E-06    .13303E-03
  11  Prefactor     1.5650        1.7118       -.16273E-06   -.80689E-04
  12  Prefactor     6.8961        2.7842        .55916E-06   -.68619E-05
  13  Prefactor     .10000E-03    1.7629       -.11366E-06** at limit **
  14  norm          .44587        .23001       -.53247E-07   -.15059E-02
  15  norm          .10000E-03    1.1038       -.31619E-07** at limit **
  16  Prefactor     2.7672        7.9638        .19678E-05   -.11273E-03
  17  Prefactor     20.492        10.586        .57441E-07    .90111E-05
  18  Prefactor     6.9801        24.450       -.27371E-04   -.64455E-04
  19  Prefactor     .10000E-03    23.019        .21112E-04** at limit **
  20  Prefactor     .10000E-03    4.2755       -.27868E-07** at limit **
  21  Prefactor     .10000E-03    21.211       -.17308E-04** at limit **
  22  norm          10.637        4.7994       -.62236E-07   -.40179E-04
  23  norm          33.068        25.418       -.87126E-06    .22314E-05
  24  Normalizat    .82953        .18174        .17769E-05   -.12166E-03
  25  Prefactor     1.0790        .18178        .99227E-06   -.87076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4916
  Prefactor  = 0.0001
  Prefactor  = 2.33597
  norm       = 0.787037
  Prefactor  = 7.59829
  Prefactor  = 0.00010009
  Prefactor  = 37.8869
  Prefactor  = 1.24549
  Prefactor  = 0.0314454
  norm       = 1.62059
  Prefactor  = 1.56502
  Prefactor  = 6.89611
  Prefactor  = 0.0001
  norm       = 0.445866
  norm       = 0.0001
  Prefactor  = 2.76724
  Prefactor  = 20.4916
  Prefactor  = 6.98013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.6372
  norm       = 33.0681
  Normalizat = 0.82953
  Prefactor  = 1.07895
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.666     FROM HESSE     STATUS=OK           449 CALLS     2984 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.492        18.187        .90724E-04   -1.4825    
   2  Prefactor     .10000E-03    3.9303        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3360        1.7815        .83497E-04   -1.5402    
   4  norm          .78704        .96443        .85388E-03   -1.5531    
   5  Prefactor     7.5983        10.562        .14548E-03   -1.5157    
   6  Prefactor     .10009E-03    32.142        .18745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.887        43.737        .65114E-04   -1.4476    
   8  Prefactor     1.2455        1.8767        .11917E-03   -1.5485    
   9  Prefactor     .31445E-01    4.4404        .29272E-01   -1.5673    
  10  norm          1.6206        1.6913        .95851E-04   -1.5453    
  11  Prefactor     1.5650        1.7072        .98648E-04   -1.5458    
  12  Prefactor     6.8961        2.7775        .75123E-04   -1.5183    
  13  Prefactor     .10000E-03    1.7680        .97927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .44587        .22761        .24673E-04   -1.5574    
  15  norm          .10000E-03    1.1060        .77488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7672        7.8550        .24469E-03   -1.5375    
  17  Prefactor     20.492        10.585        .88481E-04   -1.4802    
  18  Prefactor     6.9801        24.258        .15169E-03   -1.5180    
  19  Prefactor     .10000E-03    22.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3075        .15247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.637        4.8002        .10651E-03   -1.5056    
  23  norm          33.068        25.418        .69682E-04   -1.4557    
  24  Normalizat    .82953        .21244        .25908E-03   -.98982    
  25  Prefactor     1.0790        .21390        .24349E-03   -.90142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20284e-09
Minuit parameter uncertainties:
  1  18.1922
  2  7.67781e-06
  3  1.78158
  4  0.96445
  5  10.565
  6  0.00339584
  7  43.7745
  8  1.87682
  9  0.74621
  10  1.69131
  11  1.70726
  12  2.77758
  13  3.85616e-06
  14  0.22761
  15  2.58588e-06
  16  7.85795
  17  10.5861
  18  24.2925
  19  1.13519e-05
  20  1.13295e-05
  21  0.00021614
  22  4.80041
  23  25.426
  24  0.212654
  25  0.214069
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.459e-01  2.276e-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.079e+00  2.141e-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.295e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.81
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.53e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 1.34e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5704.29909797
delta logL = 0.367038127091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5704.29651308
delta logL = 0.369623019004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42049       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8690       1.0000          .0000       5.0000    
     3 'Normalizat'    .77588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1190       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=   5704.297     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42044        3.0658        .48316E-02    .56708E-03
   2  alpha         2.8693        3.5960        .39076        .25487E-04
   3  Normalizat    .77612        .75776E-01    .43295E-01    .14354E-04
   4  Prefactor     1.1187        .75788E-01    .54233E-01   -.98617E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.420444
  alpha      = 2.86928
  Normalizat = 0.776118
  Prefactor  = 1.11869
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.297     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42044        .25009        .21546E-04   -1.5578    
   2  alpha         2.8693        .78526        .15180E-01    .14826    
   3  Normalizat    .77612        .21250        .26689E-03   -1.0096    
   4  Prefactor     1.1187        .21938        .23978E-03   -.88871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10201e-09
Minuit parameter uncertainties:
  1  0.250095
  2  0.799099
  3  0.212723
  4  0.219561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597195': 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) = 5704.29651207
delta logL = 0.369624031578

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.204e-01  2.501e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.869e+00  7.991e-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.119e+00  2.196e-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.761e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.63
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.87 +/- 0.80
Photon Flux (Free Index): 1.09e-07 +/- 5.95e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.12e-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/597195/cmap_HighResolution_263692801_263952001_4FGL_J1224.9+2122_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.53e-08', energy_flux2='2.31e-05', photon_flux_error='3.84e-08', dlogl='3.70e-01', energy_flux='2.62e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-05 13:26:28.179767', photon_index_error2='0.80', photon_index2='2.87', ts='7.81', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='0.83', time_epoch_completed='1630873588.18', return_code='0', job_id='597195', GAL2='1.12', EG2='0.78', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.95e-08', ts2='8.63', photon_index='2.28' WHERE bin_id='94' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:26:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 597195: <4FGL_J1224.9+2122_daily_bin94> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin94 186.228 21.3814 263692801 263952001 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 :                                   585.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

