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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1225
RA = 186.228, Dec = 21.3814
tmin = 556848001, tmax = 557107201
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='603138', job_status='RUN', time_executed='2021-09-05 13:38:14.091988', time_epoch_executed='1630874294.09' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603138

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603138/ft1_4FGL_J1224.9+2122_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603138/ft2_4FGL_J1224.9+2122_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603138/ft1_4FGL_J1224.9+2122_daily_bin1225.fits outfile=/scratch/kocevski/603138/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1225.fits ra=186.228 dec=21.3814 rad=12.0 tmin=556848001.0 tmax=557107201.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.60
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603138/ft1_filtered_4FGL_J1224.9+2122_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/603138/ft2_4FGL_J1224.9+2122_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/603138/ltcube_556848001_557107201_4FGL_J1224.9+2122_daily_bin1225.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/603138/ft2_4FGL_J1224.9+2122_daily_bin1225.fits
.....................!
real 15.68
user 12.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603138/ft1_filtered_4FGL_J1224.9+2122_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/603138/ft2_4FGL_J1224.9+2122_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/603138/ltcube_556848001_557107201_4FGL_J1224.9+2122_daily_bin1225.fits outfile=/scratch/kocevski/603138/expmap_556848001_557107201_4FGL_J1224.9+2122_daily_bin1225.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/603138/ltcube_556848001_557107201_4FGL_J1224.9+2122_daily_bin1225.fits
.....................!
real 191.24
user 186.21
sys 4.56

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/603138/ft1_filtered_4FGL_J1224.9+2122_daily_bin1225.fits scfile=/scratch/kocevski/603138/ft2_4FGL_J1224.9+2122_daily_bin1225.fits outfile=/scratch/kocevski/603138/cmap_556848001_557107201_4FGL_J1224.9+2122_daily_bin1225.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.59
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    173.58       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0586       1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.648       1.0000         .10000E-03   10000.    
     7 'Prefactor '    365.23       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18796E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .38830       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.581       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.4312       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1927       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87211       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=   2087.430     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     3403 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     173.56        122.73       -.15700E-04    .11783E-04
   2  Prefactor     .10000E-03    25.421       -.29961E-05** at limit **
   3  Prefactor     .10000E-03    2.9485        .82130E-07** at limit **
   4  norm          3.0583        3.1270        .37716E-06    .11582E-03
   5  Prefactor     64.308        89.191       -.83873E-04   -.30184E-05
   6  Prefactor     46.656        20.442        .32257E-05    .44662E-04
   7  Prefactor     365.47        410.93        .12570E-03    .13879E-05
   8  Prefactor     .10000E-03    6.7234        .21718E-07** at limit **
   9  Prefactor     .10000E-03    5.6257        .65978E-07** at limit **
  10  norm          5.5082        5.9687        .44679E-06    .12532E-03
  11  Prefactor     .10000E-03    3.9569       -.22514E-07** at limit **
  12  Prefactor     .10001E-03    4.0035       -.68829E-06** at limit **
  13  Prefactor     .10000E-03    12.583       -.31620E-05** at limit **
  14  norm          .38819        .54857       -.15752E-06   -.13562E-03
  15  norm          .10000E-03    25.030       -.20931E-05** at limit **
  16  Prefactor     11.904        13.300       -.15842E-06    .10672E-05
  17  Prefactor     .10000E-03    17.578       -.12230E-05** at limit **
  18  Prefactor     .10000E-03    29.110        .67032E-05** at limit **
  19  Prefactor     .10000E-03    41.191       -.81445E-06** at limit **
  20  Prefactor     13.582        14.862       -.15173E-05   -.57011E-03
  21  Prefactor     .10000E-03    16.946        .13970E-05** at limit **
  22  norm          7.4316        6.2480       -.32535E-06   -.20695E-04
  23  norm          .10000E-03    13.178        .35661E-05** at limit **
  24  Normalizat    1.1926        .34331        .45221E-05    .55105E-04
  25  Prefactor     .87196        .31863        .21797E-06    .10915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 173.556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.05825
  Prefactor  = 64.3076
  Prefactor  = 46.6563
  Prefactor  = 365.47
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.50818
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.388192
  norm       = 0.0001
  Prefactor  = 11.9035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5819
  Prefactor  = 0.0001
  norm       = 7.43161
  norm       = 0.0001
  Normalizat = 1.19265
  Prefactor  = 0.871956
 **********
 **   18 **HESSE 
 **********

 FCN=   2087.430     FROM HESSE     STATUS=OK           419 CALLS     3822 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     173.56        122.83        .15314E-03   -1.3065    
   2  Prefactor     .10000E-03    25.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9495        .76617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0583        3.1291        .78813E-04   -1.5358    
   5  Prefactor     64.308        89.258        .25008E-03   -1.4102    
   6  Prefactor     46.656        20.416        .58706E-04   -1.4341    
   7  Prefactor     365.47        410.39        .10662E-03   -1.1861    
   8  Prefactor     .10000E-03    6.7661        .11559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6586        .10578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5082        5.9064        .11140E-03   -1.5239    
  11  Prefactor     .10000E-03    3.9685        .88535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    23.134        .17374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.653        .15824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .38819        .52909        .37342E-03   -1.5583    
  15  norm          .10000E-03    25.838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.904        13.300        .11611E-03   -1.5018    
  17  Prefactor     .10000E-03    17.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.582        14.921        .54344E-03   -1.4971    
  21  Prefactor     .10000E-03    17.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.4316        6.2528        .99254E-04   -1.5163    
  23  norm          .10000E-03    13.182        .16202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1926        .40549        .26361E-03   -.86830    
  25  Prefactor     .87196        .37725        .29629E-03   -.97128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21765e-10
Minuit parameter uncertainties:
  1  123.012
  2  2.10425e-05
  3  1.2382e-05
  4  3.12928
  5  89.4443
  6  20.4195
  7  413.734
  8  2.03982e-05
  9  3.43408e-05
  10  5.90698
  11  1.32755e-05
  12  0.000718585
  13  7.04775e-06
  14  0.529101
  15  6.35596e-05
  16  13.3029
  17  2.09151e-05
  18  3.157e-05
  19  9.06737e-06
  20  14.9246
  21  5.27062e-05
  22  6.25336
  23  3.42866e-06
  24  0.406564
  25  0.378386
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.882e-01  5.291e-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.720e-01  3.784e-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.193e+00  4.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603138/likelihoodResults_556848001_557107201_4FGL_J1224.9+2122_daily_bin1225.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) = 2085.36606867
delta logL = 2.06413881163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2085.33869298
delta logL = 2.09151450177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20841       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7284       1.0000          .0000       5.0000    
     3 'Normalizat'    .91347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0536       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2085.339     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      259 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20787        .35584        .10860E-04   -.39035E-02
   2  alpha         4.7312        3.9913        .22345E-01   -.20975E-04
   3  Normalizat    .91340        .41193        .29427E-03   -.42651E-04
   4  Prefactor     1.0534        .39384        .27208E-03   -.14207E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.207872
  alpha      = 4.73119
  Normalizat = 0.913401
  Prefactor  = 1.05336
 **********
 **   18 **HESSE 
 **********

 FCN=   2085.339     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20787        .33633        .43442E-06   -1.5617    
   2  alpha         4.7312        3.9018        .89381E-03    1.1028    
   3  Normalizat    .91340        .41292        .11771E-04   -.95991    
   4  Prefactor     1.0534        .39463        .10883E-04   -.90971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69137e-11
Minuit parameter uncertainties:
  1  0.336336
  2  1.50424
  3  0.414365
  4  0.39573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603138': 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) = 2085.33869025
delta logL = 2.09151722922

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.079e-01  3.363e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.731e+00  1.504e+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:  1.053e+00  3.957e-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.134e-01  4.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.58
Ra Dec: 186.228 21.381
Photon Index (Free Index): 4.73 +/- 1.50
Photon Flux (Free Index): 3.40e-07 +/- 2.00e-07
Energy Flux (Free Index): 4.67e-05 +/- 2.68e-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/603138/cmap_HighResolution_556848001_557107201_4FGL_J1224.9+2122_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.78e-05', comment='SUCCESS', energy_flux2='4.67e-05', dlogl='2.09e+00', photon_flux2='3.40e-07', job_status='DONE', time_completed='2021-09-05 13:46:15.494992', photon_index_error2='1.50', photon_index2='4.73', ts='0.80', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.81e-07', energy_flux_error2='2.68e-05', EG='1.19', time_epoch_completed='1630874775.5', return_code='0', job_id='603138', GAL2='1.05', EG2='0.91', return_code2='0', photon_flux_error2='2.00e-07', ts2='5.58', photon_index='2.28' WHERE bin_id='1225' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:46:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 603138: <4FGL_J1224.9+2122_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1225 186.228 21.3814 556848001 557107201 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 :                                   467.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            632 sec.

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

