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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin753
RA = 339.096, Dec = 28.4832
tmin = 434505601, tmax = 434764801
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='399420', job_status='RUN', time_executed='2021-09-28 16:45:30.827336', time_epoch_executed='1632872730.83' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399420

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399420/ft1_4FGL_J2236.3+2828_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399420/ft1_4FGL_J2236.3+2828_daily_bin753.fits outfile=/scratch/kocevski/399420/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin753.fits ra=339.096 dec=28.4832 rad=12.0 tmin=434505601.0 tmax=434764801.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 5.89
user 5.60
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.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/399420/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin753.fits evtable="EVENTS" outfile="/scratch/kocevski/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/399420/ltcube_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.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/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits
.....................!
real 12.22
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/399420/ltcube_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.fits outfile=/scratch/kocevski/399420/expmap_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.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/399420/ltcube_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.fits
.....................!
real 190.27
user 185.65
sys 4.30

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

Setting source of interest to:
4FGL J2236.3+2828 @ 339.096 28.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.fits scfile=/scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits outfile=/scratch/kocevski/399420/cmap_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.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=339.096 yref=28.4832 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.fits scfile=/scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits outfile=/scratch/kocevski/399420/cmap_HighResolution_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.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=339.096 yref=28.4832 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399420/Model_4FGL_J2236.3+2828_daily_bin753.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/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.fits......................!
real 47.13
user 45.76
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.fits', '/scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits', expMap='/scratch/kocevski/399420/expmap_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.fits', expCube='/scratch/kocevski/399420/ltcube_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/399420/Model_4FGL_J2236.3+2828_daily_bin753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.3+2828'

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.238e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/399420/ft1_filtered_4FGL_J2236.3+2828_daily_bin753.fits
Spacecraft file(s): /scratch/kocevski/399420/ft2_4FGL_J2236.3+2828_daily_bin753.fits
Exposure map: /scratch/kocevski/399420/expmap_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.fits
Exposure cube: /scratch/kocevski/399420/ltcube_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/399420/Model_4FGL_J2236.3+2828_daily_bin753.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) = 3553.1420578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5380       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    234.17       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.761       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9620       1.0000         .10000E-03   10000.    
     6 'Prefactor '    142.41       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37506E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27225E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.963       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0847       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.756       1.0000         .10000E-03   10000.    
    19 'norm      '    29.885       1.0000         .10000E-03   10000.    
    20 'Prefactor '    96.033       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61858       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3553.099     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2375 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5382        11.833        .60586E-05   -.10972E-04
   2  norm          2.5139        1.5389        .95160E-07    .52024E-04
   3  Prefactor     233.97        133.39        .51827E-05   -.89662E-05
   4  Prefactor     32.777        32.730       -.10448E-05   -.18517E-05
   5  norm          3.9605        7.9034        .80103E-06   -.81840E-05
   6  Prefactor     141.94        185.49        .15386E-04   -.10009E-04
   7  Prefactor     10.029        18.839        .31413E-08   -.20458E-05
   8  norm          1.3283        2.4421       -.69178E-06   -.33870E-03
   9  Prefactor     .10000E-03    1296.3        .10915E-04** at limit **
  10  Prefactor     .10000E-03    448.61        .61537E-05** at limit **
  11  norm          .10000E-03    .83111        .95529E-08** at limit **
  12  Prefactor     .10000E-03    10.391        .19915E-06** at limit **
  13  Prefactor     .10000E-03    13.460        .12585E-06** at limit **
  14  Prefactor     11.979        24.944       -.45355E-06   -.38980E-06
  15  Prefactor     .10000E-03    11.164       -.17812E-06** at limit **
  16  norm          3.0853        2.0333        .12504E-07   -.25136E-04
  17  Prefactor     .10000E-03    41.798        .10856E-06** at limit **
  18  Prefactor     47.776        43.041       -.79277E-06    .25065E-05
  19  norm          29.894        15.577       -.32048E-06    .48055E-05
  20  Prefactor     95.981        52.391        .17418E-05   -.94544E-05
  21  Normalizat    .61737        .35448       -.16318E-06   -.29515E-04
  22  Prefactor     .77496        .13738       -.12154E-05   -.12950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53822
  norm       = 2.51386
  Prefactor  = 233.97
  Prefactor  = 32.7769
  norm       = 3.96046
  Prefactor  = 141.942
  Prefactor  = 10.0292
  norm       = 1.3283
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9789
  Prefactor  = 0.0001
  norm       = 3.08533
  Prefactor  = 0.0001
  Prefactor  = 47.7763
  norm       = 29.8942
  Prefactor  = 95.9812
  Normalizat = 0.617373
  Prefactor  = 0.774964
 **********
 **   18 **HESSE 
 **********

 FCN=   3553.099     FROM HESSE     STATUS=OK           348 CALLS     2723 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5382        11.820        .17195E-02   -1.5460    
   2  norm          2.5139        1.5379        .54038E-04   -1.5391    
   3  Prefactor     233.97        133.11        .13226E-03   -1.2637    
   4  Prefactor     32.777        32.695        .70007E-04   -1.4562    
   5  norm          3.9605        7.8875        .10132E-02   -1.5310    
   6  Prefactor     141.94        185.67        .16880E-03   -1.3320    
   7  Prefactor     10.029        18.843        .12650E-03   -1.5074    
   8  norm          1.3283        2.3825        .11456E-03   -1.5477    
   9  Prefactor     .10000E-03    1313.9        .21293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    459.84        .42860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .83125        .53071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.979        24.922        .11582E-03   -1.5016    
  15  Prefactor     .10000E-03    11.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0853        2.0310        .66791E-04   -1.5357    
  17  Prefactor     .10000E-03    41.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.776        43.025        .58024E-04   -1.4324    
  19  norm          29.894        15.593        .73290E-04   -1.4614    
  20  Prefactor     95.981        52.472        .20508E-03   -1.3745    
  21  Normalizat    .61737        .38317        .45609E-03   -1.0725    
  22  Prefactor     .77496        .15178        .16955E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49492e-10
Minuit parameter uncertainties:
  1  8.53014
  2  1.53797
  3  133.284
  4  32.713
  5  7.88953
  6  186.44
  7  18.8538
  8  2.38269
  9  0.000761873
  10  0.00179557
  11  2.01738e-07
  12  7.62446e-06
  13  2.30872e-06
  14  24.9439
  15  1.23785e-06
  16  2.03106
  17  6.11259e-05
  18  43.0526
  19  15.5949
  20  52.4976
  21  0.384837
  22  0.15186
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.328e+00  2.383e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  7.750e-01  1.519e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  6.174e-01  3.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 339.096 28.483
Photon Flux Upper Limit: 2.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/399420/likelihoodResults_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.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) = 3551.6888329
delta logL = 1.41012322058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3551.66493103
delta logL = 1.43402508606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22510       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .28730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3551.665     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      273 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22507        3.7374        .35784E-02    .57414E-03
   2  alpha         5.0000        4.9551        .46425    ** at limit **
   3  Normalizat    .28743        .35099        .14968        .39232E-04
   4  Prefactor     .86995        .12769        .44621E-01   -.16662E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.225075
  alpha      = 5
  Normalizat = 0.287426
  Prefactor  = 0.86995
 **********
 **   18 **HESSE 
 **********

 FCN=   3551.665     FROM HESSE     STATUS=OK            31 CALLS      304 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22507        .14685        .16012E-04   -1.5613    
   2  alpha         5.0000        3.2312        .38614E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .28743        .40144        .66035E-03   -1.2359    
   4  Prefactor     .86995        .15930        .16101E-03   -.97199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18766e-12
Minuit parameter uncertainties:
  1  0.146852
  2  6.9582e-06
  3  0.405551
  4  0.159386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399420': 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) = 3551.66493093
delta logL = 1.43402518939

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.251e-01  1.469e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  5.000e+00  6.958e-06  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.700e-01  1.594e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  2.874e-01  4.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 339.096 28.483
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.81e-07 +/- 1.82e-07
Energy Flux (Free Index): 3.81e-05 +/- 2.48e-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/399420/cmap_HighResolution_434505601_434764801_4FGL_J2236.3+2828_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.10e-05', comment='SUCCESS', energy_flux2='3.81e-05', dlogl='1.43e+00', photon_flux2='2.81e-07', job_status='DONE', time_completed='2021-09-28 16:53:54.980268', photon_index_error2='0.00', photon_index2='5.00', ts='0.43', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='2.24e-07', energy_flux_error2='2.48e-05', EG='0.62', time_epoch_completed='1632873234.98', return_code='0', job_id='399420', GAL2='0.87', EG2='0.29', return_code2='0', photon_flux_error2='1.82e-07', ts2='4.35', photon_index='2.15' WHERE bin_id='753' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:53:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 399420: <4FGL_J2236.3+2828_daily_bin753> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin753> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:13 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:45:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:45:15 2021
Terminated at Tue Sep 28 16:53:55 2021
Results reported at Tue Sep 28 16:53:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin753 339.096 28.4832 434505601 434764801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.3+2828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   492.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   520 sec.
    Turnaround time :                            522 sec.

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

