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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1138
RA = 186.116, Dec = 24.6142
tmin = 534297601, tmax = 534556801
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='584314', job_status='RUN', time_executed='2021-09-05 12:36:02.523675', time_epoch_executed='1630870562.52' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584314

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584314/ft1_4FGL_J1224.4+2436_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584314/ft1_4FGL_J1224.4+2436_daily_bin1138.fits outfile=/scratch/kocevski/584314/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1138.fits ra=186.116 dec=24.6142 rad=12.0 tmin=534297601.0 tmax=534556801.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.55
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.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/584314/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1138.fits evtable="EVENTS" outfile="/scratch/kocevski/584314/ft1_filtered_4FGL_J1224.4+2436_daily_bin1138.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/584314/ft1_filtered_4FGL_J1224.4+2436_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/584314/ltcube_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.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/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.fits
.....................!
real 11.90
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584314/ft1_filtered_4FGL_J1224.4+2436_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/584314/ltcube_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.fits outfile=/scratch/kocevski/584314/expmap_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.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/584314/ltcube_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.fits
.....................!
real 190.36
user 185.19
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 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/584314/ft1_filtered_4FGL_J1224.4+2436_daily_bin1138.fits scfile=/scratch/kocevski/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.fits outfile=/scratch/kocevski/584314/cmap_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584314/ft1_filtered_4FGL_J1224.4+2436_daily_bin1138.fits scfile=/scratch/kocevski/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.fits outfile=/scratch/kocevski/584314/cmap_HighResolution_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/584314/ft1_filtered_4FGL_J1224.4+2436_daily_bin1138.fits', '/scratch/kocevski/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.fits', expMap='/scratch/kocevski/584314/expmap_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.fits', expCube='/scratch/kocevski/584314/ltcube_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/584314/Model_4FGL_J1224.4+2436_daily_bin1138.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/584314/ft1_filtered_4FGL_J1224.4+2436_daily_bin1138.fits
Spacecraft file(s): /scratch/kocevski/584314/ft2_4FGL_J1224.4+2436_daily_bin1138.fits
Exposure map: /scratch/kocevski/584314/expmap_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.fits
Exposure cube: /scratch/kocevski/584314/ltcube_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/584314/Model_4FGL_J1224.4+2436_daily_bin1138.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) = 7341.41181529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8608       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3780       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13497E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.830       1.0000         .10000E-03   10000.    
     5 'norm      '    43.185       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .64526E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.894       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9467       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8128       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1343       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3803       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7593       1.0000         .10000E-03   10000.    
    15 'norm      '    .22389       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3240       1.0000         .10000E-03   10000.    
    21 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.428       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76855       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1950       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=   7341.379     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2597 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8646        16.332        .53522E-06    .43560E-04
   2  Prefactor     6.3789        9.7556        .12969E-06   -.62024E-04
   3  Prefactor     .10000E-03    .82260        .28977E-07** at limit **
   4  Prefactor     25.829        26.319        .18444E-06   -.32693E-04
   5  norm          43.185        3.4882        .81869E-07    .95365E-03
   6  Prefactor     .10007E-03    1.8172        .15827E-06** at limit **
   7  Prefactor     27.881        31.905       -.20481E-05   -.25823E-03
   8  Prefactor     1.9464        2.8340        .32244E-06   -.16511E-03
   9  Prefactor     2.8130        2.5238       -.23829E-07   -.11825E-03
  10  norm          7.1342        2.9296       -.26003E-07   -.10611E-03
  11  Prefactor     .10000E-03    8.2436       -.14727E-06** at limit **
  12  Prefactor     .10000E-03    .75081       -.61750E-08** at limit **
  13  Prefactor     2.3807        2.0802        .96599E-07   -.69115E-04
  14  Prefactor     1.7594        2.6409        .69076E-07   -.28511E-04
  15  norm          .22393        .19844        .30477E-07   -.32072E-03
  16  norm          .10000E-03    1.0710        .12671E-07** at limit **
  17  Prefactor     .10000E-03    5.8143        .65996E-07** at limit **
  18  Prefactor     14.045        27.105       -.39025E-06   -.62295E-04
  19  Prefactor     46.925        42.541        .28592E-05    .29008E-03
  20  Prefactor     4.3232        5.3757        .26005E-05   -.57995E-03
  21  norm          .10000E-03    2.4114        .27666E-06** at limit **
  22  norm          .10000E-03    3.6456       -.22101E-06** at limit **
  23  norm          11.422        24.589       -.96071E-06   -.89766E-04
  24  Normalizat    .76859        .17954       -.79174E-06   -.58744E-04
  25  Prefactor     1.1950        .19221       -.26066E-06   -.66008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.86463
  Prefactor  = 6.37891
  Prefactor  = 0.0001
  Prefactor  = 25.8291
  norm       = 43.1854
  Prefactor  = 0.000100074
  Prefactor  = 27.8807
  Prefactor  = 1.9464
  Prefactor  = 2.81297
  norm       = 7.13421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.38068
  Prefactor  = 1.75939
  norm       = 0.223929
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0447
  Prefactor  = 46.9255
  Prefactor  = 4.32316
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.4225
  Normalizat = 0.768588
  Prefactor  = 1.19497
 **********
 **   18 **HESSE 
 **********

 FCN=   7341.379     FROM HESSE     STATUS=OK           437 CALLS     3034 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8646        16.031        .16589E-03   -1.5224    
   2  Prefactor     6.3789        9.6681        .15893E-03   -1.5203    
   3  Prefactor     .10000E-03    16.912        .14576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.829        26.305        .78821E-04   -1.4691    
   5  norm          43.185        3.4983        .43191E-04   -1.4393    
   6  Prefactor     .10007E-03    49.319        .21132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.881        32.771        .75855E-04   -1.4651    
   8  Prefactor     1.9464        2.7359        .15386E-03   -1.5429    
   9  Prefactor     2.8130        2.5015        .11865E-03   -1.5373    
  10  norm          7.1342        2.9268        .90521E-04   -1.5174    
  11  Prefactor     .10000E-03    8.4855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .75875        .72449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3807        2.0686        .11003E-03   -1.5399    
  14  Prefactor     1.7594        2.6164        .16598E-03   -1.5443    
  15  norm          .22393        .18693        .34075E-03   -1.5613    
  16  norm          .10000E-03    1.0737        .86576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.045        27.157        .10687E-03   -1.4958    
  19  Prefactor     46.925        43.985        .29272E-03   -1.4337    
  20  Prefactor     4.3232        5.5170        .96861E-03   -1.5292    
  21  norm          .10000E-03    2.4604        .12977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.7615        .31898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.422        24.667        .11851E-03   -1.5032    
  24  Normalizat    .76859        .21212        .30906E-03   -1.0124    
  25  Prefactor     1.1950        .23087        .28370E-03   -.86486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9704e-09
Minuit parameter uncertainties:
  1  16.0432
  2  9.67049
  3  0.000140376
  4  26.3166
  5  3.49827
  6  0.00382067
  7  32.7922
  8  2.73612
  9  2.50161
  10  2.92682
  11  2.85694e-05
  12  3.71248e-07
  13  2.06865
  14  2.61656
  15  0.18693
  16  2.09612e-07
  17  2.86898e-06
  18  27.1809
  19  44.0153
  20  5.51763
  21  1.06263e-05
  22  4.76624e-06
  23  24.6895
  24  0.21235
  25  0.231061
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.759e+00  2.617e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.195e+00  2.311e-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.686e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/584314/likelihoodResults_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.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) = 7341.26467368
delta logL = 0.114004853391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7341.26093901
delta logL = 0.117739517419

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4068       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5201       1.0000          .0000       10.000    
     3 'Normalizat'    .77148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1930       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7341.261     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4067        3.3680        .18053E-03    .42073E-03
   2  Index         1.5196        .78187        .13122E-01    .54802E-04
   3  Normalizat    .77156        .20413        .30850E-03   -.28449E-04
   4  Prefactor     1.1929        .22997        .28387E-03   -.36565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40668
  Index      = 1.51959
  Normalizat = 0.771564
  Prefactor  = 1.19293
 **********
 **   18 **HESSE 
 **********

 FCN=   7341.261     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4067        3.3514        .72212E-05   -1.5398    
   2  Index         1.5196        .77847        .52490E-03   -.76992    
   3  Normalizat    .77156        .20434        .12340E-04   -1.0113    
   4  Prefactor     1.1929        .23021        .11355E-04   -.86549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9851e-10
Minuit parameter uncertainties:
  1  3.35169
  2  0.784704
  3  0.204538
  4  0.2304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584314': 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) = 7341.26093874
delta logL = 0.117739793667

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.407e+00  3.352e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.520e+00  7.847e-01  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.193e+00  2.304e-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.716e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 186.116 24.614
Photon Index (Free Index): 1.52 +/- 0.78
Photon Flux (Free Index): 4.99e-09 +/- 8.39e-09
Energy Flux (Free Index): 1.48e-05 +/- 3.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/584314/cmap_HighResolution_534297601_534556801_4FGL_J1224.4+2436_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-03', comment='SUCCESS', energy_flux2='1.48e-05', dlogl='1.18e-01', photon_flux2='4.99e-09', job_status='DONE', time_completed='2021-09-05 12:49:42.722317', photon_index_error2='0.78', photon_index2='1.52', ts='0.86', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='4.60e-08', energy_flux_error2='3.23e-05', EG='0.77', time_epoch_completed='1630871382.72', return_code='0', job_id='584314', GAL2='1.19', EG2='0.77', return_code2='0', photon_flux_error2='8.39e-09', ts2='1.10', photon_index='1.93' WHERE bin_id='1138' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:49:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 584314: <4FGL_J1224.4+2436_daily_bin1138> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin1138> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:35:47 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:35:49 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:35:49 2021
Terminated at Sun Sep  5 12:49:43 2021
Results reported at Sun Sep  5 12:49:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin1138 186.116 24.6142 534297601 534556801 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 :                                   806.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

