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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1145
RA = 186.116, Dec = 24.6142
tmin = 536112001, tmax = 536371201
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='584324', job_status='RUN', time_executed='2021-09-05 12:36:03.726208', time_epoch_executed='1630870563.73' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584324/ft1_4FGL_J1224.4+2436_daily_bin1145.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584324/ft2_4FGL_J1224.4+2436_daily_bin1145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584324/ft1_4FGL_J1224.4+2436_daily_bin1145.fits outfile=/scratch/kocevski/584324/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1145.fits ra=186.116 dec=24.6142 rad=12.0 tmin=536112001.0 tmax=536371201.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.63
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/584324/ft2_4FGL_J1224.4+2436_daily_bin1145.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/584324/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1145.fits evtable="EVENTS" outfile="/scratch/kocevski/584324/ft1_filtered_4FGL_J1224.4+2436_daily_bin1145.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/584324/ft1_filtered_4FGL_J1224.4+2436_daily_bin1145.fits" evtable="EVENTS" scfile=/scratch/kocevski/584324/ft2_4FGL_J1224.4+2436_daily_bin1145.fits sctable="SC_DATA" outfile=/scratch/kocevski/584324/ltcube_536112001_536371201_4FGL_J1224.4+2436_daily_bin1145.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/584324/ft2_4FGL_J1224.4+2436_daily_bin1145.fits
.....................!
real 12.00
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584324/ft1_filtered_4FGL_J1224.4+2436_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/584324/ft2_4FGL_J1224.4+2436_daily_bin1145.fits sctable="SC_DATA" expcube=/scratch/kocevski/584324/ltcube_536112001_536371201_4FGL_J1224.4+2436_daily_bin1145.fits outfile=/scratch/kocevski/584324/expmap_536112001_536371201_4FGL_J1224.4+2436_daily_bin1145.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/584324/ltcube_536112001_536371201_4FGL_J1224.4+2436_daily_bin1145.fits
.....................!
real 190.26
user 185.00
sys 4.76

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/584324/ft1_filtered_4FGL_J1224.4+2436_daily_bin1145.fits scfile=/scratch/kocevski/584324/ft2_4FGL_J1224.4+2436_daily_bin1145.fits outfile=/scratch/kocevski/584324/cmap_536112001_536371201_4FGL_J1224.4+2436_daily_bin1145.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584324/ft1_filtered_4FGL_J1224.4+2436_daily_bin1145.fits scfile=/scratch/kocevski/584324/ft2_4FGL_J1224.4+2436_daily_bin1145.fits outfile=/scratch/kocevski/584324/cmap_HighResolution_536112001_536371201_4FGL_J1224.4+2436_daily_bin1145.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2049       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3022       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12079E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24776       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8578       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1675       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0629       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .61425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9778       1.0000         .10000E-03   10000.    
    15 'norm      '    .44281       1.0000         .10000E-03   10000.    
    16 'norm      '    5.0136       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.030       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.249       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0865       1.0000         .10000E-03   10000.    
    21 'norm      '    4.7973       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7174       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1426       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82387       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=   7461.612     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2982 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.002        21.566       -.36633E-06   -.18667E-04
   2  Prefactor     .10000E-03    7.3647        .67179E-06** at limit **
   3  Prefactor     1.2051        1.4853       -.38152E-08   -.14526E-03
   4  Prefactor     .10000E-03    19.339        .79364E-09** at limit **
   5  norm          17.281        2.3842       -.16974E-07   -.71502E-04
   6  Prefactor     4.3025        4.4161        .42608E-06    .14141E-03
   7  Prefactor     .10000E-03    71.348       -.25671E-06** at limit **
   8  Prefactor     .10000E-03    1.4811       -.14369E-06** at limit **
   9  Prefactor     .24522        1.5854       -.30504E-06    .23226E-03
  10  norm          3.8577        2.4282        .16917E-06    .14062E-03
  11  Prefactor     5.1673        5.1420       -.24306E-06   -.10723E-03
  12  Prefactor     4.0629        2.0717       -.93032E-07   -.57990E-04
  13  Prefactor     .61392        1.3381        .17229E-06   -.60472E-04
  14  Prefactor     1.9780        3.3159        .40792E-07   -.14729E-03
  15  norm          .44281        .22643        .98254E-08    .52899E-03
  16  norm          5.0136        4.0659       -.11298E-05   -.62203E-03
  17  Prefactor     6.2898        5.8127       -.42413E-07    .19209E-05
  18  Prefactor     11.030        21.432       -.25725E-06   -.32753E-06
  19  Prefactor     31.246        56.122       -.26995E-05   -.32113E-04
  20  Prefactor     3.0864        6.2472        .82499E-07   -.12766E-03
  21  norm          4.7974        3.4306        .73174E-06    .45362E-03
  22  norm          .10000E-03    1.3527        .15581E-08** at limit **
  23  norm          3.7169        7.4960        .16591E-05   -.74279E-03
  24  Normalizat    1.1426        .17279        .44820E-07    .11217E-03
  25  Prefactor     .82391        .17733        .10187E-06    .80093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.002
  Prefactor  = 0.0001
  Prefactor  = 1.20514
  Prefactor  = 0.0001
  norm       = 17.2809
  Prefactor  = 4.30251
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.245225
  norm       = 3.85774
  Prefactor  = 5.16732
  Prefactor  = 4.06285
  Prefactor  = 0.613918
  Prefactor  = 1.97798
  norm       = 0.442813
  norm       = 5.01357
  Prefactor  = 6.28977
  Prefactor  = 11.0297
  Prefactor  = 31.2457
  Prefactor  = 3.08636
  norm       = 4.79736
  norm       = 0.0001
  norm       = 3.71689
  Normalizat = 1.14256
  Prefactor  = 0.823909
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.612     FROM HESSE     STATUS=OK           445 CALLS     3427 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.002        21.469        .11108E-03   -1.4987    
   2  Prefactor     .10000E-03    7.4195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2051        1.4512        .10932E-03   -1.5488    
   4  Prefactor     .10000E-03    19.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.281        2.3854        .46647E-04   -1.4876    
   6  Prefactor     4.3025        4.3456        .16953E-03   -1.5293    
   7  Prefactor     .10000E-03    72.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7344        .18213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .24522        4.5710        .18943E-02   -1.5609    
  10  norm          3.8577        2.4271        .10067E-03   -1.5315    
  11  Prefactor     5.1673        5.1470        .17685E-03   -1.5253    
  12  Prefactor     4.0629        2.0750        .84051E-04   -1.5305    
  13  Prefactor     .61392        1.1246        .14279E-02   -1.5551    
  14  Prefactor     1.9780        3.2857        .19443E-03   -1.5427    
  15  norm          .44281        .22306        .27769E-04   -1.5575    
  16  norm          5.0136        4.1547        .15175E-03   -1.5260    
  17  Prefactor     6.2898        5.8079        .16006E-03   -1.5206    
  18  Prefactor     11.030        21.433        .12063E-03   -1.5044    
  19  Prefactor     31.246        56.378        .71677E-04   -1.4589    
  20  Prefactor     3.0864        6.2664        .23086E-03   -1.5357    
  21  norm          4.7974        3.4583        .13062E-03   -1.5270    
  22  norm          .10000E-03    1.3735        .98079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7169        10.930        .10472E-02   -1.5322    
  24  Normalizat    1.1426        .20510        .25212E-03   -.88397    
  25  Prefactor     .82391        .21111        .30818E-03   -.98853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88865e-09
Minuit parameter uncertainties:
  1  21.4814
  2  1.91215e-05
  3  1.45119
  4  4.94098e-07
  5  2.38541
  6  4.34587
  7  4.16893e-05
  8  0.000225068
  9  2.11723
  10  2.42712
  11  5.14741
  12  2.07508
  13  1.12466
  14  3.28602
  15  0.223059
  16  4.15497
  17  5.8084
  18  21.4479
  19  56.4739
  20  6.26775
  21  3.45845
  22  2.88505e-07
  23  10.9358
  24  0.205242
  25  0.211322
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.978e+00  3.286e+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:  8.239e-01  2.113e-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:  1.143e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/584324/likelihoodResults_536112001_536371201_4FGL_J1224.4+2436_daily_bin1145.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) = 7461.60875247
delta logL = 0.00338321556865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7461.60809184
delta logL = 0.00404384774811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8583       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0357       1.0000          .0000       10.000    
     3 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82480       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=   7461.608     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8593        79.997        .76431E-02    .35616E-03
   2  Index         2.0371        5.9686        .25587        .25721E-04
   3  Normalizat    1.1409        .46046E-01    .57049E-01    .11066E-04
   4  Prefactor     .82479        .41701E-01    .69615E-01    .22320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85925
  Index      = 2.03709
  Normalizat = 1.14088
  Prefactor  = 0.824789
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.608     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8593        3.5430        .18631E-03   -1.5435    
   2  Index         2.0371        1.3060        .11802E-01   -.63426    
   3  Normalizat    1.1409        .19771        .25228E-03   -.88450    
   4  Prefactor     .82479        .20841        .30802E-03   -.98821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25179e-12
Minuit parameter uncertainties:
  1  3.54343
  2  1.33006
  3  0.197838
  4  0.208613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584324': 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) = 7461.60809079
delta logL = 0.00404488944514

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.859e+00  3.543e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  2.037e+00  1.330e+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:  8.248e-01  2.086e-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:  1.141e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
Ra Dec: 186.116 24.614

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/584324/cmap_HighResolution_536112001_536371201_4FGL_J1224.4+2436_daily_bin1145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-05 12:49:49.307179', job_id='584324', GAL2='0.82', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630871389.31', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.04e-03', ts2='0.65', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1145' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 584324: <4FGL_J1224.4+2436_daily_bin1145> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin1145 186.116 24.6142 536112001 536371201 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 :                                   811.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

