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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1399
RA = 186.228, Dec = 21.3814
tmin = 601948801, tmax = 602208001
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='603376', job_status='RUN', time_executed='2021-09-05 13:39:24.764161', time_epoch_executed='1630874364.76' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603376

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603376/ft1_4FGL_J1224.9+2122_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603376/ft2_4FGL_J1224.9+2122_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603376/ft1_4FGL_J1224.9+2122_daily_bin1399.fits outfile=/scratch/kocevski/603376/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1399.fits ra=186.228 dec=21.3814 rad=12.0 tmin=601948801.0 tmax=602208001.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 3.79
user 3.55
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603376/ft1_filtered_4FGL_J1224.9+2122_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/603376/ft2_4FGL_J1224.9+2122_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/603376/ltcube_601948801_602208001_4FGL_J1224.9+2122_daily_bin1399.fits outfile=/scratch/kocevski/603376/expmap_601948801_602208001_4FGL_J1224.9+2122_daily_bin1399.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/603376/ltcube_601948801_602208001_4FGL_J1224.9+2122_daily_bin1399.fits
.....................!
real 195.00
user 187.11
sys 4.71

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/603376/ft1_filtered_4FGL_J1224.9+2122_daily_bin1399.fits scfile=/scratch/kocevski/603376/ft2_4FGL_J1224.9+2122_daily_bin1399.fits outfile=/scratch/kocevski/603376/cmap_601948801_602208001_4FGL_J1224.9+2122_daily_bin1399.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603376/ft1_filtered_4FGL_J1224.9+2122_daily_bin1399.fits scfile=/scratch/kocevski/603376/ft2_4FGL_J1224.9+2122_daily_bin1399.fits outfile=/scratch/kocevski/603376/cmap_HighResolution_601948801_602208001_4FGL_J1224.9+2122_daily_bin1399.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58598E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4613       1.0000         .10000E-03   10000.    
     4 'norm      '    .22340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9491       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8669       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4460       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2168       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3786       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1349       1.0000         .10000E-03   10000.    
    14 'norm      '    .16026       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1735       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.054       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.721       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3933       1.0000         .10000E-03   10000.    
    23 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3595       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66392       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=   6059.977     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2914 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.864        .39817E-04** at limit **
   2  Prefactor     .10000E-03    2.7357       -.94406E-10** at limit **
   3  Prefactor     2.4602        1.4425        .28409E-06    .80345E-03
   4  norm          .22315        .78250        .31861E-06   -.17255E-04
   5  Prefactor     .10000E-03    15.440       -.21268E-05** at limit **
   6  Prefactor     2.9490        3.3346       -.41500E-06   -.16150E-03
   7  Prefactor     .10000E-03    56.800        .71536E-05** at limit **
   8  Prefactor     .10000E-03    1.6112        .29970E-06** at limit **
   9  Prefactor     1.8672        2.7179        .14649E-07    .30719E-04
  10  norm          3.4475        3.4232       -.16978E-06   -.15521E-03
  11  Prefactor     8.2163        3.3185        .41430E-08   -.13482E-03
  12  Prefactor     3.3779        2.1438       -.11232E-07   -.47794E-04
  13  Prefactor     1.1360        1.1678        .12311E-05   -.21370E-02
  14  norm          .16029        .15928       -.36727E-07   -.16169E-02
  15  norm          6.0369        4.5338        .20221E-06    .95839E-04
  16  Prefactor     4.6802        5.7159       -.17516E-06   -.19455E-03
  17  Prefactor     7.1734        8.7221        .24310E-07    .65947E-05
  18  Prefactor     .10000E-03    16.084        .16969E-05** at limit **
  19  Prefactor     28.061        90.860       -.27568E-05    .47330E-05
  20  Prefactor     .10000E-03    2.5584       -.12014E-06** at limit **
  21  Prefactor     16.724        14.068       -.12354E-06   -.23711E-04
  22  norm          1.3939        2.5709       -.18363E-06   -.26719E-03
  23  norm          .10000E-03    25.781        .10952E-05** at limit **
  24  Normalizat    1.3596        .17947        .89432E-07   -.81349E-04
  25  Prefactor     .66372        .17859        .10126E-05    .12511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.4602
  norm       = 0.223146
  Prefactor  = 0.0001
  Prefactor  = 2.94896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86717
  norm       = 3.44746
  Prefactor  = 8.21627
  Prefactor  = 3.37789
  Prefactor  = 1.13601
  norm       = 0.160293
  norm       = 6.03695
  Prefactor  = 4.68017
  Prefactor  = 7.17337
  Prefactor  = 0.0001
  Prefactor  = 28.0614
  Prefactor  = 0.0001
  Prefactor  = 16.7238
  norm       = 1.39386
  norm       = 0.000100001
  Normalizat = 1.35957
  Prefactor  = 0.663724
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.630        .44330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7407        .12574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4602        1.4338        .68985E-04   -1.5394    
   4  norm          .22315        .76580        .12288E-03   -1.5614    
   5  Prefactor     .10000E-03    15.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9490        3.3222        .14437E-03   -1.5365    
   7  Prefactor     .10000E-03    56.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6393        .19217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8672        2.6906        .14653E-03   -1.5435    
  10  norm          3.4475        3.4221        .12504E-03   -1.5337    
  11  Prefactor     8.2163        3.3283        .78950E-04   -1.5135    
  12  Prefactor     3.3779        2.1382        .85568E-04   -1.5340    
  13  Prefactor     1.1360        4.6150        .15495E-02   -1.5495    
  14  norm          .16029        .14870        .29748E-03   -1.5628    
  15  norm          6.0369        4.6992        .13733E-03   -1.5217    
  16  Prefactor     4.6802        5.7137        .18608E-03   -1.5275    
  17  Prefactor     7.1734        8.7112        .14977E-03   -1.5172    
  18  Prefactor     .10000E-03    16.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.061        91.072        .75638E-04   -1.4648    
  20  Prefactor     .10000E-03    2.5651        .12159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.724        14.080        .97945E-04   -1.4890    
  22  norm          1.3939        2.5346        .16404E-03   -1.5472    
  23  norm          .10000E-03    26.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3596        .20944        .21920E-03   -.81805    
  25  Prefactor     .66372        .20836        .30918E-03   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85196e-09
Minuit parameter uncertainties:
  1  0.000566354
  2  4.26563e-06
  3  1.43381
  4  0.765838
  5  4.74126e-05
  6  3.32237
  7  7.63065e-05
  8  2.82189e-05
  9  2.69079
  10  3.42232
  11  3.3284
  12  2.13826
  13  4.57978
  14  0.148699
  15  4.69951
  16  5.7144
  17  8.71275
  18  0.000113349
  19  91.5284
  20  1.72124e-05
  21  14.0832
  22  2.5348
  23  0.000266934
  24  0.20957
  25  0.208602
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.603e-01  1.487e-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:  6.637e-01  2.086e-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.360e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.71e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 9.41e-06 +/- 8.73e-06

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

Saving results to:
/scratch/kocevski/603376/likelihoodResults_601948801_602208001_4FGL_J1224.9+2122_daily_bin1399.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) = 6059.97676673
delta logL = 0.000284907252535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6059.97676449
delta logL = 0.000287154680336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16034       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2953       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66402       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=   6059.977     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16039        8.2584        .63112E-02    .29574E-02
   2  alpha         2.2959        3.3415        .41327        .17291E-04
   3  Normalizat    1.3592        .12352        .49590E-01    .86951E-03
   4  Prefactor     .66401        .15944        .69848E-01    .71646E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.160392
  alpha      = 2.29593
  Normalizat = 1.35917
  Prefactor  = 0.664006
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.977     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16039        .14840        .29717E-03   -1.5628    
   2  alpha         2.2959        .73503        .19240E-01   -.81720E-01
   3  Normalizat    1.3592        .20281        .21923E-03   -.81817    
   4  Prefactor     .66401        .20731        .30912E-03   -1.0495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53656e-10
Minuit parameter uncertainties:
  1  0.148404
  2  0.746132
  3  0.202928
  4  0.207551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603376': 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) = 6059.97676408
delta logL = 0.000287563300844

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.604e-01  1.484e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.296e+00  7.461e-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:  6.640e-01  2.076e-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.359e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.30 +/- 0.75
Photon Flux (Free Index): 2.74e-08 +/- 2.79e-08
Energy Flux (Free Index): 9.31e-06 +/- 9.70e-06

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/603376/cmap_HighResolution_601948801_602208001_4FGL_J1224.9+2122_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', comment='SUCCESS', photon_flux='2.71e-08', energy_flux2='9.31e-06', photon_flux_error='2.51e-08', dlogl='2.88e-04', energy_flux='9.41e-06', photon_flux2='2.74e-08', job_status='DONE', time_completed='2021-09-05 13:51:28.201289', photon_index_error2='0.75', photon_index2='2.30', ts='1.88', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='8.77e-08', energy_flux_error2='9.70e-06', EG='1.36', time_epoch_completed='1630875088.2', return_code='0', job_id='603376', GAL2='0.66', EG2='1.36', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='2.79e-08', ts2='1.87', photon_index='2.28' WHERE bin_id='1399' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 603376: <4FGL_J1224.9+2122_daily_bin1399> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1399> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:04 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:07 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:36:07 2021
Terminated at Sun Sep  5 13:51:28 2021
Results reported at Sun Sep  5 13:51:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1399 186.228 21.3814 601948801 602208001 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 :                                   712.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

