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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1223
RA = 339.144, Dec = -14.5557
tmin = 556329601, tmax = 556588801
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='414143', job_status='RUN', time_executed='2021-09-28 17:31:50.853860', time_epoch_executed='1632875510.85' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414143/ft1_4FGL_J2236.5-1433_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414143/ft1_4FGL_J2236.5-1433_daily_bin1223.fits outfile=/scratch/kocevski/414143/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1223.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=556329601.0 tmax=556588801.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.83
user 3.50
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.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/414143/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1223.fits evtable="EVENTS" outfile="/scratch/kocevski/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/414143/ltcube_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.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/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits
.....................!
real 11.74
user 11.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/414143/ltcube_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.fits outfile=/scratch/kocevski/414143/expmap_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.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/414143/ltcube_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.fits
.....................!
real 190.26
user 184.82
sys 5.00

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

Setting source of interest to:
4FGL J2236.5-1433 @ 339.144 -14.5557

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.fits scfile=/scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits outfile=/scratch/kocevski/414143/cmap_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.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.144 yref=-14.5557 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.fits scfile=/scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits outfile=/scratch/kocevski/414143/cmap_HighResolution_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.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.144 yref=-14.5557 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414143/Model_4FGL_J2236.5-1433_daily_bin1223.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/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.fits.....................!
real 90.98
user 89.57
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.fits', '/scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits', expMap='/scratch/kocevski/414143/expmap_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.fits', expCube='/scratch/kocevski/414143/ltcube_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414143/Model_4FGL_J2236.5-1433_daily_bin1223.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.5-1433'

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/414143/ft1_filtered_4FGL_J2236.5-1433_daily_bin1223.fits
Spacecraft file(s): /scratch/kocevski/414143/ft2_4FGL_J2236.5-1433_daily_bin1223.fits
Exposure map: /scratch/kocevski/414143/expmap_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.fits
Exposure cube: /scratch/kocevski/414143/ltcube_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414143/Model_4FGL_J2236.5-1433_daily_bin1223.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) = 11551.0647379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.007       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7045       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.976       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25725       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1003       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.858       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2556       1.0000         .10000E-03   10000.    
    12 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.343       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9515       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0697       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   11551.06     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     2641 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0788        .14972E-02** at limit **
   2  Prefactor     27.014        15.487        .77088E-04   -.76983E-04
   3  Prefactor     2.7076        6.1634        .24769E-03    .19938E-04
   4  Prefactor     4.0929        10.363        .19940E-03   -.33524E-04
   5  Prefactor     36.001        42.154        .66816E-04   -.42878E-04
   6  Prefactor     2.7561        3.6569        .21307E-03    .63602E-04
   7  Prefactor     .99958        157.76        .20472E-02   -.13039E-04
   8  norm          2.1029        2.4364        .17082E-03    .59366E-04
   9  Prefactor     .10000E-03    14.683        .18142E-02** at limit **
  10  Prefactor     19.858        9.8412        .89880E-04    .37187E-04
  11  norm          1.2549        .56061        .52267E-04    .29538E-03
  12  norm          .10000E-03    .57347        .15608E-03** at limit **
  13  Prefactor     14.124        21.038        .10664E-03    .65245E-04
  14  Prefactor     45.333        22.111        .59541E-04   -.67592E-04
  15  norm          2.5505        1.7358        .63857E-04   -.10475E-02
  16  Prefactor     .10000E-03    36.117        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.5392        .18142E-02** at limit **
  18  Prefactor     5.9566        6.3098        .16460E-03    .25141E-04
  19  Prefactor     .10000E-03    4.2828        .18142E-02** at limit **
  20  Normalizat    1.0697        .17047        .26795E-03   -.72213E-04
  21  Prefactor     .90951        .12953        .22446E-03   -.39608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.0142
  Prefactor  = 2.70757
  Prefactor  = 4.09288
  Prefactor  = 36.0012
  Prefactor  = 2.75607
  Prefactor  = 0.999576
  norm       = 2.10292
  Prefactor  = 0.0001
  Prefactor  = 19.8583
  norm       = 1.25487
  norm       = 0.0001
  Prefactor  = 14.1238
  Prefactor  = 45.3333
  norm       = 2.55048
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.95655
  Prefactor  = 0.0001
  Normalizat = 1.06968
  Prefactor  = 0.909508
 **********
 **   18 **HESSE 
 **********

 FCN=   11551.06     FROM HESSE     STATUS=OK           299 CALLS     2940 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0800        .29943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.014        15.483        .30835E-05   -1.4668    
   3  Prefactor     2.7076        6.1628        .49539E-04   -1.5379    
   4  Prefactor     4.0929        10.358        .79761E-05   -1.5303    
   5  Prefactor     36.001        42.151        .13363E-04   -1.4507    
   6  Prefactor     2.7561        3.6549        .85227E-05   -1.5376    
   7  Prefactor     .99958        157.73        .81888E-04   -1.5508    
   8  norm          2.1029        2.4360        .68328E-05   -1.5418    
   9  Prefactor     .10000E-03    14.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.858        9.8414        .35952E-05   -1.4816    
  11  norm          1.2549        .56053        .20907E-05   -1.5484    
  12  norm          .10000E-03    .57347        .31217E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.124        21.035        .42656E-05   -1.4956    
  14  Prefactor     45.333        22.113        .23817E-05   -1.4360    
  15  norm          2.5505        1.7361        .25543E-05   -1.5389    
  16  Prefactor     .10000E-03    36.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9566        6.3094        .65840E-05   -1.5220    
  19  Prefactor     .10000E-03    4.2829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0697        .17064        .10718E-04   -.90731    
  21  Prefactor     .90951        .12964        .89783E-05   -.95810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7848e-10
Minuit parameter uncertainties:
  1  4.79899e-06
  2  15.4856
  3  6.16424
  4  10.3624
  5  42.1861
  6  3.65515
  7  25.1793
  8  2.43609
  9  4.90349e-06
  10  9.84224
  11  0.560532
  12  8.79118e-06
  13  21.046
  14  22.1171
  15  1.73613
  16  0.000554242
  17  1.41792e-06
  18  6.31014
  19  2.37679e-06
  20  0.170726
  21  0.129686
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.255e+00  5.605e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.095e-01  1.297e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.070e+00  1.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.58
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.06e-05

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) = 11551.0102058
delta logL = 0.0515538813797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11551.0091229
delta logL = 0.0526367208604

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11551.01     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2389        13.830        .10076E-01    .40792E-03
   2  alpha         1.9264        3.2257        .39681       -.37702E-04
   3  Normalizat    1.0746        .13059        .60474E-01    .20777E-04
   4  Prefactor     .90791        .10447        .45106E-01    .16792E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2389
  alpha      = 1.92643
  Normalizat = 1.07463
  Prefactor  = 0.90791
 **********
 **   18 **HESSE 
 **********

 FCN=   11551.01     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2389        .57145        .53073E-04   -1.5485    
   2  alpha         1.9264        .41488        .14010E-01   -.23149    
   3  Normalizat    1.0746        .16168        .26746E-03   -.90571    
   4  Prefactor     .90791        .12635        .22467E-03   -.95865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04985e-12
Minuit parameter uncertainties:
  1  0.571451
  2  0.416917
  3  0.161758
  4  0.126395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414143': 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) = 11551.0091229
delta logL = 0.0526367740003

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.239e+00  5.715e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.926e+00  4.169e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  9.079e-01  1.264e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.075e+00  1.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.70
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.93 +/- 0.42
Photon Flux (Free Index): 4.27e-08 +/- 2.62e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.58e-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/414143/cmap_HighResolution_556329601_556588801_4FGL_J2236.5-1433_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='2.66e-05', photon_flux_error='2.17e-08', dlogl='5.26e-02', energy_flux='2.38e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-09-28 17:44:42.282064', photon_index_error2='0.42', photon_index2='1.93', ts='12.58', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.07', time_epoch_completed='1632876282.28', return_code='0', job_id='414143', GAL2='0.91', EG2='1.07', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.62e-08', ts2='12.70', photon_index='2.06' WHERE bin_id='1223' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 414143: <4FGL_J2236.5-1433_daily_bin1223> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1223> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:56 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:30:58 2021
Terminated at Tue Sep 28 17:44:43 2021
Results reported at Tue Sep 28 17:44:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1223 339.144 -14.5557 556329601 556588801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.5-1433 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

