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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1202
RA = 186.228, Dec = 21.3814
tmin = 550886401, tmax = 551145601
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='603103', job_status='RUN', time_executed='2021-09-05 13:37:36.281516', time_epoch_executed='1630874256.28' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603103/ft1_4FGL_J1224.9+2122_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603103/ft2_4FGL_J1224.9+2122_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603103/ft1_4FGL_J1224.9+2122_daily_bin1202.fits outfile=/scratch/kocevski/603103/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1202.fits ra=186.228 dec=21.3814 rad=12.0 tmin=550886401.0 tmax=551145601.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.83
user 3.59
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603103/ft1_filtered_4FGL_J1224.9+2122_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/603103/ft2_4FGL_J1224.9+2122_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/603103/ltcube_550886401_551145601_4FGL_J1224.9+2122_daily_bin1202.fits outfile=/scratch/kocevski/603103/expmap_550886401_551145601_4FGL_J1224.9+2122_daily_bin1202.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/603103/ltcube_550886401_551145601_4FGL_J1224.9+2122_daily_bin1202.fits
.....................!
real 193.54
user 188.82
sys 4.09

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/603103/ft1_filtered_4FGL_J1224.9+2122_daily_bin1202.fits scfile=/scratch/kocevski/603103/ft2_4FGL_J1224.9+2122_daily_bin1202.fits outfile=/scratch/kocevski/603103/cmap_550886401_551145601_4FGL_J1224.9+2122_daily_bin1202.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.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.346       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3149       1.0000         .10000E-03   10000.    
     4 'norm      '    7.1126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.367       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4631       1.0000         .10000E-03   10000.    
    14 'norm      '    .42913       1.0000         .10000E-03   10000.    
    15 'norm      '    14.424       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.840       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5917       1.0000         .10000E-03   10000.    
    23 'norm      '    18.878       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2291       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79831       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=   4457.150     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2884 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.886        37.982       -.21062E-05   -.12897E-03
   2  Prefactor     15.347        13.606        .10206E-06   -.60310E-05
   3  Prefactor     2.3152        2.8422        .69795E-07   -.15690E-03
   4  norm          7.1127        2.8870        .18155E-08   -.21080E-03
   5  Prefactor     16.257        15.278        .21250E-06    .11980E-04
   6  Prefactor     5.2597        4.4680        .44505E-07   -.35174E-04
   7  Prefactor     23.362        62.222       -.94052E-06   -.24429E-04
   8  Prefactor     .10000E-03    1.2252       -.11047E-07** at limit **
   9  Prefactor     .10000E-03    1.0260       -.62101E-08** at limit **
  10  norm          .10000E-03    4.6355        .24126E-06** at limit **
  11  Prefactor     5.0586        4.2518        .10214E-06    .19714E-03
  12  Prefactor     2.6558        4.9718        .38816E-06    .85192E-04
  13  Prefactor     6.4631        8.9837        .28296E-05   -.12446E-03
  14  norm          .42913        .29739       -.69976E-08   -.39448E-04
  15  norm          14.424        8.3769       -.46423E-06    .14693E-04
  16  Prefactor     .10000E-03    7.2722        .75462E-06** at limit **
  17  Prefactor     19.838        24.380       -.32271E-06   -.40892E-05
  18  Prefactor     46.719        34.037        .85426E-06    .86992E-04
  19  Prefactor     32.944        122.03        .67320E-05    .49331E-04
  20  Prefactor     .10000E-03    4.6121        .46017E-07** at limit **
  21  Prefactor     .10000E-03    8.0413       -.49294E-06** at limit **
  22  norm          3.5914        7.0087        .36436E-06   -.13824E-04
  23  norm          18.877        58.309       -.51401E-06   -.99570E-05
  24  Normalizat    1.2290        .23806        .33540E-06   -.47900E-04
  25  Prefactor     .79838        .21368       -.11263E-05    .10259E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.886
  Prefactor  = 15.3467
  Prefactor  = 2.31524
  norm       = 7.11273
  Prefactor  = 16.257
  Prefactor  = 5.25974
  Prefactor  = 23.3621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.05859
  Prefactor  = 2.65579
  Prefactor  = 6.4631
  norm       = 0.429133
  norm       = 14.424
  Prefactor  = 0.0001
  Prefactor  = 19.8383
  Prefactor  = 46.7189
  Prefactor  = 32.9438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.59141
  norm       = 18.8767
  Normalizat = 1.22905
  Prefactor  = 0.79838
 **********
 **   18 **HESSE 
 **********

 FCN=   4457.150     FROM HESSE     STATUS=OK           431 CALLS     3315 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.886        38.600        .87622E-04   -1.4794    
   2  Prefactor     15.347        13.617        .10224E-03   -1.4924    
   3  Prefactor     2.3152        2.8138        .11370E-03   -1.5404    
   4  norm          7.1127        2.8858        .67527E-04   -1.5175    
   5  Prefactor     16.257        15.282        .99337E-04   -1.4901    
   6  Prefactor     5.2597        4.4623        .12362E-03   -1.5249    
   7  Prefactor     23.362        62.354        .82864E-04   -1.4741    
   8  Prefactor     .10000E-03    1.2412        .72114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0313        .66019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.7261        .27953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0586        4.2407        .11732E-03   -1.5258    
  12  Prefactor     2.6558        4.9039        .17218E-03   -1.5382    
  13  Prefactor     6.4631        9.1759        .78934E-03   -1.5199    
  14  norm          .42913        .29334        .28775E-04   -1.5577    
  15  norm          14.424        8.3921        .10546E-03   -1.4948    
  16  Prefactor     .10000E-03    7.3367        .17606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.838        24.225        .89922E-04   -1.4817    
  18  Prefactor     46.719        34.246        .58665E-04   -1.4340    
  19  Prefactor     32.944        124.75        .69852E-04   -1.4559    
  20  Prefactor     .10000E-03    4.6169        .14002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5914        6.9720        .21322E-03   -1.5329    
  23  norm          18.877        58.087        .92181E-04   -1.4839    
  24  Normalizat    1.2290        .28003        .26272E-03   -.85710    
  25  Prefactor     .79838        .24792        .29805E-03   -.99788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17972e-10
Minuit parameter uncertainties:
  1  38.6462
  2  13.6193
  3  2.81392
  4  2.88586
  5  15.2853
  6  4.46262
  7  62.5287
  8  2.27855e-07
  9  4.41728e-07
  10  2.42623e-05
  11  4.24099
  12  4.9046
  13  9.17787
  14  0.293341
  15  8.39279
  16  5.24699e-05
  17  24.2372
  18  34.26
  19  125.754
  20  3.15326e-06
  21  5.32332e-05
  22  6.97359
  23  58.2613
  24  0.280371
  25  0.248263
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.291e-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:  7.984e-01  2.483e-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.229e+00  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 2.52e-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) = 4456.91240674
delta logL = 0.237430205851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4456.91039307
delta logL = 0.2394438777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45440       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7089       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81540       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=   4456.910     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45441        8.3934        .60501E-02    .40996E-03
   2  alpha         2.7088        2.7001        .36567        .10581E-05
   3  Normalizat    1.1984        .13803        .60036E-01    .55679E-05
   4  Prefactor     .81541        .16265        .66721E-01    .12163E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.454415
  alpha      = 2.70884
  Normalizat = 1.19841
  Prefactor  = 0.815411
 **********
 **   18 **HESSE 
 **********

 FCN=   4456.910     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .30E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45441        .29079        .27032E-04   -1.5573    
   2  alpha         2.7088        .63600        .14798E-01    .83633E-01
   3  Normalizat    1.1984        .26652        .26552E-03   -.86652    
   4  Prefactor     .81541        .24577        .29517E-03   -.99163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03358e-15
Minuit parameter uncertainties:
  1  0.290789
  2  0.643117
  3  0.266819
  4  0.246104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603103': 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) = 4456.91039306
delta logL = 0.239443889098

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.544e-01  2.908e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.709e+00  6.431e-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:  8.154e-01  2.461e-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.198e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.95
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.71 +/- 0.64
Photon Flux (Free Index): 1.03e-07 +/- 7.56e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.52e-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/603103/cmap_HighResolution_550886401_551145601_4FGL_J1224.9+2122_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='2.42e-05', photon_flux_error='4.95e-08', dlogl='2.39e-01', energy_flux='2.52e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-05 13:46:47.900379', photon_index_error2='0.64', photon_index2='2.71', ts='4.49', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.23', time_epoch_completed='1630874807.9', return_code='0', job_id='603103', GAL2='0.82', EG2='1.20', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.56e-08', ts2='4.95', photon_index='2.28' WHERE bin_id='1202' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 603103: <4FGL_J1224.9+2122_daily_bin1202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1202 186.228 21.3814 550886401 551145601 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 :                                   547.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            667 sec.

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

