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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin556
RA = 186.116, Dec = 24.6142
tmin = 383443201, tmax = 383702401
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='580881', job_status='RUN', time_executed='2021-09-05 12:25:48.063965', time_epoch_executed='1630869948.06' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580881

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580881/ft1_4FGL_J1224.4+2436_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580881/ft1_4FGL_J1224.4+2436_daily_bin556.fits outfile=/scratch/kocevski/580881/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin556.fits ra=186.116 dec=24.6142 rad=12.0 tmin=383443201.0 tmax=383702401.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.41
user 3.18
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.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/580881/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin556.fits evtable="EVENTS" outfile="/scratch/kocevski/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.fits" evtable="EVENTS" scfile=/scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits sctable="SC_DATA" outfile=/scratch/kocevski/580881/ltcube_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.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/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits
.....................!
real 11.77
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/580881/ltcube_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.fits outfile=/scratch/kocevski/580881/expmap_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.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/580881/ltcube_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.fits
.....................!
real 192.05
user 185.99
sys 5.69

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.4+2436 @ 186.116 24.6142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.fits scfile=/scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits outfile=/scratch/kocevski/580881/cmap_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.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.116 yref=24.6142 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.86
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.fits scfile=/scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits outfile=/scratch/kocevski/580881/cmap_HighResolution_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.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.116 yref=24.6142 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.72
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580881/Model_4FGL_J1224.4+2436_daily_bin556.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/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.fits.....................!
real 52.80
user 51.10
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.fits', '/scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits', expMap='/scratch/kocevski/580881/expmap_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.fits', expCube='/scratch/kocevski/580881/ltcube_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580881/Model_4FGL_J1224.4+2436_daily_bin556.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.4+2436'

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/580881/ft1_filtered_4FGL_J1224.4+2436_daily_bin556.fits
Spacecraft file(s): /scratch/kocevski/580881/ft2_4FGL_J1224.4+2436_daily_bin556.fits
Exposure map: /scratch/kocevski/580881/expmap_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.fits
Exposure cube: /scratch/kocevski/580881/ltcube_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580881/Model_4FGL_J1224.4+2436_daily_bin556.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) = 5796.34321708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.359       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .79809       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8904       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4627       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4104       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25397       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2998       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31710       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .86694       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14644E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.256       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3582       1.0000         .10000E-03   10000.    
    23 'norm      '    34.133       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80109       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1759       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5796.297     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2945 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.346        20.907       -.41486E-06   -.34451E-03
   2  Prefactor     .79740        10.085        .57136E-05    .74396E-04
   3  Prefactor     1.8915        1.7506        .40779E-07   -.36437E-04
   4  Prefactor     7.4635        22.266        .28692E-06    .18744E-05
   5  norm          1.1402        1.1160        .91329E-07    .56179E-04
   6  Prefactor     2.4102        3.5513       -.19244E-06   -.40668E-04
   7  Prefactor     .10000E-03    14.182        .98875E-07** at limit **
   8  Prefactor     .25249        3.0522       -.16201E-05    .50316E-03
   9  Prefactor     5.3011        3.8158       -.23833E-06    .45160E-03
  10  norm          .10000E-03    1.7803        .42934E-07** at limit **
  11  Prefactor     .32394        4.1812        .92993E-06   -.30708E-03
  12  Prefactor     1.8436        1.8282        .22898E-07   -.41366E-04
  13  Prefactor     2.6136        2.0452        .21130E-07   -.65703E-04
  14  Prefactor     .10000E-03    6.7733        .58081E-06** at limit **
  15  norm          .86702        .29258       -.25872E-08    .29716E-03
  16  norm          .10000E-03    2.0509        .83235E-07** at limit **
  17  Prefactor     .10000E-03    7.2665       -.25113E-06** at limit **
  18  Prefactor     .10000E-03    77.790        .77198E-06** at limit **
  19  Prefactor     40.626        85.893       -.26009E-05   -.15711E-03
  20  Prefactor     .10000E-03    2.9538        .84905E-07** at limit **
  21  norm          10.256        6.1932        .21164E-06    .68566E-05
  22  norm          6.3578        3.7265        .29134E-07   -.47069E-04
  23  norm          34.128        25.820       -.31016E-06   -.20568E-03
  24  Normalizat    .80089        .18722       -.22910E-06   -.78195E-04
  25  Prefactor     1.1762        .19845       -.57211E-06   -.64152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.3457
  Prefactor  = 0.797398
  Prefactor  = 1.89151
  Prefactor  = 7.46351
  norm       = 1.14021
  Prefactor  = 2.41023
  Prefactor  = 0.0001
  Prefactor  = 0.252486
  Prefactor  = 5.30111
  norm       = 0.0001
  Prefactor  = 0.323938
  Prefactor  = 1.84356
  Prefactor  = 2.6136
  Prefactor  = 0.0001
  norm       = 0.867017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6264
  Prefactor  = 0.0001
  norm       = 10.256
  norm       = 6.35783
  norm       = 34.1276
  Normalizat = 0.800887
  Prefactor  = 1.17621
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.297     FROM HESSE     STATUS=OK           435 CALLS     3380 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.346        20.905        .69379E-04   -1.4552    
   2  Prefactor     .79740        10.978        .48196E-03   -1.5529    
   3  Prefactor     1.8915        1.7314        .89802E-04   -1.5433    
   4  Prefactor     7.4635        22.305        .14681E-03   -1.5162    
   5  norm          1.1402        1.0866        .75242E-04   -1.5494    
   6  Prefactor     2.4102        3.5124        .16414E-03   -1.5397    
   7  Prefactor     .10000E-03    14.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25249        4.5884        .20066E-02   -1.5607    
   9  Prefactor     5.3011        3.6737        .10895E-03   -1.5247    
  10  norm          .10000E-03    1.8175        .19771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .32394        10.592        .29407E-02   -1.5594    
  12  Prefactor     1.8436        1.8113        .98329E-04   -1.5436    
  13  Prefactor     2.6136        2.0453        .90821E-04   -1.5385    
  14  Prefactor     .10000E-03    7.0584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .86702        .29137        .22549E-04   -1.5522    
  16  norm          .10000E-03    2.0682        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    80.437        .40979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.626        87.004        .62872E-04   -1.4432    
  20  Prefactor     .10000E-03    2.9649        .12778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.256        6.2031        .12512E-03   -1.5067    
  22  norm          6.3578        3.7279        .10825E-03   -1.5204    
  23  norm          34.128        25.875        .68590E-04   -1.4539    
  24  Normalizat    .80089        .21832        .26765E-03   -1.0004    
  25  Prefactor     1.1762        .23362        .25496E-03   -.87066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66895e-09
Minuit parameter uncertainties:
  1  20.9096
  2  5.91843
  3  1.73147
  4  22.3299
  5  1.0866
  6  3.51271
  7  1.61276e-05
  8  2.15244
  9  3.67389
  10  6.72755e-07
  11  3.70479
  12  1.81135
  13  2.04535
  14  9.20096e-05
  15  0.291371
  16  3.47091e-06
  17  6.86985e-05
  18  0.00021204
  19  87.2776
  20  5.50136e-06
  21  6.20349
  22  3.72803
  23  25.8837
  24  0.218562
  25  0.233821
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  9.201e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.176e+00  2.338e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.009e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580881/likelihoodResults_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.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): 102
logL (Free Index) = 5796.29739976
delta logL = -0.000676566113725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5796.29672227
delta logL = 9.2850314104e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12585E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0091       1.0000          .0000       10.000    
     3 'Normalizat'    .80098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1761       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5795.716     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      277 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60965E-01    .10266        .41408E-02   -.36485E-02
   2  Index         4.0068        .49524        .84101E-01    .20220E-03
   3  Normalizat    .74206        .17969        .62616E-01    .75440E-05
   4  Prefactor     1.2130        .19694        .56860E-01   -.23007E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0609647
  Index      = 4.00682
  Normalizat = 0.742062
  Prefactor  = 1.21305
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.716     FROM HESSE     STATUS=OK            35 CALLS      312 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60965E-01    .35418        .18954E-03   -1.5757    
   2  Index         4.0068        1.7061        .44237E-02   -.19997    
   3  Normalizat    .74206        .20955        .27698E-03   -1.0226    
   4  Prefactor     1.2130        .23347        .25142E-03   -.85931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54777e-08
Minuit parameter uncertainties:
  1  0.293647
  2  1.74254
  3  0.209773
  4  0.233666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580881': 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) = 5795.71613458
delta logL = 0.580588615811

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  6.096e-02  2.936e-01  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  4.007e+00  1.743e+00  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.213e+00  2.337e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  7.421e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 186.116 24.614
Photon Index (Free Index): 4.01 +/- 1.74
Photon Flux (Free Index): 5.02e-08 +/- 4.79e-07
Energy Flux (Free Index): 7.50e-06 +/- 6.96e-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/580881/cmap_HighResolution_383443201_383702401_4FGL_J1224.4+2436_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', comment='SUCCESS', energy_flux2='7.50e-06', dlogl='5.81e-01', photon_flux2='5.02e-08', job_status='DONE', time_completed='2021-09-05 12:37:42.258286', photon_index_error2='1.74', photon_index2='4.01', ts='-0.00', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='5.61e-08', energy_flux_error2='6.96e-05', EG='0.80', time_epoch_completed='1630870662.26', return_code='0', job_id='580881', GAL2='1.21', EG2='0.74', return_code2='0', photon_flux_error2='4.79e-07', ts2='1.23', photon_index='1.93' WHERE bin_id='556' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:37:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 580881: <4FGL_J1224.4+2436_daily_bin556> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin556> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 12:25:30 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:25:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:25:31 2021
Terminated at Sun Sep  5 12:37:42 2021
Results reported at Sun Sep  5 12:37:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin556 186.116 24.6142 383443201 383702401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.4+2436 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            732 sec.

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

