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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1423
RA = 186.228, Dec = 21.3814
tmin = 608169601, tmax = 608428801
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='603412', job_status='RUN', time_executed='2021-09-05 13:39:59.546092', time_epoch_executed='1630874399.55' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603412/ft1_4FGL_J1224.9+2122_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603412/ft2_4FGL_J1224.9+2122_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603412/ft1_4FGL_J1224.9+2122_daily_bin1423.fits outfile=/scratch/kocevski/603412/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1423.fits ra=186.228 dec=21.3814 rad=12.0 tmin=608169601.0 tmax=608428801.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 4.97
user 3.47
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603412/ft1_filtered_4FGL_J1224.9+2122_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/603412/ft2_4FGL_J1224.9+2122_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/603412/ltcube_608169601_608428801_4FGL_J1224.9+2122_daily_bin1423.fits outfile=/scratch/kocevski/603412/expmap_608169601_608428801_4FGL_J1224.9+2122_daily_bin1423.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/603412/ltcube_608169601_608428801_4FGL_J1224.9+2122_daily_bin1423.fits
.....................!
real 192.20
user 186.93
sys 4.77

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/603412/ft1_filtered_4FGL_J1224.9+2122_daily_bin1423.fits scfile=/scratch/kocevski/603412/ft2_4FGL_J1224.9+2122_daily_bin1423.fits outfile=/scratch/kocevski/603412/cmap_608169601_608428801_4FGL_J1224.9+2122_daily_bin1423.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/603412/ft1_filtered_4FGL_J1224.9+2122_daily_bin1423.fits scfile=/scratch/kocevski/603412/ft2_4FGL_J1224.9+2122_daily_bin1423.fits outfile=/scratch/kocevski/603412/cmap_HighResolution_608169601_608428801_4FGL_J1224.9+2122_daily_bin1423.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0931       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54538E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .79487E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4374       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9311       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.171       1.0000         .10000E-03   10000.    
    22 'norm      '    6.6477       1.0000         .10000E-03   10000.    
    23 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94296       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1064       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=   5436.851     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2548 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0953        12.511        .27276E-06    .71087E-05
   2  Prefactor     .10000E-03    5.8748       -.23734E-06** at limit **
   3  Prefactor     .10000E-03    .62114       -.50270E-07** at limit **
   4  norm          3.8990        1.4169        .31923E-07   -.92005E-05
   5  Prefactor     .10000E-03    10.893       -.55772E-06** at limit **
   6  Prefactor     1.4384        1.9014        .41819E-07    .27456E-05
   7  Prefactor     .10011E-03    537.62        .42915E-04** at limit **
   8  Prefactor     .58686E-01    1.1223       -.36478E-06    .25909E-03
   9  Prefactor     .10000E-03    1.8831       -.18589E-07** at limit **
  10  norm          3.7482        2.7186       -.35021E-07   -.61367E-04
  11  Prefactor     1.5056        1.4385       -.56696E-07   -.55457E-04
  12  Prefactor     .89222        2.0749       -.24248E-06    .57140E-04
  13  Prefactor     .10000E-03    4.6677       -.21716E-07** at limit **
  14  norm          .79484E-01    .13668        .86467E-08   -.65361E-03
  15  norm          4.4366        3.5325       -.10729E-06   -.38434E-04
  16  Prefactor     .10001E-03    32.875        .18814E-05** at limit **
  17  Prefactor     1.9300        7.8411        .10278E-04   -.18426E-03
  18  Prefactor     13.262        30.821        .10146E-06    .72497E-04
  19  Prefactor     .10000E-03    36.818        .33097E-05** at limit **
  20  Prefactor     .10000E-03    5.8307        .35446E-07** at limit **
  21  Prefactor     20.178        18.753       -.24457E-06   -.52474E-04
  22  norm          6.6488        4.8985        .11618E-06   -.19827E-04
  23  norm          .10000E-03    13.963        .45632E-06** at limit **
  24  Normalizat    .94294        .18268       -.10479E-05   -.17734E-03
  25  Prefactor     1.1063        .18439       -.20626E-06   -.16016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.09526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89901
  Prefactor  = 0.0001
  Prefactor  = 1.43843
  Prefactor  = 0.000100113
  Prefactor  = 0.0586858
  Prefactor  = 0.0001
  norm       = 3.74823
  Prefactor  = 1.50562
  Prefactor  = 0.89222
  Prefactor  = 0.0001
  norm       = 0.079484
  norm       = 4.43662
  Prefactor  = 0.00010001
  Prefactor  = 1.93002
  Prefactor  = 13.2623
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.1785
  norm       = 6.64876
  norm       = 0.0001
  Normalizat = 0.942936
  Prefactor  = 1.10633
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.851     FROM HESSE     STATUS=OK           435 CALLS     2983 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0953        12.498        .15062E-03   -1.5175    
   2  Prefactor     .10000E-03    5.9298        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .63892        .11336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8990        1.4167        .50654E-04   -1.5313    
   5  Prefactor     .10000E-03    10.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4384        1.8805        .11338E-03   -1.5468    
   7  Prefactor     .10011E-03    546.36        .21208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58686E-01    9.8046        .14924E-02   -1.5660    
   9  Prefactor     .10000E-03    1.9591        .19729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7482        2.7045        .96877E-04   -1.5321    
  11  Prefactor     1.5056        1.4390        .82684E-04   -1.5463    
  12  Prefactor     .89222        2.0227        .14770E-03   -1.5519    
  13  Prefactor     .10000E-03    4.8565        .31048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .79484E-01    .11904        .34421E-03   -1.5652    
  15  norm          4.4366        3.5251        .11936E-03   -1.5287    
  16  Prefactor     .10001E-03    33.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9300        7.9283        .14944E-02   -1.5430    
  18  Prefactor     13.262        30.406        .11003E-03   -1.4979    
  19  Prefactor     .10000E-03    36.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8933        .17380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.178        18.753        .89180E-04   -1.4809    
  22  norm          6.6488        4.9039        .13356E-03   -1.5192    
  23  norm          .10000E-03    13.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94294        .21057        .25076E-03   -.94967    
  25  Prefactor     1.1063        .21556        .24514E-03   -.89264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05835e-09
Minuit parameter uncertainties:
  1  12.5028
  2  1.61813e-05
  3  1.59082e-06
  4  1.41675
  5  7.16539e-05
  6  1.88055
  7  0.0158704
  8  1.51605
  9  1.70463e-06
  10  2.70456
  11  1.43903
  12  2.02289
  13  1.67307e-07
  14  0.11904
  15  3.52523
  16  0.00117729
  17  7.82506
  18  30.4414
  19  0.000388181
  20  4.85915e-06
  21  18.7582
  22  4.90419
  23  3.10592e-05
  24  0.210755
  25  0.215725
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.948e-02  1.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:  1.106e+00  2.157e-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.429e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 7.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603412/likelihoodResults_608169601_608428801_4FGL_J1224.9+2122_daily_bin1423.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) = 5436.85091429
delta logL = 0.000110406038402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5436.85091348
delta logL = 0.000111214760182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79485E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2622       1.0000          .0000       5.0000    
     3 'Normalizat'    .94298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1063       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5436.851     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      243 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79456E-01    .11891        .34444E-03    .10437E-01
   2  alpha         2.2621        1.0345        .26152E-01    .38347E-05
   3  Normalizat    .94311        .20267        .25074E-03   -.19859E-04
   4  Prefactor     1.1062        .21349        .24515E-03   -.59359E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0794562
  alpha      = 2.26209
  Normalizat = 0.943106
  Prefactor  = 1.10621
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.851     FROM HESSE     STATUS=OK            27 CALLS      270 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79456E-01    .11886        .68889E-04   -1.5652    
   2  alpha         2.2621        1.0350        .10461E-02   -.95307E-01
   3  Normalizat    .94311        .20285        .10029E-04   -.94962    
   4  Prefactor     1.1062        .21368        .98060E-05   -.89268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23481e-11
Minuit parameter uncertainties:
  1  0.118861
  2  1.06748
  3  0.203019
  4  0.213845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603412': 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) = 5436.85091326
delta logL = 0.0001114405095

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.946e-02  1.189e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.262e+00  1.067e+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.106e+00  2.138e-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.431e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
Ra Dec: 186.228 21.381

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/603412/cmap_HighResolution_608169601_608428801_4FGL_J1224.9+2122_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-05 13:51:02.055498', job_id='603412', GAL2='1.11', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630875062.06', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.11e-04', ts2='0.64', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1423' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 603412: <4FGL_J1224.9+2122_daily_bin1423> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1423> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:08 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:09 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:36:09 2021
Terminated at Sun Sep  5 13:51:02 2021
Results reported at Sun Sep  5 13:51:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1423 186.228 21.3814 608169601 608428801 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 :                                   643.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

