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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1035
RA = 186.228, Dec = 21.3814
tmin = 507600001, tmax = 507859201
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='601695', job_status='RUN', time_executed='2021-09-05 13:34:58.653685', time_epoch_executed='1630874098.65' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601695/ft1_4FGL_J1224.9+2122_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601695/ft2_4FGL_J1224.9+2122_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601695/ft1_4FGL_J1224.9+2122_daily_bin1035.fits outfile=/scratch/kocevski/601695/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1035.fits ra=186.228 dec=21.3814 rad=12.0 tmin=507600001.0 tmax=507859201.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.56
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601695/ft2_4FGL_J1224.9+2122_daily_bin1035.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/601695/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/601695/ft1_filtered_4FGL_J1224.9+2122_daily_bin1035.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601695/ft1_filtered_4FGL_J1224.9+2122_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/601695/ft2_4FGL_J1224.9+2122_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/601695/ltcube_507600001_507859201_4FGL_J1224.9+2122_daily_bin1035.fits outfile=/scratch/kocevski/601695/expmap_507600001_507859201_4FGL_J1224.9+2122_daily_bin1035.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/601695/ltcube_507600001_507859201_4FGL_J1224.9+2122_daily_bin1035.fits
.....................!
real 190.74
user 185.59
sys 4.79

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/601695/ft1_filtered_4FGL_J1224.9+2122_daily_bin1035.fits scfile=/scratch/kocevski/601695/ft2_4FGL_J1224.9+2122_daily_bin1035.fits outfile=/scratch/kocevski/601695/cmap_507600001_507859201_4FGL_J1224.9+2122_daily_bin1035.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601695/ft1_filtered_4FGL_J1224.9+2122_daily_bin1035.fits scfile=/scratch/kocevski/601695/ft2_4FGL_J1224.9+2122_daily_bin1035.fits outfile=/scratch/kocevski/601695/cmap_HighResolution_507600001_507859201_4FGL_J1224.9+2122_daily_bin1035.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/601695/ft1_filtered_4FGL_J1224.9+2122_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/601695/ft2_4FGL_J1224.9+2122_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601695/Model_4FGL_J1224.9+2122_daily_bin1035.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/601695/ft1_filtered_4FGL_J1224.9+2122_daily_bin1035.fits....................!
real 51.94
user 50.28
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.869       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2936       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69127       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3233       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.399       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5213       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7285       1.0000         .10000E-03   10000.    
    10 'norm      '    13.211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5462       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6230       1.0000         .10000E-03   10000.    
    14 'norm      '    .37893       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3255       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.054       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.714       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9145       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18419E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.7110       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0766       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81876       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=   5661.955     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2928 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.868        19.137        .97214E-07    .10492E-03
   2  Prefactor     9.2945        11.557       -.83783E-05    .38413E-05
   3  Prefactor     .69167        1.4251       -.57822E-06   -.15556E-02
   4  norm          1.3233        .95930       -.16178E-06   -.16152E-05
   5  Prefactor     17.405        14.163        .11034E-04    .11731E-03
   6  Prefactor     1.5214        3.5868       -.13737E-05   -.58259E-03
   7  Prefactor     25.852        71.453       -.20253E-03    .18068E-04
   8  Prefactor     .10000E-03    1.3750        .31327E-07** at limit **
   9  Prefactor     5.7293        3.3342       -.34096E-06    .67439E-04
  10  norm          13.210        4.1074       -.88602E-06    .11167E-03
  11  Prefactor     3.5459        2.2783        .21934E-06    .54181E-04
  12  Prefactor     .10000E-03    .77024       -.52017E-07** at limit **
  13  Prefactor     7.6226        5.5508        .70377E-06    .89899E-04
  14  norm          .37895        .26098       -.14525E-06   -.87019E-03
  15  norm          5.3251        4.1986       -.12805E-05   -.56087E-04
  16  Prefactor     11.055        9.5909       -.40305E-05    .54249E-04
  17  Prefactor     .10000E-03    3.4576       -.16622E-06** at limit **
  18  Prefactor     13.907        30.460        .23862E-07    .38034E-04
  19  Prefactor     19.713        44.486       -.18829E-05    .11232E-05
  20  Prefactor     4.9137        7.0700        .51115E-05   -.18830E-03
  21  Prefactor     .10034E-03    12.651       -.16702E-05** at limit **
  22  norm          .10000E-03    1.1513       -.71767E-07** at limit **
  23  norm          8.7120        19.497       -.33982E-05   -.17215E-04
  24  Normalizat    1.0766        .19431        .28730E-05    .30255E-03
  25  Prefactor     .81875        .18937        .44108E-05    .22007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8679
  Prefactor  = 9.29453
  Prefactor  = 0.691667
  norm       = 1.32326
  Prefactor  = 17.405
  Prefactor  = 1.5214
  Prefactor  = 25.8523
  Prefactor  = 0.0001
  Prefactor  = 5.7293
  norm       = 13.2105
  Prefactor  = 3.5459
  Prefactor  = 0.0001
  Prefactor  = 7.62265
  norm       = 0.378945
  norm       = 5.32509
  Prefactor  = 11.0548
  Prefactor  = 0.0001
  Prefactor  = 13.9066
  Prefactor  = 19.7134
  Prefactor  = 4.91374
  Prefactor  = 0.000100344
  norm       = 0.0001
  norm       = 8.71203
  Normalizat = 1.07657
  Prefactor  = 0.818753
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.955     FROM HESSE     STATUS=OK           443 CALLS     3371 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.868        18.846        .81990E-04   -1.4730    
   2  Prefactor     9.2945        11.516        .13146E-03   -1.5098    
   3  Prefactor     .69167        1.2249        .12007E-02   -1.5542    
   4  norm          1.3233        .95951        .60208E-04   -1.5478    
   5  Prefactor     17.405        14.159        .96017E-04   -1.4873    
   6  Prefactor     1.5214        3.5393        .20441E-03   -1.5461    
   7  Prefactor     25.852        71.526        .78609E-04   -1.4691    
   8  Prefactor     .10000E-03    1.4035        .17186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7293        3.3237        .99648E-04   -1.5229    
  10  norm          13.210        4.0952        .78437E-04   -1.4981    
  11  Prefactor     3.5459        2.2798        .85019E-04   -1.5331    
  12  Prefactor     .10000E-03    1.2262        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6226        5.5454        .14378E-03   -1.5156    
  14  norm          .37895        .25362        .29670E-04   -1.5585    
  15  norm          5.3251        4.1924        .13011E-03   -1.5246    
  16  Prefactor     11.055        9.5815        .12050E-03   -1.5043    
  17  Prefactor     .10000E-03    3.4632        .13664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.907        30.415        .10741E-03   -1.4962    
  19  Prefactor     19.713        44.501        .90207E-04   -1.4820    
  20  Prefactor     4.9137        7.0520        .18143E-03   -1.5265    
  21  Prefactor     .10034E-03    143.49        .50808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1587        .78831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.7120        19.487        .13581E-03   -1.5118    
  24  Normalizat    1.0766        .21893        .23938E-03   -.90508    
  25  Prefactor     .81875        .21436        .27736E-03   -.99041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43978e-09
Minuit parameter uncertainties:
  1  18.8508
  2  11.5192
  3  1.22495
  4  0.959524
  5  14.1614
  6  3.53974
  7  71.7643
  8  1.09373e-05
  9  3.32383
  10  4.09528
  11  2.27983
  12  1.45515e-05
  13  5.54574
  14  0.253623
  15  4.1926
  16  9.58284
  17  9.98286e-06
  18  30.4486
  19  44.5759
  20  7.05319
  21  0.0140852
  22  9.33232e-06
  23  19.5016
  24  0.21911
  25  0.214581
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.789e-01  2.536e-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:  8.188e-01  2.146e-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.077e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.40e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.49e-05

TS (Fixed Index): 3.53
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601695/likelihoodResults_507600001_507859201_4FGL_J1224.9+2122_daily_bin1035.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) = 5661.12256835
delta logL = 0.83202571041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5661.1167918
delta logL = 0.837802260858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36112       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0964       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86319       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=   5661.117     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36099        3.2573        .50213E-02    .12324E-02
   2  alpha         3.0965        3.8785        .35102        .30205E-04
   3  Normalizat    1.0106        .68052E-01    .45558E-01    .59420E-05
   4  Prefactor     .86332        .76159E-01    .44534E-01   -.48415E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.36099
  alpha      = 3.09652
  Normalizat = 1.01058
  Prefactor  = 0.863321
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.117     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36099        .25833        .22512E-04   -1.5588    
   2  alpha         3.0965        .71697        .14622E-01    .24093    
   3  Normalizat    1.0106        .21434        .24589E-03   -.92677    
   4  Prefactor     .86332        .21555        .27088E-03   -.97435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78948e-12
Minuit parameter uncertainties:
  1  0.258335
  2  0.727827
  3  0.214525
  4  0.215758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601695': 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) = 5661.11679138
delta logL = 0.837802685077

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.610e-01  2.583e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.097e+00  7.278e-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.633e-01  2.158e-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.011e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.32
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.10 +/- 0.73
Photon Flux (Free Index): 1.14e-07 +/- 6.27e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.18e-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/601695/cmap_HighResolution_507600001_507859201_4FGL_J1224.9+2122_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-05', comment='SUCCESS', photon_flux='6.40e-08', energy_flux2='2.17e-05', photon_flux_error='4.28e-08', dlogl='8.38e-01', energy_flux='2.23e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-05 13:46:34.740973', photon_index_error2='0.73', photon_index2='3.10', ts='3.53', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.18e-05', EG='1.08', time_epoch_completed='1630874794.74', return_code='0', job_id='601695', GAL2='0.86', EG2='1.01', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.27e-08', ts2='5.32', photon_index='2.28' WHERE bin_id='1035' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 601695: <4FGL_J1224.9+2122_daily_bin1035> in cluster <slac> Done

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

Your job looked like:

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

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

