/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 179 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin25
RA = 186.116, Dec = 24.6142
tmin = 245808001, tmax = 246067201
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='577285', job_status='RUN', time_executed='2021-09-05 12:18:55.067629', time_epoch_executed='1630869535.07' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577285

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577285/ft1_4FGL_J1224.4+2436_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577285/ft2_4FGL_J1224.4+2436_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577285/ft1_4FGL_J1224.4+2436_daily_bin25.fits outfile=/scratch/kocevski/577285/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin25.fits ra=186.116 dec=24.6142 rad=12.0 tmin=245808001.0 tmax=246067201.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 1.47
user 1.27
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577285/ft1_filtered_4FGL_J1224.4+2436_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/577285/ft2_4FGL_J1224.4+2436_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/577285/ltcube_245808001_246067201_4FGL_J1224.4+2436_daily_bin25.fits outfile=/scratch/kocevski/577285/expmap_245808001_246067201_4FGL_J1224.4+2436_daily_bin25.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/577285/ltcube_245808001_246067201_4FGL_J1224.4+2436_daily_bin25.fits
.....................!
real 190.12
user 185.00
sys 4.61

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/577285/ft1_filtered_4FGL_J1224.4+2436_daily_bin25.fits scfile=/scratch/kocevski/577285/ft2_4FGL_J1224.4+2436_daily_bin25.fits outfile=/scratch/kocevski/577285/cmap_245808001_246067201_4FGL_J1224.4+2436_daily_bin25.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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577285/ft1_filtered_4FGL_J1224.4+2436_daily_bin25.fits scfile=/scratch/kocevski/577285/ft2_4FGL_J1224.4+2436_daily_bin25.fits outfile=/scratch/kocevski/577285/cmap_HighResolution_245808001_246067201_4FGL_J1224.4+2436_daily_bin25.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8001       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8865       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4260       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.3069       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6810       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.030       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .31291       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9590       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3896       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.2315       1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93230       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1670       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=   7512.835     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2479 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.315       -.61222E-06** at limit **
   2  Prefactor     .10000E-03    11.642        .82765E-05** at limit **
   3  Prefactor     1.8003        1.5456       -.37024E-06   -.56993E-03
   4  Prefactor     6.8570        18.739       -.18561E-04   -.70984E-05
   5  norm          1.4789        .90558       -.18760E-08    .24608E-03
   6  Prefactor     .10000E-03    1.3134       -.11329E-06** at limit **
   7  Prefactor     .10000E-03    16.314       -.92513E-05** at limit **
   8  Prefactor     1.4261        1.6413       -.25065E-06   -.49191E-03
   9  Prefactor     .10000E-03    1.1043        .68877E-07** at limit **
  10  norm          9.3067        3.6182       -.43604E-06    .62561E-04
  11  Prefactor     .10000E-03    4.6939       -.20736E-06** at limit **
  12  Prefactor     2.6809        2.1395        .35551E-06    .45791E-04
  13  Prefactor     13.030        3.2704       -.77896E-06    .11540E-04
  14  Prefactor     .10000E-03    2.0981        .10603E-06** at limit **
  15  norm          .31287        .20113       -.87889E-07   -.99959E-03
  16  norm          1.9587        2.1796       -.14376E-06   -.15396E-03
  17  Prefactor     .10000E-03    6.0529        .82845E-06** at limit **
  18  Prefactor     9.3522        25.102       -.49011E-04   -.15565E-05
  19  Prefactor     .10000E-03    36.861        .12686E-04** at limit **
  20  Prefactor     .10000E-03    2.2349       -.18407E-06** at limit **
  21  norm          .10000E-03    1.2070       -.57686E-07** at limit **
  22  norm          5.2312        3.5447       -.30108E-06   -.17536E-03
  23  norm          .10000E-03    8.7668       -.37311E-05** at limit **
  24  Normalizat    .93241        .15759        .31701E-05    .35572E-04
  25  Prefactor     1.1669        .16946        .29131E-05   -.43837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.80029
  Prefactor  = 6.85698
  norm       = 1.47888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42609
  Prefactor  = 0.0001
  norm       = 9.30672
  Prefactor  = 0.0001
  Prefactor  = 2.68092
  Prefactor  = 13.0296
  Prefactor  = 0.0001
  norm       = 0.312867
  norm       = 1.95867
  Prefactor  = 0.0001
  Prefactor  = 9.35216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.23125
  norm       = 0.0001
  Normalizat = 0.932414
  Prefactor  = 1.16693
 **********
 **   18 **HESSE 
 **********

 FCN=   7512.835     FROM HESSE     STATUS=OK           427 CALLS     2906 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8003        1.5343        .96067E-04   -1.5440    
   4  Prefactor     6.8570        18.767        .15289E-03   -1.5184    
   5  norm          1.4789        .89987        .62299E-04   -1.5465    
   6  Prefactor     .10000E-03    1.3360        .96950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4261        1.6116        .11401E-03   -1.5469    
   9  Prefactor     .10000E-03    2.5314        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.3067        3.6184        .94261E-04   -1.5098    
  11  Prefactor     .10000E-03    4.7286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6809        2.1397        .10551E-03   -1.5380    
  13  Prefactor     13.030        3.2706        .72738E-04   -1.4986    
  14  Prefactor     .10000E-03    2.1372        .12256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .31287        .19549        .29504E-04   -1.5596    
  16  norm          1.9587        2.1663        .13126E-03   -1.5428    
  17  Prefactor     .10000E-03    6.1296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.3522        25.170        .13079E-03   -1.5096    
  19  Prefactor     .10000E-03    36.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2461        .12653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2116        .92990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.2312        3.5428        .12909E-03   -1.5250    
  23  norm          .10000E-03    8.7937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93241        .18258        .26049E-03   -.95330    
  25  Prefactor     1.1669        .19677        .25899E-03   -.87355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40691e-10
Minuit parameter uncertainties:
  1  8.27492e-05
  2  0.000180041
  3  1.5343
  4  18.7828
  5  0.899874
  6  1.05297e-05
  7  6.79934e-05
  8  1.61167
  9  2.15538e-06
  10  3.61848
  11  1.27505e-05
  12  2.13975
  13  3.27069
  14  5.69558e-06
  15  0.195486
  16  2.16636
  17  9.74582e-06
  18  25.1985
  19  9.39433e-05
  20  1.00459e-05
  21  4.93897e-06
  22  3.5429
  23  1.48187e-05
  24  0.1827
  25  0.196898
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  5.696e-06  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.167e+00  1.969e-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:  9.324e-01  1.827e-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: 3.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577285/likelihoodResults_245808001_246067201_4FGL_J1224.4+2436_daily_bin25.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) = 7512.83750361
delta logL = -0.00221749399861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7512.83528624
delta logL = -1.30606167659e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9096       1.0000          .0000       10.000    
     3 'Normalizat'    .93250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1668       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7512.835     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    29.309        .12375E-02** at limit **
   2  Index         1.8684        7.2538        .50000        .44011E-04
   3  Normalizat    .93241        .14691E-01    .26049E-03    .28849E-04
   4  Prefactor     1.1669        .16212E-01    .25899E-03    .23002E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7512.835     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      365 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    29.309        .18089E-03** at limit **
   2  Index         1.8528        7.2538        .55120E-02    .44011E-04
   3  Normalizat    .93237        .14691E-01    .18468E-04    .28849E-04
   4  Prefactor     1.1669        .16212E-01    .26279E-05    .23002E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7512.835     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      415 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    195.91        .24750E-03** at limit **
   2  Index         1.6820        7.9240        .50000        .35809E-06
   3  Normalizat    .93242        .40971E-01    .10419E-04    .23611E-03
   4  Prefactor     1.1669        .45185E-01    .10360E-04    .53114E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68203
  Normalizat = 0.932415
  Prefactor  = 1.16693
 **********
 **   18 **HESSE 
 **********

 FCN=   7512.835     FROM HESSE     STATUS=OK            29 CALLS      444 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.455        .49501E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6820        5.7342        .50000       -.72561    
   3  Normalizat    .93242        .17680        .20839E-05   -.95330    
   4  Prefactor     1.1669        .19497        .20719E-05   -.87355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80241e-10
Minuit parameter uncertainties:
  1  2.92052e-05
  2  262.781
  3  0.176914
  4  0.195087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577285': 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) = 7512.83528435
delta logL = 1.76057528734e-06

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  2.921e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.682e+00  2.628e+02  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.167e+00  1.951e-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:  9.324e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/577285/cmap_HighResolution_245808001_246067201_4FGL_J1224.4+2436_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-03', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2021-09-05 12:31:56.973576', job_id='577285', GAL2='1.17', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630870316.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='25' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 577285: <4FGL_J1224.4+2436_daily_bin25> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin25> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:44 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:46 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:15:46 2021
Terminated at Sun Sep  5 12:31:57 2021
Results reported at Sun Sep  5 12:31:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin25 186.116 24.6142 245808001 246067201 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

