/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 180 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin55
RA = 186.228, Dec = 21.3814
tmin = 253584001, tmax = 253843201
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='597125', job_status='RUN', time_executed='2021-09-05 13:19:02.356803', time_epoch_executed='1630873142.36' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597125/ft1_4FGL_J1224.9+2122_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597125/ft2_4FGL_J1224.9+2122_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597125/ft1_4FGL_J1224.9+2122_daily_bin55.fits outfile=/scratch/kocevski/597125/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin55.fits ra=186.228 dec=21.3814 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.47
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597125/ft1_filtered_4FGL_J1224.9+2122_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/597125/ft2_4FGL_J1224.9+2122_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/597125/ltcube_253584001_253843201_4FGL_J1224.9+2122_daily_bin55.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/597125/ft2_4FGL_J1224.9+2122_daily_bin55.fits
.....................!
real 12.99
user 12.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597125/ft1_filtered_4FGL_J1224.9+2122_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/597125/ft2_4FGL_J1224.9+2122_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/597125/ltcube_253584001_253843201_4FGL_J1224.9+2122_daily_bin55.fits outfile=/scratch/kocevski/597125/expmap_253584001_253843201_4FGL_J1224.9+2122_daily_bin55.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/597125/ltcube_253584001_253843201_4FGL_J1224.9+2122_daily_bin55.fits
.....................!
real 189.99
user 184.89
sys 4.72

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/597125/ft1_filtered_4FGL_J1224.9+2122_daily_bin55.fits scfile=/scratch/kocevski/597125/ft2_4FGL_J1224.9+2122_daily_bin55.fits outfile=/scratch/kocevski/597125/cmap_253584001_253843201_4FGL_J1224.9+2122_daily_bin55.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0460       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25915E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8856       1.0000         .10000E-03   10000.    
     7 'Prefactor '    78.108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6032       1.0000         .10000E-03   10000.    
    10 'norm      '    6.4939       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34137       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7238       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.434       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.750       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .44486       1.0000         .10000E-03   10000.    
    23 'norm      '    7.6329       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87329       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80053       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=   5041.924     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2879 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1541        .90495E-08** at limit **
   2  Prefactor     21.512        12.739       -.54180E-07   -.29370E-04
   3  Prefactor     3.0457        1.8353       -.17508E-08   -.38671E-05
   4  norm          5.7381        1.6560       -.11985E-07   -.27518E-04
   5  Prefactor     .10000E-03    24.529       -.40041E-05** at limit **
   6  Prefactor     1.8857        2.7852        .10145E-06   -.11009E-04
   7  Prefactor     78.063        81.232       -.48225E-06   -.40066E-04
   8  Prefactor     .10000E-03    1.4752        .82308E-08** at limit **
   9  Prefactor     4.6020        3.0876       -.51695E-07    .95017E-05
  10  norm          6.4938        3.2420       -.11886E-07   -.19670E-04
  11  Prefactor     3.4963        2.1366       -.21522E-07    .16368E-04
  12  Prefactor     2.0664        2.4296        .14448E-06   -.19764E-04
  13  Prefactor     .10000E-03    3.4564        .62228E-07** at limit **
  14  norm          .34133        .22335        .47975E-08   -.11882E-03
  15  norm          6.7226        5.5234       -.78206E-08   -.22101E-04
  16  Prefactor     .10000E-03    4.8772        .52057E-07** at limit **
  17  Prefactor     24.433        13.022       -.91145E-07   -.26285E-04
  18  Prefactor     20.893        22.927        .17248E-06   -.51320E-05
  19  Prefactor     47.705        97.893       -.11721E-05   -.40678E-04
  20  Prefactor     .10000E-03    2.9695        .63804E-07** at limit **
  21  Prefactor     .10000E-03    15.189        .43257E-06** at limit **
  22  norm          .44612        4.1214        .25542E-05    .40087E-05
  23  norm          7.6315        18.064       -.43467E-06   -.30893E-04
  24  Normalizat    .87342        .19203        .13050E-05   -.11550E-03
  25  Prefactor     .80040        .18415       -.20913E-05   -.16808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.5121
  Prefactor  = 3.0457
  norm       = 5.73813
  Prefactor  = 0.0001
  Prefactor  = 1.88575
  Prefactor  = 78.0625
  Prefactor  = 0.0001
  Prefactor  = 4.60204
  norm       = 6.49384
  Prefactor  = 3.49631
  Prefactor  = 2.06636
  Prefactor  = 0.0001
  norm       = 0.341327
  norm       = 6.72262
  Prefactor  = 0.0001
  Prefactor  = 24.4329
  Prefactor  = 20.8928
  Prefactor  = 47.7047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.44612
  norm       = 7.63154
  Normalizat = 0.873425
  Prefactor  = 0.800404
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.924     FROM HESSE     STATUS=OK           437 CALLS     3316 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1565        .14134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.512        12.732        .86353E-04   -1.4780    
   3  Prefactor     3.0457        1.8359        .71741E-04   -1.5359    
   4  norm          5.7381        1.6580        .47091E-04   -1.5229    
   5  Prefactor     .10000E-03    24.786        .42901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8857        2.7550        .13730E-03   -1.5433    
   7  Prefactor     78.063        81.079        .22719E-03   -1.3939    
   8  Prefactor     .10000E-03    2.6436        .16234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6020        3.0116        .94821E-04   -1.5279    
  10  norm          6.4938        3.2388        .85265E-04   -1.5198    
  11  Prefactor     3.4963        2.1382        .77514E-04   -1.5334    
  12  Prefactor     2.0664        2.4098        .11087E-03   -1.5420    
  13  Prefactor     .10000E-03    3.4693        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34133        .21898        .25632E-04   -1.5591    
  15  norm          6.7226        5.5205        .14233E-03   -1.5189    
  16  Prefactor     .10000E-03    4.8913        .15307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.433        13.018        .81038E-04   -1.4719    
  18  Prefactor     20.893        22.927        .87626E-04   -1.4793    
  19  Prefactor     47.705        98.420        .58028E-04   -1.4325    
  20  Prefactor     .10000E-03    2.9923        .11947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .44612        4.2573        .27634E-03   -1.5574    
  23  norm          7.6315        18.056        .14515E-03   -1.5155    
  24  Normalizat    .87342        .21443        .24330E-03   -.97400    
  25  Prefactor     .80040        .20423        .25908E-03   -.99713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12004e-11
Minuit parameter uncertainties:
  1  4.08707e-06
  2  12.7339
  3  1.8359
  4  1.65806
  5  2.94318e-05
  6  2.75518
  7  81.1943
  8  7.05285e-06
  9  3.01171
  10  3.2389
  11  2.1382
  12  2.40992
  13  1.74606e-06
  14  0.218982
  15  5.52093
  16  4.70601e-06
  17  13.0194
  18  22.9362
  19  98.7576
  20  2.49938e-06
  21  1.17587e-05
  22  2.75624
  23  18.0685
  24  0.214644
  25  0.204428
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.413e-01  2.190e-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.004e-01  2.044e-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.734e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.53
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.77e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.29e-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) = 5041.2160225
delta logL = 0.708221202905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5041.19152526
delta logL = 0.732718443874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25014       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5523       1.0000          .0000       5.0000    
     3 'Normalizat'    .77118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87642       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=   5041.192     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24978        1.8419        .37466E-02    .23913E-02
   2  alpha         3.5539        4.0287        .37729        .48587E-04
   3  Normalizat    .77096        .64665E-01    .43233E-01    .29260E-04
   4  Prefactor     .87661        .64710E-01    .44704E-01   -.55127E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.249784
  alpha      = 3.55392
  Normalizat = 0.77096
  Prefactor  = 0.876606
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.192     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24978        .35142        .16754E-04   -1.5608    
   2  alpha         3.5539        1.5164        .16317E-02    .43518    
   3  Normalizat    .77096        .22008        .25715E-03   -1.0116    
   4  Prefactor     .87661        .21990        .24915E-03   -.96963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10896e-11
Minuit parameter uncertainties:
  1  0.351424
  2  1.6611
  3  0.220337
  4  0.220124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597125': 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) = 5041.19152435
delta logL = 0.732719354405

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.498e-01  3.514e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.554e+00  1.661e+00  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.766e-01  2.201e-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:  7.710e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.55 +/- 1.66
Photon Flux (Free Index): 1.20e-07 +/- 7.01e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.03e-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/597125/cmap_HighResolution_253584001_253843201_4FGL_J1224.9+2122_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.77e-08', energy_flux2='1.99e-05', photon_flux_error='3.70e-08', dlogl='7.33e-01', energy_flux='2.00e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-05 13:28:39.219165', photon_index_error2='1.66', photon_index2='3.55', ts='4.53', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.87', time_epoch_completed='1630873719.22', return_code='0', job_id='597125', GAL2='0.88', EG2='0.77', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='7.01e-08', ts2='6.27', photon_index='2.28' WHERE bin_id='55' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:28:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 597125: <4FGL_J1224.9+2122_daily_bin55> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin55> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:50 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:52 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:15:52 2021
Terminated at Sun Sep  5 13:28:39 2021
Results reported at Sun Sep  5 13:28:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin55 186.228 21.3814 253584001 253843201 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 :                                   575.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            769 sec.

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

