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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin508
RA = 145.244, Dec = -13.5891
tmin = 371001601, tmax = 371260801
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='414811', job_status='RUN', time_executed='2021-08-31 21:38:50.060390', time_epoch_executed='1630471130.06' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414811

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414811/ft1_4FGL_J0940.9-1335_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414811/ft1_4FGL_J0940.9-1335_daily_bin508.fits outfile=/scratch/kocevski/414811/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin508.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.39
user 6.09
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.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/414811/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/414811/ltcube_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.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/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits
.....................!
real 11.52
user 11.19
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/414811/ltcube_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.fits outfile=/scratch/kocevski/414811/expmap_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.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/414811/ltcube_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.fits
.....................!
real 189.54
user 184.87
sys 4.28

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/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.fits scfile=/scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits outfile=/scratch/kocevski/414811/cmap_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.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/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.fits scfile=/scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits outfile=/scratch/kocevski/414811/cmap_HighResolution_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414811/Model_4FGL_J0940.9-1335_daily_bin508.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/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.fits.....................!
real 65.22
user 63.89
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.fits', '/scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits', expMap='/scratch/kocevski/414811/expmap_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.fits', expCube='/scratch/kocevski/414811/ltcube_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414811/Model_4FGL_J0940.9-1335_daily_bin508.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/414811/ft1_filtered_4FGL_J0940.9-1335_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/414811/ft2_4FGL_J0940.9-1335_daily_bin508.fits
Exposure map: /scratch/kocevski/414811/expmap_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.fits
Exposure cube: /scratch/kocevski/414811/ltcube_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414811/Model_4FGL_J0940.9-1335_daily_bin508.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) = 6272.23637929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0032       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4864       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6851       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.298       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.284       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12941       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.6789       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1270       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .86014       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.

 FCN=   6272.212     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1760 TOTAL
                     EDM=   .33E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0032        3.0237       -.79598E-07   -.10318E-04
   2  Prefactor     7.4845        12.511        .15075E-05    .18716E-06
   3  Prefactor     2.6833        1.4301       -.12158E-07   -.28025E-03
   4  Prefactor     12.294        16.509        .25348E-05    .34635E-05
   5  Prefactor     .10000E-03    59.286        .34874E-06** at limit **
   6  Prefactor     12.254        33.543       -.11914E-05   -.41656E-05
   7  Prefactor     .10000E-03    18.579       -.85691E-06** at limit **
   8  Prefactor     .10000E-03    10.721        .36975E-06** at limit **
   9  Prefactor     .10000E-03    11.784       -.10300E-06** at limit **
  10  norm          .10000E-03    2.0541       -.20995E-07** at limit **
  11  norm          .10000E-03    1.4455       -.49728E-07** at limit **
  12  norm          .10000E-03    .44847        .46634E-07** at limit **
  13  norm          8.6763        11.222        .61742E-07   -.43680E-04
  14  norm          1.1267        1.1213        .71399E-08   -.10450E-04
  15  Prefactor     .10000E-03    27.021        .10170E-06** at limit **
  16  Prefactor     .10000E-03    2.4345       -.18725E-07** at limit **
  17  Normalizat    1.1273        .18790       -.42664E-07    .34517E-04
  18  Prefactor     .86007        .11653        .19893E-06    .15125E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.00315
  Prefactor  = 7.48448
  Prefactor  = 2.68326
  Prefactor  = 12.2937
  Prefactor  = 0.0001
  Prefactor  = 12.2543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.6763
  norm       = 1.12673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12729
  Prefactor  = 0.860072
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.212     FROM HESSE     STATUS=OK           254 CALLS     2014 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0032        3.0249        .10285E-03   -1.5261    
   2  Prefactor     7.4845        12.481        .14658E-03   -1.5161    
   3  Prefactor     2.6833        5.9690        .12433E-02   -1.5380    
   4  Prefactor     12.294        16.493        .11423E-03   -1.5007    
   5  Prefactor     .10000E-03    61.393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.254        33.580        .11429E-03   -1.5008    
   7  Prefactor     .10000E-03    18.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.104        .75807E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0587        .11084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4666        .92982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .45012        .51784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.6763        11.467        .68032E-03   -1.5119    
  14  norm          1.1267        1.0941        .80568E-04   -1.5496    
  15  Prefactor     .10000E-03    27.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4389        .12068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1273        .22355        .26684E-03   -.88880    
  18  Prefactor     .86007        .13812        .18981E-03   -.97551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03234e-10
Minuit parameter uncertainties:
  1  3.02495
  2  12.4851
  3  5.97036
  4  16.4987
  5  3.12944e-05
  6  33.6318
  7  9.66138e-06
  8  1.16044e-06
  9  0.000376343
  10  5.82716e-07
  11  5.95867e-07
  12  1.20955e-07
  13  11.4698
  14  1.09415
  15  2.38394e-06
  16  2.18024e-07
  17  0.223736
  18  0.138176
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  5.827e-07  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:  8.601e-01  1.382e-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:  1.127e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.244 -13.589
Photon Flux Upper Limit: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414811/likelihoodResults_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.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) = 6272.21471396
delta logL = -0.00230164286404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6272.21241232
delta logL = 1.56887836056e-09

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 'alpha     '    2.3018       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86007       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6272.212     FROM MIGRAD    STATUS=FAILED        83 CALLS      232 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    2.8571        .11085E-02** at limit **
   2  alpha         2.3349        3.7920        .16526       -.16179E-05
   3  Normalizat    1.1273        .21629        .26684E-03    .63482E-05
   4  Prefactor     .86007        .13713        .18981E-03    .14195E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6272.212     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      355 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    2.8571        .17666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3349        3.7920        .70024E-03   -.66093E-01
   3  Normalizat    1.1273        .21629        .10189E-03   -.88880    
   4  Prefactor     .86007        .13713        .63182E-04   -.97551    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6272.212     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      382 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0626        .22169E-03** at limit **
   2  alpha         2.3741        3.1186        .66106E-02    .71886E-07
   3  Normalizat    1.1273        .21648        .10673E-04   -.12995E-04
   4  Prefactor     .86007        .13725        .75925E-05   -.17968E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.37408
  Normalizat = 1.12729
  Prefactor  = 0.860072
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.212     FROM HESSE     STATUS=OK            23 CALLS      405 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0625        .44338E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3741        2.7769        .13221E-02   -.50391E-01
   3  Normalizat    1.1273        .21647        .21347E-05   -.88880    
   4  Prefactor     .86007        .13724        .15185E-05   -.97551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37195e-10
Minuit parameter uncertainties:
  1  3.86456e-05
  2  242.351
  3  0.216644
  4  0.137297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414811': 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) = 6272.21241227
delta logL = 4.464709491e-08

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  3.865e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.374e+00  2.424e+02  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:  8.601e-01  1.373e-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:  1.127e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/414811/cmap_HighResolution_371001601_371260801_4FGL_J0940.9-1335_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-08-31 21:48:31.034110', job_id='414811', GAL2='0.86', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630471711.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='508' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 414811: <4FGL_J0940.9-1335_daily_bin508> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin508> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 21:35:46 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:35:47 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:35:47 2021
Terminated at Tue Aug 31 21:48:31 2021
Results reported at Tue Aug 31 21:48:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin508 145.244 -13.5891 371001601 371260801 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 :                                   578.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            765 sec.

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

