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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1481
RA = 358.322, Dec = 31.5927
tmin = 623203201, tmax = 623462401
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='178435', job_status='RUN', time_executed='2021-09-30 08:14:27.963658', time_epoch_executed='1633014867.96' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178435/ft1_4FGL_J2353.2+3135_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178435/ft1_4FGL_J2353.2+3135_daily_bin1481.fits outfile=/scratch/kocevski/178435/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1481.fits ra=358.322 dec=31.5927 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.94
user 2.72
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.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/178435/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/178435/ltcube_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.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/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits
.....................!
real 12.43
user 12.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/178435/ltcube_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.fits outfile=/scratch/kocevski/178435/expmap_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.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/178435/ltcube_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.fits
.....................!
real 193.59
user 187.93
sys 5.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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2353.2+3135 @ 358.322 31.5927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.fits scfile=/scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits outfile=/scratch/kocevski/178435/cmap_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.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=358.322 yref=31.5927 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.fits scfile=/scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits outfile=/scratch/kocevski/178435/cmap_HighResolution_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.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=358.322 yref=31.5927 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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178435/Model_4FGL_J2353.2+3135_daily_bin1481.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/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.fits........!
real 14.66
user 13.36
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.fits', '/scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits', expMap='/scratch/kocevski/178435/expmap_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.fits', expCube='/scratch/kocevski/178435/ltcube_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/178435/Model_4FGL_J2353.2+3135_daily_bin1481.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2353.2+3135'

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  7.403e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/178435/ft1_filtered_4FGL_J2353.2+3135_daily_bin1481.fits
Spacecraft file(s): /scratch/kocevski/178435/ft2_4FGL_J2353.2+3135_daily_bin1481.fits
Exposure map: /scratch/kocevski/178435/expmap_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.fits
Exposure cube: /scratch/kocevski/178435/ltcube_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/178435/Model_4FGL_J2353.2+3135_daily_bin1481.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 107.744453982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 105.920785422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5327       1.0000         .10000E-03   10000.    
     2 'norm      '    7.4659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2292       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0692       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4539       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4900       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7859       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31976E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    11.278       1.0000         .10000E-03   10000.    
    11 'Prefactor '    193.61       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16366E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.553       1.0000         .10000E-03   10000.    
    14 'norm      '    .34368E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20707E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    885.90       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9690       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5292       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28205       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .19324       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   105.9171     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      329 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5327        1.0062         .0000         .0000    
   2  norm          7.5187        1.0058        .62463E-06   -.29859E-04
   3  Prefactor     2.0116        1.4386        .20015E-04   -.15035E-03
   4  Prefactor     1.0692        1.2155         .0000         .0000    
   5  Prefactor     2.4539        1.0224         .0000         .0000    
   6  Prefactor     4.2617        1.0070         .0000         .0000    
   7  Prefactor     4.4900        1.0063         .0000         .0000    
   8  norm          1.7859        1.0458         .0000         .0000    
   9  Prefactor     .10000E-03    .21076       -.32260E-05** at limit **
  10  norm          11.234        .99903       -.23577E-05    .18479E-04
  11  Prefactor     200.99        1.0185        .11188E-04    .30372E-02
  12  Prefactor     .10000E-03    .20571        .10471E-05** at limit **
  13  Prefactor     42.740        .77400       -.13308E-03   -.21838E-02
  14  norm          .10000E-03    .21130        .70202E-05** at limit **
  15  Prefactor     .10000E-03    .20821        .84427E-05** at limit **
  16  norm          .10000E-03    .20571       -.90127E-07** at limit **
  17  Prefactor     899.16        1.0067        .15170E-04   -.46287E-01
  18  Prefactor     .36430        .22927       -.21375E-03   -.25338E-02
  19  Prefactor     .65977E-01    .88074E-01   -.17461E-03    .91925E-03
  20  Prefactor     .10044E-03    .26760        .19420E-03** at limit **
  21  Normalizat    .10000E-01    .25520       -.20308E-03** at limit **
  22  Prefactor     .20712        .49065        .42828E-05    .44819E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.53275
  norm       = 7.51873
  Prefactor  = 2.01156
  Prefactor  = 1.06918
  Prefactor  = 2.4539
  Prefactor  = 4.26167
  Prefactor  = 4.49002
  norm       = 1.78589
  Prefactor  = 0.0001
  norm       = 11.2339
  Prefactor  = 200.991
  Prefactor  = 0.0001
  Prefactor  = 42.7404
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 899.156
  Prefactor  = 0.364299
  Prefactor  = 0.0659773
  Prefactor  = 0.000100437
  Normalizat = 0.01
  Prefactor  = 0.207119
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   105.9171     FROM HESSE     STATUS=FAILED        11 CALLS      340 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          536.32        531.74         .0000       -1.5282    
   2  norm          7.5187        1.0058        .62463E-06   -1.5159    
   3  Prefactor     2.0116        1.4386        .20015E-04   -1.5424    
   4  Prefactor     1.0692        1.2155         .0000       -1.5501    
   5  Prefactor     2.4539        1.0224         .0000       -1.5395    
   6  Prefactor     4.2617        1.0070         .0000       -1.5295    
   7  Prefactor     4.4900        1.0063         .0000       -1.5284    
   8  norm          1.7859        1.0458         .0000       -1.5441    
   9  Prefactor     .10000E-03    .21076       -.32260E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.234        .99903       -.23577E-05   -1.5037    
  11  Prefactor     200.99        1.0185        .11188E-04   -1.2863    
  12  Prefactor     .10000E-03    .20571        .10471E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.740        .77400       -.13308E-03   -1.4400    
  14  norm          .10000E-03    .21130        .70202E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .20821        .84427E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571       -.90127E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     899.16        1.0067        .15170E-04   -.96171    
  18  Prefactor     .36430        .22927       -.21375E-03   -1.5829    
  19  Prefactor     .65977E-01    .88074E-01   -.17461E-03   -1.5657    
  20  Prefactor     .10044E-03    .26760        .19420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .25520       -.20308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .20712        .49065        .42828E-05   -1.2820    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.70243e-10
Minuit parameter uncertainties:
  1  1.00622
  2  1.00579
  3  1.43861
  4  1.21551
  5  1.02243
  6  1.00705
  7  1.00634
  8  1.04584
  9  4.5435e-06
  10  0.99903
  11  1.0185
  12  2.35545e-06
  13  0.774005
  14  8.57653e-06
  15  8.18523e-06
  16  4.56668e-07
  17  1.00672
  18  0.229275
  19  0.0880742
  20  0.000683847
  21  2.2252e-06
  22  0.500918
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 105.917069456

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.643e-01  2.293e-01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  2.071e-01  5.009e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.000e-02  2.225e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.419972089438

TS (Fixed Index): -0.00
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.84e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178435/likelihoodResults_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.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) = 105.917620579
delta logL = -0.000551122346565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 105.917620401
delta logL = -0.000550944328936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.6103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   105.9176     FROM MIGRAD    STATUS=CONVERGED     25 CALLS       90 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 20.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.7546        8.7008       -.20502        .78559E-06
                               ERR DEF=  .500    
Final values: 
  Index      = 1.75464
 **********
 **   18 **HESSE 
 **********

 FCN=   105.9176     FROM HESSE     STATUS=OK            11 CALLS      101 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.7546        5.3036        .50000       -.70636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96099e-10
Minuit parameter uncertainties:
  1  150.542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178435': 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) = 105.917615116
delta logL = -0.000545659826201

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.639e-01  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
484        Index:  1.755e+00  1.505e+02  0.000e+00  1.000e+01 (-1.000e+00)
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  2.057e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.030e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): -0.00
Ra Dec: 358.322 31.593

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/178435/cmap_HighResolution_623203201_623462401_4FGL_J2353.2+3135_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.84e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-30 08:19:44.723864', job_id='178435', GAL2='0.21', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633015184.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.21', dlogl='-5.46e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1481' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:19:44 PDT 2021

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 176068: <4FGL_J2353.2+3135_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1481> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 08:05:15 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:05:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:05:17 2021
Terminated at Thu Sep 30 08:11:46 2021
Results reported at Thu Sep 30 08:11:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1481 358.322 31.5927 623203201 623462401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2353.2+3135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   314.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             436.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   388 sec.
    Turnaround time :                            391 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 178435: <4FGL_J2353.2+3135_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1481> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 08:11:30 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:11:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:11:31 2021
Terminated at Thu Sep 30 08:19:45 2021
Results reported at Thu Sep 30 08:19:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1481 358.322 31.5927 623203201 623462401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2353.2+3135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   314.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             374.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   494 sec.
    Turnaround time :                            495 sec.

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

