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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1130
RA = 338.799, Dec = -6.3955
tmin = 532224001, tmax = 532483201
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='377269', job_status='RUN', time_executed='2021-09-28 15:36:07.105695', time_epoch_executed='1632868567.11' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377269/ft1_4FGL_J2235.1-0623_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377269/ft1_4FGL_J2235.1-0623_daily_bin1130.fits outfile=/scratch/kocevski/377269/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1130.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=532224001.0 tmax=532483201.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.49
user 3.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.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/377269/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1130.fits evtable="EVENTS" outfile="/scratch/kocevski/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/377269/ltcube_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.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/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits
.....................!
real 11.93
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/377269/ltcube_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.fits outfile=/scratch/kocevski/377269/expmap_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.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/377269/ltcube_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.fits
.....................!
real 191.06
user 185.54
sys 5.19

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

Setting source of interest to:
4FGL J2235.1-0623 @ 338.799 -6.3955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.fits scfile=/scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits outfile=/scratch/kocevski/377269/cmap_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.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.799 yref=-6.3955 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/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.fits scfile=/scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits outfile=/scratch/kocevski/377269/cmap_HighResolution_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.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.799 yref=-6.3955 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/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377269/Model_4FGL_J2235.1-0623_daily_bin1130.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/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.fits.....................!
real 56.13
user 54.80
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.fits', '/scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits', expMap='/scratch/kocevski/377269/expmap_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.fits', expCube='/scratch/kocevski/377269/ltcube_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377269/Model_4FGL_J2235.1-0623_daily_bin1130.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.1-0623'

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/377269/ft1_filtered_4FGL_J2235.1-0623_daily_bin1130.fits
Spacecraft file(s): /scratch/kocevski/377269/ft2_4FGL_J2235.1-0623_daily_bin1130.fits
Exposure map: /scratch/kocevski/377269/expmap_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.fits
Exposure cube: /scratch/kocevski/377269/ltcube_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377269/Model_4FGL_J2235.1-0623_daily_bin1130.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) = 5723.66406913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.811       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16716E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.349       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.168       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9568       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11400E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12814E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    96.710       1.0000         .10000E-03   10000.    
    14 'norm      '    22.103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2337       1.0000         .10000E-03   10000.    
    19 'Prefactor '    186.95       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .38052       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   5723.379     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     2873 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2636        7.2618        .13657E-02    .37493E-03
   2  Prefactor     .10000E-03    12.596        .18142E-02** at limit **
   3  Prefactor     14.799        12.259        .10407E-03    .32990E-04
   4  Prefactor     .10000E-03    12.946        .81069E-01** at limit **
   5  Prefactor     .10000E-03    42.137        .36285E-03** at limit **
   6  Prefactor     8.4271        12.421        .13814E-03    .26005E-04
   7  Prefactor     15.482        66.726        .10190E-03    .14392E-04
   8  Prefactor     10.350        5.8084        .12277E-03    .58986E-04
   9  Prefactor     52.205        71.790        .55528E-04    .32144E-04
  10  norm          6.9587        4.4920        .12228E-03    .49646E-04
  11  Prefactor     .10000E-03    48.017        .18142E-02** at limit **
  12  norm          .10000E-03    3.2381        .11872E-02** at limit **
  13  Prefactor     96.763        80.041        .40873E-04    .12283E-03
  14  norm          22.105        7.1301        .51389E-04    .53050E-03
  15  Prefactor     .10000E-03    80.549        .18142E-02** at limit **
  16  Prefactor     5.4191        16.276        .17255E-03    .16867E-04
  17  Prefactor     .10000E-03    8.0307        .18142E-02** at limit **
  18  norm          1.2341        19.728        .20226E-02    .40116E-03
  19  Prefactor     186.96        86.185        .14766E-03    .50152E-04
  20  Prefactor     .10000E-03    12.802        .18142E-02** at limit **
  21  Normalizat    .38043        .27985        .50556E-03    .14932E-04
  22  Prefactor     1.2281        .17762        .19440E-03    .18538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26356
  Prefactor  = 0.0001
  Prefactor  = 14.799
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 8.42706
  Prefactor  = 15.4825
  Prefactor  = 10.3502
  Prefactor  = 52.2054
  norm       = 6.95867
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 96.7629
  norm       = 22.105
  Prefactor  = 0.0001
  Prefactor  = 5.41906
  Prefactor  = 0.0001
  norm       = 1.23411
  Prefactor  = 186.956
  Prefactor  = 0.0001
  Normalizat = 0.380427
  Prefactor  = 1.22813
 **********
 **   18 **HESSE 
 **********

 FCN=   5723.379     FROM HESSE     STATUS=OK           334 CALLS     3207 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2636        7.2575        .27314E-03   -1.5407    
   2  Prefactor     .10000E-03    12.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.799        12.258        .41629E-05   -1.4938    
   4  Prefactor     .10000E-03    12.382        .84115E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.140        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.4271        12.418        .55258E-05   -1.5127    
   7  Prefactor     15.482        66.521        .40759E-05   -1.4921    
   8  Prefactor     10.350        5.8078        .49109E-05   -1.5064    
   9  Prefactor     52.205        71.772        .11106E-04   -1.4262    
  10  norm          6.9587        4.4916        .48913E-05   -1.5180    
  11  Prefactor     .10000E-03    48.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.2564        .23744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     96.763        80.124        .81747E-05   -1.3737    
  14  norm          22.105        7.1381        .20556E-05   -1.4767    
  15  Prefactor     .10000E-03    80.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4191        16.275        .69021E-05   -1.5242    
  17  Prefactor     .10000E-03    8.0311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2341        19.694        .40451E-03   -1.5486    
  19  Prefactor     186.96        86.175        .29532E-04   -1.2965    
  20  Prefactor     .10000E-03    12.804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .38043        .27969        .20222E-04   -1.1833    
  22  Prefactor     1.2281        .17758        .77761E-05   -.85470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09642e-09
Minuit parameter uncertainties:
  1  7.26029
  2  5.63019e-05
  3  12.2604
  4  0.000398657
  5  3.19396e-05
  6  12.4221
  7  64.3057
  8  5.80811
  9  71.8916
  10  4.49185
  11  8.93802e-05
  12  0.00020967
  13  80.2141
  14  7.13839
  15  0.00018731
  16  16.288
  17  6.92783e-06
  18  9.86336
  19  86.2333
  20  3.38373e-06
  21  0.280719
  22  0.177663
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  8.938e-05  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.228e+00  1.777e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  3.804e-01  2.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377269/likelihoodResults_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.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) = 5723.3795071
delta logL = -9.91051138044e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5723.37940884
delta logL = -8.41767359816e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6737       1.0000          .0000       10.000    
     3 'Normalizat'    .38042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   5723.379     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      283 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10358E-03    4.6652        .18142E-01** at limit **
   2  Index         2.5821        7.9754        .50000        .81684E-05
   3  Normalizat    .38043        .22479E-02    .50559E-03   -.94441E-06
   4  Prefactor     1.2281        .15077E-02    .19440E-03   -.98247E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103576
  Index      = 2.58205
  Normalizat = 0.380427
  Prefactor  = 1.22813
 **********
 **   18 **HESSE 
 **********

 FCN=   5723.379     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10358E-03    101.97        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5821        5.5072        .50000       -.50475    
   3  Normalizat    .38043        .10522E-01    .20224E-04   -1.1833    
   4  Prefactor     1.2281        .70570E-02    .77761E-05   -.85470    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17566e-09
Minuit parameter uncertainties:
  1  0.0382559
  2  358.579
  3  0.0105221
  4  0.00705701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377269': 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) = 5723.37940864
delta logL = -6.41376573185e-07

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.036e-04  3.826e-02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.582e+00  3.586e+02  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.228e+00  7.057e-03  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  3.804e-01  1.052e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.799 -6.396

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/377269/cmap_HighResolution_532224001_532483201_4FGL_J2235.1-0623_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-28 15:46:31.243660', job_id='377269', GAL2='1.23', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1632869191.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-6.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1130' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 377269: <4FGL_J2235.1-0623_daily_bin1130> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin1130> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:35:58 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:35:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:35:59 2021
Terminated at Tue Sep 28 15:46:32 2021
Results reported at Tue Sep 28 15:46:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1130 338.799 -6.3955 532224001 532483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.1-0623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             387.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            634 sec.

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

