/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 170 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2350.6-3005_daily_bin113
RA = 357.665, Dec = -30.087
tmin = 268617601, tmax = 268876801
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='156668', job_status='RUN', time_executed='2021-09-30 07:03:37.088990', time_epoch_executed='1633010617.09' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156668

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156668/ft1_4FGL_J2350.6-3005_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156668/ft1_4FGL_J2350.6-3005_daily_bin113.fits outfile=/scratch/kocevski/156668/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin113.fits ra=357.665 dec=-30.087 rad=12.0 tmin=268617601.0 tmax=268876801.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 1.52
user 1.35
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.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/156668/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin113.fits evtable="EVENTS" outfile="/scratch/kocevski/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/156668/ltcube_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.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/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits
.....................!
real 12.52
user 12.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/156668/ltcube_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.fits outfile=/scratch/kocevski/156668/expmap_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.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/156668/ltcube_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.fits
.....................!
real 189.60
user 184.51
sys 4.60

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

Setting source of interest to:
4FGL J2350.6-3005 @ 357.665 -30.087

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.fits scfile=/scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits outfile=/scratch/kocevski/156668/cmap_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.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=357.665 yref=-30.087 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.fits scfile=/scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits outfile=/scratch/kocevski/156668/cmap_HighResolution_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.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=357.665 yref=-30.087 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156668/Model_4FGL_J2350.6-3005_daily_bin113.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/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.fits.....................!
real 43.79
user 42.38
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.fits', '/scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits', expMap='/scratch/kocevski/156668/expmap_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.fits', expCube='/scratch/kocevski/156668/ltcube_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/156668/Model_4FGL_J2350.6-3005_daily_bin113.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2350.6-3005'

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  8.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.022e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/156668/ft1_filtered_4FGL_J2350.6-3005_daily_bin113.fits
Spacecraft file(s): /scratch/kocevski/156668/ft2_4FGL_J2350.6-3005_daily_bin113.fits
Exposure map: /scratch/kocevski/156668/expmap_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.fits
Exposure cube: /scratch/kocevski/156668/ltcube_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/156668/Model_4FGL_J2350.6-3005_daily_bin113.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) = 5539.32831791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.664       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24160       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .28558E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .29685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5287       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2631       1.0000         .10000E-03   10000.    
    10 'norm      '    .79320E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1761       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10646E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0112       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.391       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3551       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .41781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5539.323     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     1882 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8281       -.18214E-05** at limit **
   2  Prefactor     34.664        1.0364       -.18099E-06    .57883E-03
   3  Prefactor     .23656        .55469       -.83731E-06    .38580E-05
   4  Prefactor     14.046        1.1621       -.60495E-06    .49770E-03
   5  Prefactor     .10000E-03    3.9344       -.10016E-06** at limit **
   6  norm          .10006E-03    165.99       -.12430E-04** at limit **
   7  norm          .29684        .30523       -.56168E-07    .30741E-03
   8  Prefactor     4.5282        1.0594       -.26166E-06   -.36594E-03
   9  norm          5.2628        4.9034       -.61198E-05   -.25545E-02
  10  norm          .10046E-03    37.699       -.42840E-04** at limit **
  11  Prefactor     .10015E-03    9.7097       -.13645E-05** at limit **
  12  norm          4.1746        4.7837        .64605E-05    .18192E-02
  13  norm          1.5150        1.7828        .40507E-06    .92931E-04
  14  Prefactor     .10001E-03    8.4422        .43084E-05** at limit **
  15  norm          .10003E-03    9.2048       -.44550E-05** at limit **
  16  Prefactor     .10005E-03    47.498        .14789E-04** at limit **
  17  Prefactor     .10022E-03    7.8806        .83906E-07** at limit **
  18  Prefactor     8.0108        1.0493       -.31063E-06   -.79052E-04
  19  Prefactor     13.394        1.0767        .25025E-06   -.31823E-03
  20  Normalizat    1.3551        .17939       -.42201E-05   -.15044E-03
  21  Prefactor     .41789        .19054        .36278E-05   -.14406E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 34.6642
  Prefactor  = 0.236562
  Prefactor  = 14.0461
  Prefactor  = 0.0001
  norm       = 0.000100057
  norm       = 0.296837
  Prefactor  = 4.52821
  norm       = 5.26284
  norm       = 0.000100463
  Prefactor  = 0.000100146
  norm       = 4.17457
  norm       = 1.515
  Prefactor  = 0.000100007
  norm       = 0.000100028
  Prefactor  = 0.000100053
  Prefactor  = 0.000100224
  Prefactor  = 8.0108
  Prefactor  = 13.394
  Normalizat = 1.35505
  Prefactor  = 0.417887
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.323     FROM HESSE     STATUS=OK           383 CALLS     2265 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.664        57.135        .17016E-02   -1.4530    
   3  Prefactor     .23656        2.0478        .66766E-01   -1.5611    
   4  Prefactor     14.046        18.188        .26722E-02   -1.4958    
   5  Prefactor     .10000E-03    3.9289        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10006E-03    5.1953        .55006E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .29684        .30301        .92002E-02   -1.5599    
   8  Prefactor     4.5282        8.3497        .47295E-02   -1.5282    
   9  norm          5.2628        5.1251        .43801E-02   -1.5249    
  10  norm          .10046E-03    5.7556        .55536E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10015E-03    12.661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1746        5.1463        .49305E-02   -1.5299    
  13  norm          1.5150        1.8083        .86827E-02   -1.5462    
  14  Prefactor     .10001E-03    8.5814        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10003E-03    3.8126        .45258E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10005E-03    48.535        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10022E-03    12.054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0108        7.3573        .35414E-02   -1.5142    
  19  Prefactor     13.394        40.621        .27365E-02   -1.4976    
  20  Normalizat    1.3551        .17017        .31885E-01   -.81938    
  21  Prefactor     .41789        .17440        .74694E-01   -1.1590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03657e-07
Minuit parameter uncertainties:
  1  5.20608e-05
  2  57.2251
  3  1.39181
  4  18.1953
  5  7.19389e-06
  6  0.00108953
  7  0.303015
  8  8.35189
  9  5.12551
  10  0.00326501
  11  0.00272317
  12  5.14686
  13  1.80834
  14  0.000485198
  15  0.000650362
  16  0.00320548
  17  0.00328885
  18  7.35817
  19  40.7049
  20  0.170237
  21  0.174617
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.002e-04  3.289e-03  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.022e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  4.179e-01  1.746e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.355e+00  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.665 -30.087
Photon Flux Upper Limit: 3.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156668/likelihoodResults_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.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) = 5539.32366271
delta logL = -0.000391268044041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5539.32327139
delta logL = 4.86552380607e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0028       1.0000          .0000       10.000    
     3 'Normalizat'    1.3551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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=   5539.323     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10416E-03    6.5436        .18142E-01** at limit **
   2  Index         1.8404        5.8880        .50000        .84320E-05
   3  Normalizat    1.3551        .26427E-02    .18185E-03    .33759E-05
   4  Prefactor     .41789        .28135E-02    .33079E-03   -.27495E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010416
  Index      = 1.8404
  Normalizat = 1.35505
  Prefactor  = 0.417888
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.323     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10416E-03    184.76        .26835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8404        6.2713        .50000       -.68403    
   3  Normalizat    1.3551        .14273E-01    .72740E-05   -.81938    
   4  Prefactor     .41789        .15195E-01    .13232E-04   -1.1590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.34624e-09
Minuit parameter uncertainties:
  1  0.0556215
  2  923.068
  3  0.0142733
  4  0.0151953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156668': 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) = 5539.3232711
delta logL = 3.35867298418e-07

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.042e-04  5.562e-02  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  1.840e+00  9.231e+02  0.000e+00  1.000e+01 (-1.000e+00)
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  4.179e-01  1.520e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.355e+00  1.427e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.665 -30.087

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/156668/cmap_HighResolution_268617601_268876801_4FGL_J2350.6-3005_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-03', job_status='DONE', photon_flux_upper_limit='3.32e-08', time_completed='2021-09-30 07:12:56.587039', job_id='156668', GAL2='0.42', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1633011176.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='3.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='113' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:12:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 156668: <4FGL_J2350.6-3005_daily_bin113> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin113> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 07:00:36 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:00:38 2021
Terminated at Thu Sep 30 07:12:59 2021
Results reported at Thu Sep 30 07:12:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin113 357.665 -30.087 268617601 268876801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2350.6-3005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   557.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            743 sec.

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

