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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin782
RA = 145.244, Dec = -13.5891
tmin = 442022401, tmax = 442281601
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='416425', job_status='RUN', time_executed='2021-08-31 21:41:29.502370', time_epoch_executed='1630471289.5' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416425/ft1_4FGL_J0940.9-1335_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416425/ft2_4FGL_J0940.9-1335_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416425/ft1_4FGL_J0940.9-1335_daily_bin782.fits outfile=/scratch/kocevski/416425/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin782.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=442022401.0 tmax=442281601.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.87
user 3.55
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416425/ft1_filtered_4FGL_J0940.9-1335_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/416425/ft2_4FGL_J0940.9-1335_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/416425/ltcube_442022401_442281601_4FGL_J0940.9-1335_daily_bin782.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/416425/ft2_4FGL_J0940.9-1335_daily_bin782.fits
.....................!
real 12.05
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416425/ft1_filtered_4FGL_J0940.9-1335_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/416425/ft2_4FGL_J0940.9-1335_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/416425/ltcube_442022401_442281601_4FGL_J0940.9-1335_daily_bin782.fits outfile=/scratch/kocevski/416425/expmap_442022401_442281601_4FGL_J0940.9-1335_daily_bin782.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/416425/ltcube_442022401_442281601_4FGL_J0940.9-1335_daily_bin782.fits
.....................!
real 189.90
user 185.35
sys 3.92

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/416425/ft1_filtered_4FGL_J0940.9-1335_daily_bin782.fits scfile=/scratch/kocevski/416425/ft2_4FGL_J0940.9-1335_daily_bin782.fits outfile=/scratch/kocevski/416425/cmap_442022401_442281601_4FGL_J0940.9-1335_daily_bin782.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416425/ft1_filtered_4FGL_J0940.9-1335_daily_bin782.fits scfile=/scratch/kocevski/416425/ft2_4FGL_J0940.9-1335_daily_bin782.fits outfile=/scratch/kocevski/416425/cmap_HighResolution_442022401_442281601_4FGL_J0940.9-1335_daily_bin782.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/416425/ft1_filtered_4FGL_J0940.9-1335_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/416425/ft2_4FGL_J0940.9-1335_daily_bin782.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416425/Model_4FGL_J0940.9-1335_daily_bin782.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/416425/ft1_filtered_4FGL_J0940.9-1335_daily_bin782.fits.....................!
real 72.65
user 71.30
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1311       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 '    7.8136       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.239       1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0347       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3656       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2121       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4073       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .80897       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=   7054.296     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1758 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1312        1.9745        .49175E-07    .21094E-03
   2  Prefactor     .10000E-03    3.7440        .15762E-08** at limit **
   3  Prefactor     .10000E-03    7.8860       -.67880E-06** at limit **
   4  Prefactor     7.7858        19.932       -.44431E-04   -.10871E-03
   5  Prefactor     39.235        33.982       -.51351E-05   -.54788E-05
   6  Prefactor     69.187        51.761        .40066E-04    .10611E-03
   7  Prefactor     .10000E-03    10.458        .14277E-05** at limit **
   8  Prefactor     .10000E-03    13.104       -.44591E-05** at limit **
   9  Prefactor     .10000E-03    10.394        .15352E-05** at limit **
  10  norm          .10000E-03    4.8858       -.62137E-07** at limit **
  11  norm          .10000E-03    1.7850       -.35268E-06** at limit **
  12  norm          3.0347        1.9170       -.71348E-07   -.79455E-04
  13  norm          3.3636        11.245       -.10018E-05   -.14934E-03
  14  norm          1.8486        1.4589       -.38732E-07   -.55684E-03
  15  Prefactor     .10000E-03    26.212        .47317E-05** at limit **
  16  Prefactor     5.2111        9.7625       -.29839E-06   -.13069E-03
  17  Normalizat    1.4071        .19789       -.70369E-06    .16929E-03
  18  Prefactor     .80906        .11802        .60111E-06    .38950E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.78579
  Prefactor  = 39.2354
  Prefactor  = 69.1867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 3.03473
  norm       = 3.3636
  norm       = 1.84864
  Prefactor  = 0.0001
  Prefactor  = 5.21105
  Normalizat = 1.40712
  Prefactor  = 0.80906
 **********
 **   18 **HESSE 
 **********

 FCN=   7054.296     FROM HESSE     STATUS=OK           244 CALLS     2002 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1312        1.9856        .11075E-03   -1.5416    
   2  Prefactor     .10000E-03    3.7509        .15871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7858        20.028        .14345E-03   -1.5150    
   5  Prefactor     39.235        34.009        .63986E-04   -1.4454    
   6  Prefactor     69.187        51.912        .48270E-04   -1.4042    
   7  Prefactor     .10000E-03    10.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9609        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.544        .21720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0347        1.9118        .89503E-04   -1.5360    
  13  norm          3.3636        11.236        .22058E-03   -1.5341    
  14  norm          1.8486        1.4480        .86332E-04   -1.5436    
  15  Prefactor     .10000E-03    26.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2111        9.7706        .17607E-03   -1.5251    
  17  Normalizat    1.4071        .23145        .27246E-03   -.80423    
  18  Prefactor     .80906        .13789        .21129E-03   -.99395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74483e-10
Minuit parameter uncertainties:
  1  1.98562
  2  1.5131e-06
  3  4.1556e-05
  4  20.0455
  5  34.0256
  6  51.9465
  7  4.42712e-06
  8  4.81364e-06
  9  1.96475e-05
  10  5.48423e-06
  11  0.000252323
  12  1.91188
  13  11.2432
  14  1.44804
  15  1.51055e-05
  16  9.77358
  17  0.231621
  18  0.137954
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  5.484e-06  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.091e-01  1.380e-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.407e+00  2.316e-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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/416425/likelihoodResults_442022401_442281601_4FGL_J0940.9-1335_daily_bin782.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) = 7054.29731809
delta logL = -0.000960529786425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7054.25078089
delta logL = 0.0455766706709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22106       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3660       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81602       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7054.251     FROM MIGRAD    STATUS=FAILED       101 CALLS      347 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22243        103.35        .92695E-03   -.77732E-03
   2  alpha         4.3632        4.3557        .10881        .19318E-03
   3  Normalizat    1.3856        .11792        .27429E-03   -.10627E-03
   4  Prefactor     .81605        .71649E-01    .21049E-03   -.69079E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7054.251     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      440 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22243        103.35        .89149E-04   -.77732E-03
   2  alpha         4.3632        4.3557        .85030E-02    .19318E-03
   3  Normalizat    1.3856        .11792        .11626E-03   -.10627E-03
   4  Prefactor     .81605        .71649E-01    .52929E-04   -.69079E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7054.251     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      472 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22244        6.2861        .37078E-04   -.96369E-03
   2  alpha         4.3632        3.6121        .21762E-01   -.13013E-04
   3  Normalizat    1.3856        .23398        .10972E-04   -.99059E-04
   4  Prefactor     .81605        .13831        .84196E-05   -.62922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.222439
  alpha      = 4.36319
  Normalizat = 1.38559
  Prefactor  = 0.816047
 **********
 **   18 **HESSE 
 **********

 FCN=   7054.251     FROM HESSE     STATUS=OK            23 CALLS      495 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22244        2.6372        .14831E-05   -1.5614    
   2  alpha         4.3632        4.6786        .87047E-03    .84095    
   3  Normalizat    1.3856        .23429        .21943E-05   -.81046    
   4  Prefactor     .81605        .13833        .16839E-05   -.99140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46162e-10
Minuit parameter uncertainties:
  1  1.53156
  2  4.13642
  3  0.234471
  4  0.138386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416425': 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) = 7054.25078032
delta logL = 0.0455772401174

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  2.224e-01  1.532e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  4.363e+00  4.136e+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:  8.160e-01  1.384e-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.386e+00  2.345e-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/416425/cmap_HighResolution_442022401_442281601_4FGL_J0940.9-1335_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.38e-05', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-08-31 21:51:48.578678', job_id='416425', GAL2='0.82', fit_tolerance='1e-08', EG2='1.39', EG='1.41', time_epoch_completed='1630471908.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.56e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='782' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:51:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 416425: <4FGL_J0940.9-1335_daily_bin782> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin782> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 21:41:00 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:41:02 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:41:02 2021
Terminated at Tue Aug 31 21:51:49 2021
Results reported at Tue Aug 31 21:51:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin782 145.244 -13.5891 442022401 442281601 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 :                                   594.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            649 sec.

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

