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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin841
RA = 186.228, Dec = 21.3814
tmin = 457315201, tmax = 457574401
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='601412', job_status='RUN', time_executed='2021-09-05 13:31:02.987943', time_epoch_executed='1630873862.99' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='841'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601412/ft1_4FGL_J1224.9+2122_daily_bin841.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601412/ft2_4FGL_J1224.9+2122_daily_bin841.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601412/ft1_4FGL_J1224.9+2122_daily_bin841.fits outfile=/scratch/kocevski/601412/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin841.fits ra=186.228 dec=21.3814 rad=12.0 tmin=457315201.0 tmax=457574401.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.03
user 4.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601412/ft1_filtered_4FGL_J1224.9+2122_daily_bin841.fits" evtable="EVENTS" scfile=/scratch/kocevski/601412/ft2_4FGL_J1224.9+2122_daily_bin841.fits sctable="SC_DATA" outfile=/scratch/kocevski/601412/ltcube_457315201_457574401_4FGL_J1224.9+2122_daily_bin841.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/601412/ft2_4FGL_J1224.9+2122_daily_bin841.fits
.....................!
real 11.76
user 11.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601412/ft1_filtered_4FGL_J1224.9+2122_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/601412/ft2_4FGL_J1224.9+2122_daily_bin841.fits sctable="SC_DATA" expcube=/scratch/kocevski/601412/ltcube_457315201_457574401_4FGL_J1224.9+2122_daily_bin841.fits outfile=/scratch/kocevski/601412/expmap_457315201_457574401_4FGL_J1224.9+2122_daily_bin841.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/601412/ltcube_457315201_457574401_4FGL_J1224.9+2122_daily_bin841.fits
.....................!
real 191.56
user 184.73
sys 4.84

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/601412/ft1_filtered_4FGL_J1224.9+2122_daily_bin841.fits scfile=/scratch/kocevski/601412/ft2_4FGL_J1224.9+2122_daily_bin841.fits outfile=/scratch/kocevski/601412/cmap_457315201_457574401_4FGL_J1224.9+2122_daily_bin841.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11791E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.219       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8612       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9448       1.0000         .10000E-03   10000.    
    14 'norm      '    .85216       1.0000         .10000E-03   10000.    
    15 'norm      '    27.025       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8107       1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.010       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9102       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13652E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2640       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2227       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0817       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=   6841.397     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     2991 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9486        16.802        .58489E-05   -.61233E-04
   2  Prefactor     2.4233        9.8370        .62742E-05   -.24268E-03
   3  Prefactor     .10000E-03    .69117       -.14616E-07** at limit **
   4  norm          7.8871        1.8269        .28049E-07   -.15151E-03
   5  Prefactor     .10000E-03    10.484        .12632E-04** at limit **
   6  Prefactor     .10000E-03    4.6867       -.38963E-07** at limit **
   7  Prefactor     .10000E-03    156.01       -.18531E-04** at limit **
   8  Prefactor     .10000E-03    1.7660        .23529E-07** at limit **
   9  Prefactor     .10000E-03    1.7754       -.47379E-06** at limit **
  10  norm          18.218        5.1316        .32566E-06    .43056E-04
  11  Prefactor     3.3060        2.8759        .14918E-06   -.15526E-03
  12  Prefactor     2.8611        2.0404        .32444E-07   -.25886E-02
  13  Prefactor     7.9512        6.3120       -.20153E-06   -.82304E-05
  14  norm          .85212        .29439        .37407E-08   -.82354E-03
  15  norm          27.031        7.6180        .11652E-05    .44358E-04
  16  Prefactor     .10001E-03    10.145       -.15052E-04** at limit **
  17  Prefactor     4.0325        10.256       -.11616E-04   -.15860E-03
  18  Prefactor     1.7290        146.48        .99015E-04    .42634E-04
  19  Prefactor     72.001        81.146       -.58444E-05    .94322E-06
  20  Prefactor     4.9079        4.8014        .19772E-06    .93251E-04
  21  Prefactor     .11857E-03    11.603       -.18068E-05** at limit **
  22  norm          2.2629        2.6449        .15869E-06   -.42353E-04
  23  norm          .10000E-03    15.102       -.78842E-07** at limit **
  24  Normalizat    1.2227        .20483       -.19637E-05   -.74325E-04
  25  Prefactor     1.0816        .20044       -.22307E-05   -.69779E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94856
  Prefactor  = 2.42333
  Prefactor  = 0.0001
  norm       = 7.88708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 18.2181
  Prefactor  = 3.30605
  Prefactor  = 2.86113
  Prefactor  = 7.95124
  norm       = 0.85212
  norm       = 27.0306
  Prefactor  = 0.000100009
  Prefactor  = 4.03253
  Prefactor  = 1.72901
  Prefactor  = 72.0013
  Prefactor  = 4.90795
  Prefactor  = 0.000118572
  norm       = 2.26286
  norm       = 0.0001
  Normalizat = 1.22273
  Prefactor  = 1.08155
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.397     FROM HESSE     STATUS=OK           443 CALLS     3434 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9486        16.792        .18100E-03   -1.5263    
   2  Prefactor     2.4233        9.7140        .26383E-03   -1.5397    
   3  Prefactor     .10000E-03    .71886        .13412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8871        1.8265        .51222E-04   -1.5146    
   5  Prefactor     .10000E-03    10.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8345        .34876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    156.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9393        .20537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.449        .20383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.218        5.1506        .87014E-04   -1.4854    
  11  Prefactor     3.3060        2.8769        .11573E-03   -1.5344    
  12  Prefactor     2.8611        2.0377        .47541E-03   -1.5370    
  13  Prefactor     7.9512        6.3079        .14225E-03   -1.5144    
  14  norm          .85212        .29332        .25082E-04   -1.5523    
  15  norm          27.031        7.6185        .77061E-04   -1.4668    
  16  Prefactor     .10001E-03    10.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0325        10.225        .20100E-03   -1.5306    
  18  Prefactor     1.7290        145.53        .31048E-03   -1.5445    
  19  Prefactor     72.001        81.196        .47309E-04   -1.4009    
  20  Prefactor     4.9079        4.8038        .17423E-03   -1.5265    
  21  Prefactor     .11857E-03    12.630        .85232E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2629        2.6392        .14118E-03   -1.5407    
  23  norm          .10000E-03    15.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2227        .24284        .27854E-03   -.85903    
  25  Prefactor     1.0816        .23930        .30335E-03   -.90058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03649e-09
Minuit parameter uncertainties:
  1  16.8082
  2  9.70619
  3  1.33121e-06
  4  1.8265
  5  7.624e-06
  6  2.34158e-06
  7  1.85499e-05
  8  5.19109e-06
  9  0.000455591
  10  5.15073
  11  2.87702
  12  2.03771
  13  6.30847
  14  0.293316
  15  7.61876
  16  0.000610951
  17  10.2294
  18  31.8044
  19  81.321
  20  4.80415
  21  0.030637
  22  2.63931
  23  1.85069e-05
  24  0.243069
  25  0.239541
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.521e-01  2.933e-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.082e+00  2.395e-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:  1.223e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.76
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 4.95e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 1.72e-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) = 6841.31079838
delta logL = 0.0859428435024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6841.30451718
delta logL = 0.0922240440777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84249       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1167       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0692       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=   6841.305     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84248        .31973        .57179E-02    .67571E-05
   2  alpha         2.1167        .34534        .26094       -.12125E-04
   3  Normalizat    1.2398        .19351        .62616E-01    .20442E-05
   4  Prefactor     1.0692        .19919        .68904E-01    .17350E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.842484
  alpha      = 2.11672
  Normalizat = 1.23985
  Prefactor  = 1.0692
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.305     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84248        .29729        .25372E-04   -1.5524    
   2  alpha         2.1167        .36246        .10293E-01   -.15392    
   3  Normalizat    1.2398        .23295        .27696E-03   -.85380    
   4  Prefactor     1.0692        .23811        .30483E-03   -.90457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53821e-12
Minuit parameter uncertainties:
  1  0.297289
  2  0.363768
  3  0.233143
  4  0.238342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601412': 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) = 6841.30451718
delta logL = 0.0922240447371

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.425e-01  2.973e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.117e+00  3.638e-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.069e+00  2.383e-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:  1.240e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.81
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.12 +/- 0.36
Photon Flux (Free Index): 1.30e-07 +/- 5.52e-08
Energy Flux (Free Index): 5.69e-05 +/- 2.73e-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/601412/cmap_HighResolution_457315201_457574401_4FGL_J1224.9+2122_daily_bin841.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='5.69e-05', photon_flux_error='4.95e-08', dlogl='9.22e-02', energy_flux='5.00e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-05 13:42:51.648918', photon_index_error2='0.36', photon_index2='2.12', ts='22.76', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='1.22', time_epoch_completed='1630874571.65', return_code='0', job_id='601412', GAL2='1.07', EG2='1.24', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='5.52e-08', ts2='22.81', photon_index='2.28' WHERE bin_id='841' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:42:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 601412: <4FGL_J1224.9+2122_daily_bin841> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin841 186.228 21.3814 457315201 457574401 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 :                                   701.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

