/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 8 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 = 7476
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin301
RA = 186.228, Dec = 21.3814
tmin = 317347201, tmax = 317606401
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='597567', job_status='RUN', time_executed='2021-09-05 13:16:46.739199', time_epoch_executed='1630873006.74' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597567

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597567/ft1_4FGL_J1224.9+2122_daily_bin301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597567/ft2_4FGL_J1224.9+2122_daily_bin301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597567/ft1_4FGL_J1224.9+2122_daily_bin301.fits outfile=/scratch/kocevski/597567/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin301.fits ra=186.228 dec=21.3814 rad=12.0 tmin=317347201.0 tmax=317606401.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.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597567/ft1_filtered_4FGL_J1224.9+2122_daily_bin301.fits evtable="EVENTS" scfile=/scratch/kocevski/597567/ft2_4FGL_J1224.9+2122_daily_bin301.fits sctable="SC_DATA" expcube=/scratch/kocevski/597567/ltcube_317347201_317606401_4FGL_J1224.9+2122_daily_bin301.fits outfile=/scratch/kocevski/597567/expmap_317347201_317606401_4FGL_J1224.9+2122_daily_bin301.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/597567/ltcube_317347201_317606401_4FGL_J1224.9+2122_daily_bin301.fits
.....................!
real 190.11
user 185.05
sys 4.58

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/597567/ft1_filtered_4FGL_J1224.9+2122_daily_bin301.fits scfile=/scratch/kocevski/597567/ft2_4FGL_J1224.9+2122_daily_bin301.fits outfile=/scratch/kocevski/597567/cmap_317347201_317606401_4FGL_J1224.9+2122_daily_bin301.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5744       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1966       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8604       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17855E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6250       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43343E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0382       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36967       1.0000         .10000E-03   10000.    
    10 'norm      '    .36346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6521       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4299       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9099       1.0000         .10000E-03   10000.    
    15 'norm      '    8.4861       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7283       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.283       1.0000         .10000E-03   10000.    
    22 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91965       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0729       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=   7168.895     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2548 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5686        11.927        .66754E-05   -.64649E-03
   2  Prefactor     .10000E-03    3.5005       -.15731E-07** at limit **
   3  Prefactor     1.1965        1.0781       -.11170E-06   -.94441E-04
   4  norm          2.8596        1.4902       -.69901E-07   -.27658E-03
   5  Prefactor     .10000E-03    7.9198        .37290E-06** at limit **
   6  Prefactor     1.6247        3.9112        .13398E-05    .40753E-04
   7  Prefactor     .10001E-03    47.025       -.40111E-05** at limit **
   8  Prefactor     7.0381        3.6559       -.46223E-06   -.94006E-03
   9  Prefactor     .36714        1.9712        .11981E-05   -.44902E-03
  10  norm          .36381        2.0620        .11076E-05   -.59819E-03
  11  Prefactor     1.4446        1.4280       -.14893E-06   -.32829E-05
  12  Prefactor     8.6525        2.9149       -.38261E-07   -.14139E-03
  13  Prefactor     5.4410        6.8530       -.18069E-05   -.83747E-03
  14  norm          3.9098        .49839        .27356E-07   -.37140E-03
  15  norm          8.4637        5.2070        .70809E-06    .42291E-03
  16  Prefactor     33.078        14.526        .57083E-07   -.25727E-04
  17  Prefactor     28.665        12.572        .12661E-06    .29804E-04
  18  Prefactor     .10000E-03    43.776        .65398E-06** at limit **
  19  Prefactor     5.4369        73.800       -.16039E-05   -.31524E-04
  20  Prefactor     10.056        6.6188       -.13359E-05   -.12055E-02
  21  Prefactor     16.266        17.222        .28413E-05    .52732E-03
  22  norm          .10000E-03    2.3288        .32451E-07** at limit **
  23  norm          .10000E-03    6.5836       -.76220E-07** at limit **
  24  Normalizat    .91987        .19369       -.12635E-05   -.67659E-04
  25  Prefactor     1.0729        .18902       -.24915E-07   -.11742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56856
  Prefactor  = 0.0001
  Prefactor  = 1.19651
  norm       = 2.85962
  Prefactor  = 0.0001
  Prefactor  = 1.62472
  Prefactor  = 0.000100006
  Prefactor  = 7.03811
  Prefactor  = 0.367141
  norm       = 0.363806
  Prefactor  = 1.44462
  Prefactor  = 8.65251
  Prefactor  = 5.44096
  norm       = 3.90977
  norm       = 8.46374
  Prefactor  = 33.0785
  Prefactor  = 28.6652
  Prefactor  = 0.0001
  Prefactor  = 5.43694
  Prefactor  = 10.056
  Prefactor  = 16.2658
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.919868
  Prefactor  = 1.0729
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.895     FROM HESSE     STATUS=OK           437 CALLS     2985 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5686        13.015        .10688E-02   -1.5330    
   2  Prefactor     .10000E-03    3.5085        .15469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1965        1.0992        .80821E-04   -1.5489    
   4  norm          2.8596        1.4915        .70204E-04   -1.5370    
   5  Prefactor     .10000E-03    7.9469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6247        3.8770        .24197E-03   -1.5453    
   7  Prefactor     .10001E-03    47.510        .21226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0381        3.6433        .10782E-03   -1.5177    
   9  Prefactor     .36714        1.9331        .22893E-03   -1.5587    
  10  norm          .36381        2.0955        .22734E-03   -1.5587    
  11  Prefactor     1.4446        1.4383        .94132E-04   -1.5468    
  12  Prefactor     8.6525        2.9055        .78723E-04   -1.5120    
  13  Prefactor     5.4410        7.0504        .17245E-03   -1.5241    
  14  norm          3.9098        .50061        .20035E-04   -1.5312    
  15  norm          8.4637        5.2440        .13761E-03   -1.5126    
  16  Prefactor     33.078        14.522        .69716E-04   -1.4557    
  17  Prefactor     28.665        12.573        .74847E-04   -1.4637    
  18  Prefactor     .10000E-03    44.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4369        74.067        .16782E-03   -1.5242    
  20  Prefactor     10.056        6.8118        .12616E-03   -1.5074    
  21  Prefactor     16.266        17.507        .99256E-04   -1.4901    
  22  norm          .10000E-03    2.4366        .25224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.5844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91987        .22779        .30556E-03   -.95765    
  25  Prefactor     1.0729        .22205        .29202E-03   -.90337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66912e-09
Minuit parameter uncertainties:
  1  13.0252
  2  2.9056e-06
  3  1.0992
  4  1.49149
  5  4.25744e-05
  6  3.87762
  7  0.00105218
  8  3.64339
  9  1.68476
  10  1.74613
  11  1.43832
  12  2.90552
  13  7.0515
  14  0.500611
  15  5.24427
  16  14.5236
  17  12.5745
  18  0.000118303
  19  40.195
  20  6.81235
  21  17.5126
  22  1.29837e-05
  23  5.97674e-06
  24  0.228029
  25  0.222244
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.910e+00  5.006e-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.073e+00  2.222e-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:  9.199e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 210.97
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.61e-07 +/- 8.45e-08
Energy Flux (Fixed Index): 2.30e-04 +/- 2.94e-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) = 7168.2714184
delta logL = 0.62392906171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7168.25972116
delta logL = 0.635626302095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8188       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4421       1.0000          .0000       5.0000    
     3 'Normalizat'    .86533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1119       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=   7168.260     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8187        .55518        .43875E-02   -.23356E-04
   2  alpha         2.4422        .16596        .10319        .81301E-05
   3  Normalizat    .86539        .18737        .70783E-01    .22566E-04
   4  Prefactor     1.1119        .18959        .64983E-01    .88552E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.81872
  alpha      = 2.44221
  Normalizat = 0.865392
  Prefactor  = 1.11189
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.260     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .29E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8187        .49268        .19392E-04   -1.5317    
   2  alpha         2.4422        .14880        .45295E-03   -.23117E-01
   3  Normalizat    .86539        .22209        .31320E-03   -.97687    
   4  Prefactor     1.1119        .22367        .28743E-03   -.89087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88682e-16
Minuit parameter uncertainties:
  1  0.492677
  2  0.148887
  3  0.22232
  4  0.223861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597567': 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) = 7168.25972046
delta logL = 0.635627009858

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.819e+00  4.927e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.442e+00  1.489e-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.112e+00  2.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.654e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 210.21
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.44 +/- 0.15
Photon Flux (Free Index): 7.16e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.08e-04 +/- 3.06e-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/597567/cmap_HighResolution_317347201_317606401_4FGL_J1224.9+2122_daily_bin301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.61e-07', energy_flux2='2.08e-04', photon_flux_error='8.45e-08', dlogl='6.36e-01', energy_flux='2.30e-04', photon_flux2='7.16e-07', job_status='DONE', time_completed='2021-09-05 13:29:15.348226', photon_index_error2='0.15', photon_index2='2.44', ts='210.97', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='0.92', time_epoch_completed='1630873755.35', return_code='0', job_id='597567', GAL2='1.11', EG2='0.87', return_code2='0', energy_flux_error='2.94e-05', photon_flux_error2='1.01e-07', ts2='210.21', photon_index='2.28' WHERE bin_id='301' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 597567: <4FGL_J1224.9+2122_daily_bin301> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin301> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:16:23 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:16:25 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:16:25 2021
Terminated at Sun Sep  5 13:29:16 2021
Results reported at Sun Sep  5 13:29:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin301 186.228 21.3814 317347201 317606401 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            773 sec.

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

