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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin964
RA = 145.244, Dec = -13.5891
tmin = 489196801, tmax = 489456001
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='417889', job_status='RUN', time_executed='2021-08-31 21:49:57.748165', time_epoch_executed='1630471797.75' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='964'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417889

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417889/ft1_4FGL_J0940.9-1335_daily_bin964.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417889/ft1_4FGL_J0940.9-1335_daily_bin964.fits outfile=/scratch/kocevski/417889/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin964.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=489196801.0 tmax=489456001.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 4.94
user 4.70
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.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/417889/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin964.fits evtable="EVENTS" outfile="/scratch/kocevski/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.fits" evtable="EVENTS" scfile=/scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits sctable="SC_DATA" outfile=/scratch/kocevski/417889/ltcube_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.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/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits
.....................!
real 12.09
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.fits evtable="EVENTS" scfile=/scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits sctable="SC_DATA" expcube=/scratch/kocevski/417889/ltcube_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.fits outfile=/scratch/kocevski/417889/expmap_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.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/417889/ltcube_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.fits
.....................!
real 190.47
user 185.30
sys 4.61

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

Setting source of interest to:
4FGL J0940.9-1335 @ 145.244 -13.5891

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.fits scfile=/scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits outfile=/scratch/kocevski/417889/cmap_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.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=145.244 yref=-13.5891 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.fits scfile=/scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits outfile=/scratch/kocevski/417889/cmap_HighResolution_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.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=145.244 yref=-13.5891 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.fits evtable="EVENTS" scfile=/scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/417889/Model_4FGL_J0940.9-1335_daily_bin964.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/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.fits......................!
real 45.48
user 44.16
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.fits', '/scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits', expMap='/scratch/kocevski/417889/expmap_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.fits', expCube='/scratch/kocevski/417889/ltcube_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/417889/Model_4FGL_J0940.9-1335_daily_bin964.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0940.9-1335'

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  2.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.301e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/417889/ft1_filtered_4FGL_J0940.9-1335_daily_bin964.fits
Spacecraft file(s): /scratch/kocevski/417889/ft2_4FGL_J0940.9-1335_daily_bin964.fits
Exposure map: /scratch/kocevski/417889/expmap_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.fits
Exposure cube: /scratch/kocevski/417889/ltcube_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/417889/Model_4FGL_J0940.9-1335_daily_bin964.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) = 3905.90910761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8452       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53539       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52967E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9111       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11070E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.0303       1.0000         .10000E-03   10000.    
    11 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .60283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38473E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6775       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .25355       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.5151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+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=   3905.881     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     2050 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8451        3.4510        .10707E-03    .78040E-05
   2  Prefactor     .10000E-03    11.426        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.2960        .92473E-03** at limit **
   4  Prefactor     .10000E-03    19.056        .18142E-02** at limit **
   5  Prefactor     .36550        72.347        .13377        .66225E-04
   6  Prefactor     .10000E-03    438.78        .38244E-03** at limit **
   7  Prefactor     5.7847        85.938        .16517E-03   -.11185E-04
   8  Prefactor     47.831        58.153        .58041E-04   -.32143E-04
   9  Prefactor     .10000E-03    11.767        .18142E-02** at limit **
  10  norm          8.0181        12.484        .14149E-03   -.63478E-04
  11  norm          .10000E-03    2.0083        .86403E-03** at limit **
  12  norm          .10000E-03    2.0214        .17108E-03** at limit **
  13  norm          .10000E-03    10.146        .18142E-02** at limit **
  14  norm          .60149        1.2737        .11253E-02    .18939E-03
  15  Prefactor     .10001E-03    629.96        .42563E-03** at limit **
  16  Prefactor     6.6816        10.545        .15529E-03   -.10726E-04
  17  Normalizat    .25395        .29831        .57163E-03   -.69509E-05
  18  Prefactor     1.5149        .19872        .16659E-03   -.48625E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.84513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.365503
  Prefactor  = 0.000100001
  Prefactor  = 5.78466
  Prefactor  = 47.8308
  Prefactor  = 0.0001
  norm       = 8.0181
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.60149
  Prefactor  = 0.000100005
  Prefactor  = 6.68163
  Normalizat = 0.253953
  Prefactor  = 1.51487
 **********
 **   18 **HESSE 
 **********

 FCN=   3905.881     FROM HESSE     STATUS=OK           238 CALLS     2288 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8451        3.4509        .42829E-05   -1.5316    
   2  Prefactor     .10000E-03    11.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2960        .18495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .36550        69.026        .13786       -1.5587    
   6  Prefactor     .10000E-03    438.83        .76487E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7847        85.862        .66068E-05   -1.5227    
   8  Prefactor     47.831        58.148        .11608E-04   -1.4324    
   9  Prefactor     .10000E-03    11.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.0181        12.482        .56595E-05   -1.5142    
  11  norm          .10000E-03    2.0083        .17281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0215        .34216E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .60149        1.2728        .45013E-04   -1.5553    
  15  Prefactor     .10001E-03    630.00        .85125E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.6816        10.545        .62114E-05   -1.5191    
  17  Normalizat    .25395        .29797        .22865E-04   -1.2570    
  18  Prefactor     1.5149        .19853        .66634E-05   -.77124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50705e-10
Minuit parameter uncertainties:
  1  3.45112
  2  2.24923e-05
  3  6.11407e-07
  4  1.07255e-05
  5  10.0561
  6  0.00160148
  7  44.6494
  8  58.2174
  9  1.32577e-05
  10  12.4861
  11  1.37644e-06
  12  9.38691e-06
  13  1.42485e-05
  14  1.2729
  15  0.00372375
  16  10.548
  17  0.299858
  18  0.198627
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  8.018e+00  1.249e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.301e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.515e+00  1.986e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  2.540e-01  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 145.244 -13.589
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/417889/likelihoodResults_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.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) = 3905.84728433
delta logL = 0.0341676434318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3905.84546301
delta logL = 0.0359889623737

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3905.845     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5610        12.878        .36436E-02    .24016E-02
   2  alpha         2.6055        1.3097        .41195E-01    .28371E-03
   3  Normalizat    .24079        .36614        .13289        .44528E-04
   4  Prefactor     1.5193        .24440        .29590E-01    .60775E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.561
  alpha      = 2.60549
  Normalizat = 0.240786
  Prefactor  = 1.51932
 **********
 **   18 **HESSE 
 **********

 FCN=   3905.845     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5610        11.218        .72871E-03   -1.5158    
   2  alpha         2.6055        1.1421        .82390E-02    .42207E-01
   3  Normalizat    .24079        .29203        .58649E-03   -1.2656    
   4  Prefactor     1.5193        .19566        .16636E-03   -.77000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17808e-11
Minuit parameter uncertainties:
  1  11.2209
  2  1.18619
  3  0.293901
  4  0.195759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417889': 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) = 3905.84545758
delta logL = 0.0359943973176

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  7.561e+00  1.122e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.605e+00  1.186e+00  0.000e+00  5.000e+00 ( 1.000e+00)
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.519e+00  1.958e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  2.408e-01  2.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
Ra Dec: 145.244 -13.589

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/417889/cmap_HighResolution_489196801_489456001_4FGL_J0940.9-1335_daily_bin964.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-05', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2021-08-31 21:57:56.858754', job_id='417889', GAL2='1.52', fit_tolerance='1e-08', EG2='0.24', EG='0.25', time_epoch_completed='1630472276.86', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='3.60e-02', ts2='0.73', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='964' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:57:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 417889: <4FGL_J0940.9-1335_daily_bin964> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin964> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 21:45:43 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:45:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 21:45:45 2021
Terminated at Tue Aug 31 21:57:57 2021
Results reported at Tue Aug 31 21:57:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin964 145.244 -13.5891 489196801 489456001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0940.9-1335 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

