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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin1606
RA = 145.244, Dec = -13.5891
tmin = 655603201, tmax = 655862401
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='286117', job_status='RUN', time_executed='2021-12-07 20:26:55.824496', time_epoch_executed='1638937615.82' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286117/ft1_4FGL_J0940.9-1335_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286117/ft2_4FGL_J0940.9-1335_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286117/ft1_4FGL_J0940.9-1335_daily_bin1606.fits outfile=/scratch/kocevski/286117/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1606.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=655603201.0 tmax=655862401.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.47
user 4.15
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/286117/ft2_4FGL_J0940.9-1335_daily_bin1606.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/286117/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/286117/ft1_filtered_4FGL_J0940.9-1335_daily_bin1606.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.56
user 0.35
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286117/ft1_filtered_4FGL_J0940.9-1335_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/286117/ft2_4FGL_J0940.9-1335_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/286117/ltcube_655603201_655862401_4FGL_J0940.9-1335_daily_bin1606.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/286117/ft2_4FGL_J0940.9-1335_daily_bin1606.fits
.....................!
real 18.02
user 17.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286117/ft1_filtered_4FGL_J0940.9-1335_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/286117/ft2_4FGL_J0940.9-1335_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/286117/ltcube_655603201_655862401_4FGL_J0940.9-1335_daily_bin1606.fits outfile=/scratch/kocevski/286117/expmap_655603201_655862401_4FGL_J0940.9-1335_daily_bin1606.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/286117/ltcube_655603201_655862401_4FGL_J0940.9-1335_daily_bin1606.fits
.....................!
real 195.44
user 189.58
sys 5.22

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/286117/ft1_filtered_4FGL_J0940.9-1335_daily_bin1606.fits scfile=/scratch/kocevski/286117/ft2_4FGL_J0940.9-1335_daily_bin1606.fits outfile=/scratch/kocevski/286117/cmap_655603201_655862401_4FGL_J0940.9-1335_daily_bin1606.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.63
user 0.45
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286117/ft1_filtered_4FGL_J0940.9-1335_daily_bin1606.fits scfile=/scratch/kocevski/286117/ft2_4FGL_J0940.9-1335_daily_bin1606.fits outfile=/scratch/kocevski/286117/cmap_HighResolution_655603201_655862401_4FGL_J0940.9-1335_daily_bin1606.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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/286117/ft1_filtered_4FGL_J0940.9-1335_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/286117/ft2_4FGL_J0940.9-1335_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/286117/Model_4FGL_J0940.9-1335_daily_bin1606.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/286117/ft1_filtered_4FGL_J0940.9-1335_daily_bin1606.fits.....................!
real 89.11
user 87.28
sys 1.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6353       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10311E-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 '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .84920       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3325       1.0000         .10000E-03   10000.    
    13 'norm      '    22.649       1.0000         .10000E-03   10000.    
    14 'norm      '    .89652       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2355       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .86974       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=   8658.426     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1501 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6357        2.6205        .82641E-02    .11545E-02
   2  Prefactor     .10000E-03    5.0186        .90712E-02** at limit **
   3  Prefactor     .10000E-03    2.8836        .90712E-02** at limit **
   4  Prefactor     13.404        13.287        .27331E-02   -.12761E-02
   5  Prefactor     .10000E-03    29.629        .90712E-02** at limit **
   6  Prefactor     .10000E-03    83.134        .90712E-02** at limit **
   7  Prefactor     .10000E-03    7.6697        .90712E-02** at limit **
   8  Prefactor     .10002E-03    13.242        .90712E-02** at limit **
   9  Prefactor     .10003E-03    13.292        .90712E-02** at limit **
  10  norm          .10000E-03    1.5370        .90712E-02** at limit **
  11  norm          .84912        2.0941        .46916E-01    .14388E-02
  12  norm          1.3325        1.1465        .95074E-02   -.30073E-04
  13  norm          22.650        10.140        .21041E-02   -.23798E-03
  14  norm          .89671        1.1169        .12795E-01    .14346E-02
  15  Prefactor     .10000E-03    18.366        .90712E-02** at limit **
  16  Prefactor     .10000E-03    4.2208        .90712E-02** at limit **
  17  Normalizat    1.2354        .16445        .60234E-01    .60565E-05
  18  Prefactor     .86978        .10215        .44618E-01    .30937E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.000100028
  norm       = 0.0001
  norm       = 0.849121
  norm       = 1.33251
  norm       = 22.6502
  norm       = 0.896707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23541
  Prefactor  = 0.869777
 **********
 **   18 **HESSE 
 **********

 FCN=   8658.426     FROM HESSE     STATUS=OK           240 CALLS     1741 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6357        2.6061        .18390E-03   -1.5452    
   2  Prefactor     .10000E-03    5.0410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9173        .15428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.404        13.317        .10932E-03   -1.4976    
   5  Prefactor     .10000E-03    29.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    84.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    13.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    13.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5409        .11265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .84912        2.0554        .20367E-03   -1.5524    
  12  norm          1.3325        1.1448        .89700E-04   -1.5477    
  13  norm          22.650        10.149        .84165E-04   -1.4756    
  14  norm          .89671        1.0851        .10506E-03   -1.5519    
  15  Prefactor     .10000E-03    18.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2354        .19290        .26640E-03   -.85515    
  18  Prefactor     .86978        .12024        .19668E-03   -.97205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12668e-09
Minuit parameter uncertainties:
  1  2.60628
  2  1.9554e-07
  3  1.86771e-08
  4  13.3197
  5  8.55135e-05
  6  0.000361201
  7  1.15791e-06
  8  0.00112164
  9  0.00121838
  10  3.23775e-07
  11  2.05556
  12  1.1448
  13  10.1501
  14  1.08508
  15  0.000152652
  16  3.59025e-07
  17  0.193016
  18  0.120279
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  3.238e-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.698e-01  1.203e-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.235e+00  1.930e-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: 3.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286117/likelihoodResults_655603201_655862401_4FGL_J0940.9-1335_daily_bin1606.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) = 8658.42921483
delta logL = -0.0030702254935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8658.4261446
delta logL = 3.81442077924e-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.3024       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86978       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=   8658.426     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      201 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5327        .38239E-05** at limit **
   2  alpha         2.5690        2.8909        .50855E-02   -.11241E-06
   3  Normalizat    1.2354        .16052       -.91086E-07   -.87179E-04
   4  Prefactor     .86978        .10193        .22617E-07   -.10007E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.569
  Normalizat = 1.23541
  Prefactor  = 0.869777
 **********
 **   18 **HESSE 
 **********

 FCN=   8658.426     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5574        .11266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5690        3.5794        .16526        .27603E-01
   3  Normalizat    1.2354        .18861        .26640E-03   -.85515    
   4  Prefactor     .86978        .11981        .19668E-03   -.97205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.601e-10
Minuit parameter uncertainties:
  1  1.11992e-05
  2  450.324
  3  0.188713
  4  0.119848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286117': 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) = 8658.42614431
delta logL = 2.90367097477e-07

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  1.120e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.569e+00  4.503e+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.698e-01  1.198e-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.235e+00  1.887e-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/286117/cmap_HighResolution_655603201_655862401_4FGL_J0940.9-1335_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-05', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2021-12-07 20:37:50.951303', job_id='286117', GAL2='0.87', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1638938270.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1606' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 20:37:50 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 286117: <4FGL_J0940.9-1335_daily_bin1606> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin1606> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec  7 20:25:22 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:26:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:26:37 2021
Terminated at Tue Dec  7 20:37:51 2021
Results reported at Tue Dec  7 20:37:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin1606 145.244 -13.5891 655603201 655862401 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            749 sec.

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

