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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1063
RA = 338.971, Dec = -36.4605
tmin = 514857601, tmax = 515116801
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='393521', job_status='RUN', time_executed='2021-09-28 16:26:07.757094', time_epoch_executed='1632871567.76' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393521

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393521/ft1_4FGL_J2235.8-3627_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393521/ft1_4FGL_J2235.8-3627_daily_bin1063.fits outfile=/scratch/kocevski/393521/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1063.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=514857601.0 tmax=515116801.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.50
user 3.30
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.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/393521/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1063.fits evtable="EVENTS" outfile="/scratch/kocevski/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/393521/ltcube_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.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/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits
.....................!
real 11.89
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/393521/ltcube_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.fits outfile=/scratch/kocevski/393521/expmap_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.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/393521/ltcube_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.fits
.....................!
real 189.34
user 185.05
sys 3.97

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

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.fits scfile=/scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits outfile=/scratch/kocevski/393521/cmap_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.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=338.971 yref=-36.4605 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.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.fits scfile=/scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits outfile=/scratch/kocevski/393521/cmap_HighResolution_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.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=338.971 yref=-36.4605 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393521/Model_4FGL_J2235.8-3627_daily_bin1063.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/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.fits.....................!
real 46.37
user 45.13
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.fits', '/scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits', expMap='/scratch/kocevski/393521/expmap_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.fits', expCube='/scratch/kocevski/393521/ltcube_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/393521/Model_4FGL_J2235.8-3627_daily_bin1063.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/393521/ft1_filtered_4FGL_J2235.8-3627_daily_bin1063.fits
Spacecraft file(s): /scratch/kocevski/393521/ft2_4FGL_J2235.8-3627_daily_bin1063.fits
Exposure map: /scratch/kocevski/393521/expmap_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.fits
Exposure cube: /scratch/kocevski/393521/ltcube_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/393521/Model_4FGL_J2235.8-3627_daily_bin1063.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) = 5792.76977364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3405       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4583       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9315       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0904       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6030       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0884       1.0000         .10000E-03   10000.    
     8 'norm      '    .11684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11863       1.0000         .10000E-03   10000.    
    12 'norm      '    .21325E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.894       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1066       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0156       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4056       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    32.668       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.8331       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1053       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5792.594     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     3173 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3368        3.7318       -.73531E-05    .32205E-03
   2  Prefactor     9.4597        1.4003       -.72783E-06   -.55124E-04
   3  norm          4.9323        1.2075       -.50198E-06    .27038E-03
   4  norm          3.0913        2.4798        .29146E-05    .16804E-02
   5  norm          1.6028        .44930       -.17995E-06   -.13791E-03
   6  Prefactor     4.1005        3.4009        .37746E-05   -.14104E-02
   7  Prefactor     7.0868        4.2877       -.71714E-08   -.42737E-03
   8  norm          .16974E-03    1067.0        .99018E-05** at limit **
   9  Prefactor     .10001E-03    12.526        .32210E-05** at limit **
  10  Prefactor     .10000E-03    5.2129       -.33731E-06** at limit **
  11  Prefactor     .64302E-01    95.101        .22422E-04   -.91395E-03
  12  norm          .10000E-03    6.4666        .47478E-05** at limit **
  13  Prefactor     42.816        12.718        .37729E-05   -.50285E-02
  14  Prefactor     2.1075        1.4937        .14280E-05   -.61016E-03
  15  Prefactor     .10000E-03    2.3173       -.40923E-06** at limit **
  16  norm          5.0152        2.9739        .18406E-06    .92219E-03
  17  Prefactor     36.920        22.414        .73908E-05    .39069E-02
  18  Prefactor     .10001E-03    8.3524        .39406E-05** at limit **
  19  norm          2.4053        .89597       -.44492E-06   -.18598E-04
  20  Prefactor     .10000E-03    16.923        .48277E-05** at limit **
  21  Prefactor     .10001E-03    2.6320       -.41338E-05** at limit **
  22  norm          32.665        6.9487       -.23470E-05   -.13537E-02
  23  norm          .10000E-03    3.4910       -.17490E-05** at limit **
  24  norm          .10001E-03    2.6399        .11146E-05** at limit **
  25  Prefactor     .10000E-03    10.350       -.47560E-05** at limit **
  26  Prefactor     .10000E-03    16.254        .76804E-06** at limit **
  27  norm          9.8328        4.4391        .99949E-06    .19837E-02
  28  Normalizat    1.1056        .21146       -.39532E-05   -.74461E-04
  29  Prefactor     .68656        .19937        .23284E-05   -.79170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33683
  Prefactor  = 9.45967
  norm       = 4.93227
  norm       = 3.09133
  norm       = 1.60283
  Prefactor  = 4.10048
  Prefactor  = 7.0868
  norm       = 0.000169738
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0643018
  norm       = 0.0001
  Prefactor  = 42.8156
  Prefactor  = 2.10748
  Prefactor  = 0.0001
  norm       = 5.01521
  Prefactor  = 36.9203
  Prefactor  = 0.000100014
  norm       = 2.40534
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  norm       = 32.6648
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.83278
  Normalizat = 1.10561
  Prefactor  = 0.686563
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.594     FROM HESSE     STATUS=OK           631 CALLS     3804 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3368        9.1158        .94647E-02   -1.5477    
   2  Prefactor     9.4597        8.5788        .32577E-02   -1.5093    
   3  norm          4.9323        7.4693        .45278E-02   -1.5264    
   4  norm          3.0913        4.8655        .57675E-02   -1.5356    
   5  norm          1.6028        .46410        .58307E-02   -1.5455    
   6  Prefactor     4.1005        6.2573        .49773E-02   -1.5303    
   7  Prefactor     7.0868        4.3999        .37668E-02   -1.5175    
   8  norm          .16974E-03    17.237        .11499       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    19.832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .64302E-01    14.255        .95997E-01   -1.5657    
  12  norm          .10000E-03    2.0740        .30541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.816        55.589        .15303E-02   -1.4398    
  14  Prefactor     2.1075        7.3497        .71070E-02   -1.5418    
  15  Prefactor     .10000E-03    2.3018        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0152        5.9194        .44889E-02   -1.5260    
  17  Prefactor     36.920        24.818        .16489E-02   -1.4492    
  18  Prefactor     .10001E-03    19.313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4053        .93341        .65994E-02   -1.5398    
  20  Prefactor     .10000E-03    17.845        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    4.2777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          32.665        24.507        .17527E-02   -1.4564    
  23  norm          .10000E-03    3.4504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    4.2374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.8328        4.7368        .31947E-02   -1.5081    
  28  Normalizat    1.1056        .18181        .37787E-01   -.89572    
  29  Prefactor     .68656        .17249        .61488E-01   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76522e-07
Minuit parameter uncertainties:
  1  6.98303
  2  8.57989
  3  7.47074
  4  4.8661
  5  0.464096
  6  6.25829
  7  4.4001
  8  0.0693621
  9  0.000841403
  10  8.98739e-06
  11  1.91375
  12  2.35519e-06
  13  55.6559
  14  7.35282
  15  4.27547e-07
  16  5.92007
  17  24.8245
  18  0.0010465
  19  0.933413
  20  0.000267613
  21  0.000371034
  22  24.5145
  23  7.05902e-06
  24  0.000361168
  25  1.49281e-05
  26  8.38418e-06
  27  4.73701
  28  0.181912
  29  0.172622
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  8.987e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.866e-01  1.726e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.106e+00  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 3.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393521/likelihoodResults_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.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) = 5792.59527761
delta logL = -0.000903072484107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5792.59437434
delta logL = 2.0339848561e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2062       1.0000          .0000       10.000    
     3 'Normalizat'    1.1056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68657       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   5792.594     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      258 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.668        .17354E-01** at limit **
   2  Index         1.5763        5.6712        .50000       -.16526E-06
   3  Normalizat    1.1056        .87957E-02    .22897E-03   -.24617E-03
   4  Prefactor     .68656        .84528E-02    .27199E-03   -.19340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.57627
  Normalizat = 1.10561
  Prefactor  = 0.686563
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.594     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    271.34        .20523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5763        8.7969        .50000       -.75426    
   3  Normalizat    1.1056        .26723E-01    .45794E-04   -.89572    
   4  Prefactor     .68656        .25681E-01    .10880E-04   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20646e-09
Minuit parameter uncertainties:
  1  0.000150086
  2  817.89
  3  0.0267231
  4  0.025681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393521': 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): 102
logL (Free Index) = 5792.5943715
delta logL = 3.03683464153e-06

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.501e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.576e+00  8.179e+02  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.866e-01  2.568e-02  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.106e+00  2.672e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

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/393521/cmap_HighResolution_514857601_515116801_4FGL_J2235.8-3627_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-03', job_status='DONE', photon_flux_upper_limit='3.93e-08', time_completed='2021-09-28 16:38:12.231435', job_id='393521', GAL2='0.69', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632872292.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1063' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:38:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 393521: <4FGL_J2235.8-3627_daily_bin1063> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1063> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:30 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:31 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:25:31 2021
Terminated at Tue Sep 28 16:38:13 2021
Results reported at Tue Sep 28 16:38:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1063 338.971 -36.4605 514857601 515116801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

