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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1539
RA = 186.228, Dec = 21.3814
tmin = 638236801, tmax = 638496001
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='603589', job_status='RUN', time_executed='2021-09-05 13:40:26.003896', time_epoch_executed='1630874426.0' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603589

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603589/ft1_4FGL_J1224.9+2122_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603589/ft2_4FGL_J1224.9+2122_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603589/ft1_4FGL_J1224.9+2122_daily_bin1539.fits outfile=/scratch/kocevski/603589/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1539.fits ra=186.228 dec=21.3814 rad=12.0 tmin=638236801.0 tmax=638496001.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 2.70
user 2.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603589/ft1_filtered_4FGL_J1224.9+2122_daily_bin1539.fits" evtable="EVENTS" scfile=/scratch/kocevski/603589/ft2_4FGL_J1224.9+2122_daily_bin1539.fits sctable="SC_DATA" outfile=/scratch/kocevski/603589/ltcube_638236801_638496001_4FGL_J1224.9+2122_daily_bin1539.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/603589/ft2_4FGL_J1224.9+2122_daily_bin1539.fits
.....................!
real 9.14
user 8.79
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603589/ft1_filtered_4FGL_J1224.9+2122_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/603589/ft2_4FGL_J1224.9+2122_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/603589/ltcube_638236801_638496001_4FGL_J1224.9+2122_daily_bin1539.fits outfile=/scratch/kocevski/603589/expmap_638236801_638496001_4FGL_J1224.9+2122_daily_bin1539.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/603589/ltcube_638236801_638496001_4FGL_J1224.9+2122_daily_bin1539.fits
.....................!
real 140.84
user 136.88
sys 3.67

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/603589/ft1_filtered_4FGL_J1224.9+2122_daily_bin1539.fits scfile=/scratch/kocevski/603589/ft2_4FGL_J1224.9+2122_daily_bin1539.fits outfile=/scratch/kocevski/603589/cmap_638236801_638496001_4FGL_J1224.9+2122_daily_bin1539.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.46
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603589/ft1_filtered_4FGL_J1224.9+2122_daily_bin1539.fits scfile=/scratch/kocevski/603589/ft2_4FGL_J1224.9+2122_daily_bin1539.fits outfile=/scratch/kocevski/603589/cmap_HighResolution_638236801_638496001_4FGL_J1224.9+2122_daily_bin1539.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0935       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5052       1.0000         .10000E-03   10000.    
     4 'norm      '    17.889       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0174       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1287       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5155       1.0000         .10000E-03   10000.    
    14 'norm      '    .19324       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0672       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .54075E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4422       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24476E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .93250       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88546       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0253       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6246.637     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     2441 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8905        .57732E-05** at limit **
   2  Prefactor     6.0927        1.0478       -.40566E-06    .29298E-03
   3  Prefactor     1.5052        1.5354        .37305E-06    .11208E-03
   4  norm          17.889        2.3453        .11702E-06    .18717E-03
   5  Prefactor     .10000E-03    4.9942       -.58886E-05** at limit **
   6  Prefactor     1.5978        2.9483        .45100E-06    .10520E-03
   7  Prefactor     .10476E-03    32.427        .27607E-05** at limit **
   8  Prefactor     .10000E-03    1.5963        .91302E-07** at limit **
   9  Prefactor     3.0182        3.3595        .17495E-06    .68567E-04
  10  norm          3.3713        2.3207       -.14894E-06   -.92602E-04
  11  Prefactor     2.1288        1.5541       -.16581E-07    .83205E-04
  12  Prefactor     3.5135        1.9894       -.25362E-06   -.13227E-03
  13  Prefactor     2.5140        1.5525        .15215E-05    .42361E-03
  14  norm          .19324        .15768       -.42091E-07    .49958E-03
  15  norm          2.0690        3.3349        .35345E-05    .50818E-03
  16  Prefactor     .10005E-03    7.4377        .12553E-04** at limit **
  17  Prefactor     .11501E-03    41.151       -.16212E-04** at limit **
  18  Prefactor     50.752        1.0085        .39386E-07   -.40914E-03
  19  Prefactor     .10066E-03    36.597        .13061E-05** at limit **
  20  Prefactor     8.4431        1.0158        .14262E-06   -.83562E-05
  21  Prefactor     .10145E-03    5.7194        .44268E-05** at limit **
  22  norm          .93086        2.2816        .15772E-06   -.15279E-04
  23  norm          .10004E-03    7.6549       -.11738E-04** at limit **
  24  Normalizat    .88551        .19993       -.39537E-06    .15447E-04
  25  Prefactor     1.0253        .20710       -.21873E-05    .10058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 6.09268
  Prefactor  = 1.50516
  norm       = 17.8891
  Prefactor  = 0.000100004
  Prefactor  = 1.59784
  Prefactor  = 0.000104763
  Prefactor  = 0.0001
  Prefactor  = 3.01825
  norm       = 3.37133
  Prefactor  = 2.12879
  Prefactor  = 3.51351
  Prefactor  = 2.51397
  norm       = 0.193238
  norm       = 2.06898
  Prefactor  = 0.000100047
  Prefactor  = 0.000115012
  Prefactor  = 50.7519
  Prefactor  = 0.00010066
  Prefactor  = 8.44307
  Prefactor  = 0.000101447
  norm       = 0.930861
  norm       = 0.000100045
  Normalizat = 0.885515
  Prefactor  = 1.02532
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.637     FROM HESSE     STATUS=OK           493 CALLS     2934 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8963        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0927        9.6718        .40661E-02   -1.5214    
   3  Prefactor     1.5052        1.5561        .87210E-02   -1.5463    
   4  norm          17.889        2.3485        .23674E-02   -1.4862    
   5  Prefactor     .10000E-03    5.0085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5978        3.0121        .83875E-02   -1.5455    
   7  Prefactor     .10476E-03    56.983        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5542        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0182        3.3935        .58409E-02   -1.5360    
  10  norm          3.3713        2.3225        .55097E-02   -1.5341    
  11  Prefactor     2.1288        1.5477        .70651E-02   -1.5416    
  12  Prefactor     3.5135        2.0039        .53926E-02   -1.5333    
  13  Prefactor     2.5140        5.4808        .64401E-02   -1.5391    
  14  norm          .19324        .15814        .61867E-02   -1.5620    
  15  norm          2.0690        3.9336        .71838E-02   -1.5420    
  16  Prefactor     .10005E-03    7.5480        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11501E-03    5.0155        .95462E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     50.752        30.993        .14074E-02   -1.4282    
  19  Prefactor     .10066E-03    39.187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.4431        7.0022        .34492E-02   -1.5127    
  21  Prefactor     .10145E-03    8.9790        .10019       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .93086        2.4856        .42417E-01   -1.5515    
  23  norm          .10004E-03    7.8054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88551        .17768        .44716E-01   -.96971    
  25  Prefactor     1.0253        .17989        .59755E-01   -.91890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30553e-07
Minuit parameter uncertainties:
  1  0.000239104
  2  9.67423
  3  1.55609
  4  2.34848
  5  0.000279235
  6  3.01238
  7  0.0329807
  8  5.51997e-06
  9  3.39373
  10  2.32257
  11  1.54773
  12  2.00396
  13  5.48191
  14  0.158137
  15  3.93408
  16  0.00118577
  17  0.017356
  18  31.0028
  19  0.0101755
  20  7.00286
  21  0.00720899
  22  2.48591
  23  0.00118525
  24  0.177798
  25  0.179999
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.932e-01  1.581e-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.025e+00  1.800e-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.855e-01  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.38
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 9.29e-06

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) = 6245.61176825
delta logL = 1.02500123437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6245.5915703
delta logL = 1.04519918005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83918E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3557       1.0000          .0000       5.0000    
     3 'Normalizat'    .90542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0175       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=   6245.592     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83801E-01    .80379E-01    .46320E-02   -.35382E-02
   2  alpha         1.3562        .36481        .28821        .13689E-05
   3  Normalizat    .90548        .17173        .44971E-01   -.12747E-04
   4  Prefactor     1.0176        .18188        .42400E-01   -.15571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0838007
  alpha      = 1.35624
  Normalizat = 0.905481
  Prefactor  = 1.01761
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.592     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83801E-01    .13482        .19109E-03   -1.5650    
   2  alpha         1.3562        .63467        .11371E-01   -.47519    
   3  Normalizat    .90548        .19481        .26524E-03   -.96268    
   4  Prefactor     1.0176        .20651        .26498E-03   -.92145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73749e-11
Minuit parameter uncertainties:
  1  0.134822
  2  0.643626
  3  0.194958
  4  0.206675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603589': 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) = 6245.59156511
delta logL = 1.04520437571

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.380e-02  1.348e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.356e+00  6.436e-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.018e+00  2.067e-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.055e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.46
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.36 +/- 0.64
Photon Flux (Free Index): 1.20e-08 +/- 1.64e-08
Energy Flux (Free Index): 3.29e-05 +/- 4.28e-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/603589/cmap_HighResolution_638236801_638496001_4FGL_J1224.9+2122_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='3.29e-05', photon_flux_error='2.67e-08', dlogl='1.05e+00', energy_flux='1.13e-05', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-09-05 13:48:23.762896', photon_index_error2='0.64', photon_index2='1.36', ts='4.38', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.28e-05', EG='0.89', time_epoch_completed='1630874903.76', return_code='0', job_id='603589', GAL2='1.02', EG2='0.91', return_code2='0', energy_flux_error='9.29e-06', photon_flux_error2='1.64e-08', ts2='6.46', photon_index='2.28' WHERE bin_id='1539' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:48:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 603589: <4FGL_J1224.9+2122_daily_bin1539> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1539 186.228 21.3814 638236801 638496001 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 :                                   465.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             218.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

