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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1271
RA = 145.244, Dec = -13.5891
tmin = 568771201, tmax = 569030401
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='419640', job_status='RUN', time_executed='2021-08-31 21:53:00.753894', time_epoch_executed='1630471980.75' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419640/ft1_4FGL_J0940.9-1335_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419640/ft2_4FGL_J0940.9-1335_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419640/ft1_4FGL_J0940.9-1335_daily_bin1271.fits outfile=/scratch/kocevski/419640/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1271.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=568771201.0 tmax=569030401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.55
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419640/ft1_filtered_4FGL_J0940.9-1335_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/419640/ft2_4FGL_J0940.9-1335_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/419640/ltcube_568771201_569030401_4FGL_J0940.9-1335_daily_bin1271.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/419640/ft2_4FGL_J0940.9-1335_daily_bin1271.fits
.....................!
real 12.16
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419640/ft1_filtered_4FGL_J0940.9-1335_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/419640/ft2_4FGL_J0940.9-1335_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/419640/ltcube_568771201_569030401_4FGL_J0940.9-1335_daily_bin1271.fits outfile=/scratch/kocevski/419640/expmap_568771201_569030401_4FGL_J0940.9-1335_daily_bin1271.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/419640/ltcube_568771201_569030401_4FGL_J0940.9-1335_daily_bin1271.fits
.....................!
real 191.73
user 185.56
sys 5.63

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/419640/ft1_filtered_4FGL_J0940.9-1335_daily_bin1271.fits scfile=/scratch/kocevski/419640/ft2_4FGL_J0940.9-1335_daily_bin1271.fits outfile=/scratch/kocevski/419640/cmap_568771201_569030401_4FGL_J0940.9-1335_daily_bin1271.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419640/ft1_filtered_4FGL_J0940.9-1335_daily_bin1271.fits scfile=/scratch/kocevski/419640/ft2_4FGL_J0940.9-1335_daily_bin1271.fits outfile=/scratch/kocevski/419640/cmap_HighResolution_568771201_569030401_4FGL_J0940.9-1335_daily_bin1271.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419640/ft1_filtered_4FGL_J0940.9-1335_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/419640/ft2_4FGL_J0940.9-1335_daily_bin1271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419640/Model_4FGL_J0940.9-1335_daily_bin1271.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/419640/ft1_filtered_4FGL_J0940.9-1335_daily_bin1271.fits.....................!
real 85.88
user 83.55
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.680       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10246E-03   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      '    1.3251       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7215       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .90403       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0694       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=   8492.484     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1474 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .77715        .90712E-02** at limit **
   2  Prefactor     .10000E-03    3.4878        .90712E-02** at limit **
   3  Prefactor     .10000E-03    5.8064        .90712E-02** at limit **
   4  Prefactor     10.679        14.040        .30649E-02   -.10508E-03
   5  Prefactor     5.3509        40.919        .43431E-02    .23355E-03
   6  Prefactor     .10003E-03    43.686        .90712E-02** at limit **
   7  Prefactor     .10007E-03    12.469        .90712E-02** at limit **
   8  Prefactor     .10000E-03    8.4274        .90712E-02** at limit **
   9  Prefactor     .10001E-03    18.792        .90712E-02** at limit **
  10  norm          .10000E-03    2.3581        .90712E-02** at limit **
  11  norm          .10000E-03    .86177        .90712E-02** at limit **
  12  norm          1.3251        1.1508        .95478E-02    .21062E-03
  13  norm          .10000E-03    2.8040        .90712E-02** at limit **
  14  norm          6.7215        1.5358        .38693E-02   -.10167E-03
  15  Prefactor     .10012E-03    13.899        .90712E-02** at limit **
  16  Prefactor     .10000E-03    2.3325        .90712E-02** at limit **
  17  Normalizat    .90405        .16403        .67464E-01   -.12183E-03
  18  Prefactor     1.0694        .10595        .38886E-01   -.15412E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6795
  Prefactor  = 5.35091
  Prefactor  = 0.000100027
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.32506
  norm       = 0.0001
  norm       = 6.7215
  Prefactor  = 0.000100124
  Prefactor  = 0.0001
  Normalizat = 0.904048
  Prefactor  = 1.06941
 **********
 **   18 **HESSE 
 **********

 FCN=   8492.484     FROM HESSE     STATUS=OK           236 CALLS     1710 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .78074        .79332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4966        .16807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.679        14.050        .12260E-03   -1.5054    
   5  Prefactor     5.3509        40.923        .17373E-03   -1.5245    
   6  Prefactor     .10003E-03    43.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10007E-03    12.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    19.468        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3800        .13817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .86683        .83537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3251        1.1576        .89636E-04   -1.5478    
  13  norm          .10000E-03    2.8105        .15069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7215        1.5366        .52582E-04   -1.5189    
  15  Prefactor     .10012E-03    13.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3367        .13745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .90405        .19007        .29845E-03   -.96318    
  18  Prefactor     1.0694        .12307        .18168E-03   -.90450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67538e-08
Minuit parameter uncertainties:
  1  1.70956e-06
  2  2.94962e-06
  3  6.55253e-05
  4  14.0546
  5  29.6236
  6  0.00218466
  7  0.0019224
  8  5.68574e-06
  9  0.000777221
  10  1.51024e-07
  11  1.23528e-06
  12  1.15766
  13  5.96835e-06
  14  1.5366
  15  0.00263105
  16  1.29218e-06
  17  0.190213
  18  0.123107
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  1.510e-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:  1.069e+00  1.231e-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:  9.040e-01  1.902e-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: 4.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/419640/likelihoodResults_568771201_569030401_4FGL_J0940.9-1335_daily_bin1271.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) = 8492.48573248
delta logL = -0.00200140716515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8492.48373103
delta logL = 4.4507032726e-08

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.2923       1.0000          .0000       5.0000    
     3 'Normalizat'    .90405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       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=   8492.484     FROM MIGRAD    STATUS=FAILED        89 CALLS      230 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    535.14        .13854E-02** at limit **
   2  alpha         2.0871        3.5357        .16533        .99982E-07
   3  Normalizat    .90405        .11409        .29845E-03    .11001E-03
   4  Prefactor     1.0694        .75390E-01    .18168E-03    .19626E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8492.484     FROM SIMPLEX   STATUS=UNCHANGED    198 CALLS      428 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    535.14        .24585E-03** at limit **
   2  alpha         2.0871        3.5357        .25316E-06    .99982E-07
   3  Normalizat    .90405        .11409        .13432E-07    .11001E-03
   4  Prefactor     1.0694        .75390E-01    .93215E-08    .19626E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8492.484     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      456 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4694        .27708E-03** at limit **
   2  alpha         2.0861        3.4661        .66132E-02    .13065E-07
   3  Normalizat    .90405        .18614        .11938E-04    .10933E-03
   4  Prefactor     1.0694        .12303        .36336E-04    .19511E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08605
  Normalizat = 0.904049
  Prefactor  = 1.06941
 **********
 **   18 **HESSE 
 **********

 FCN=   8492.484     FROM HESSE     STATUS=OK            23 CALLS      479 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4692        .55416E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0861        3.4069        .13226E-02   -.16634    
   3  Normalizat    .90405        .18619        .23876E-05   -.96318    
   4  Prefactor     1.0694        .12306        .72671E-05   -.90450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02218e-11
Minuit parameter uncertainties:
  1  9.24958e-06
  2  172.704
  3  0.186327
  4  0.123097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419640': 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) = 8492.48373032
delta logL = 7.54287611926e-07

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  9.250e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.086e+00  1.727e+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:  1.069e+00  1.231e-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:  9.040e-01  1.863e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/419640/cmap_HighResolution_568771201_569030401_4FGL_J0940.9-1335_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-05', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2021-08-31 22:03:48.966516', job_id='419640', GAL2='1.07', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630472628.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='7.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1271' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:03:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 419640: <4FGL_J0940.9-1335_daily_bin1271> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1271> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 21:50:53 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:50:54 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:50:54 2021
Terminated at Tue Aug 31 22:03:49 2021
Results reported at Tue Aug 31 22:03:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1271 145.244 -13.5891 568771201 569030401 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 :                                   641.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            776 sec.

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

