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


Performing analysis on: 4FGL_J0940.9-1335_daily_bin535
RA = 145.244, Dec = -13.5891
tmin = 378000001, tmax = 378259201
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='416014', job_status='RUN', time_executed='2021-08-31 21:43:49.966581', time_epoch_executed='1630471429.97' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416014

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416014/ft1_4FGL_J0940.9-1335_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416014/ft2_4FGL_J0940.9-1335_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416014/ft1_4FGL_J0940.9-1335_daily_bin535.fits outfile=/scratch/kocevski/416014/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin535.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=378000001.0 tmax=378259201.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.53
user 3.24
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416014/ft1_filtered_4FGL_J0940.9-1335_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/416014/ft2_4FGL_J0940.9-1335_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/416014/ltcube_378000001_378259201_4FGL_J0940.9-1335_daily_bin535.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/416014/ft2_4FGL_J0940.9-1335_daily_bin535.fits
.....................!
real 12.67
user 12.01
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416014/ft1_filtered_4FGL_J0940.9-1335_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/416014/ft2_4FGL_J0940.9-1335_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/416014/ltcube_378000001_378259201_4FGL_J0940.9-1335_daily_bin535.fits outfile=/scratch/kocevski/416014/expmap_378000001_378259201_4FGL_J0940.9-1335_daily_bin535.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/416014/ltcube_378000001_378259201_4FGL_J0940.9-1335_daily_bin535.fits
.....................!
real 192.99
user 186.15
sys 5.74

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/416014/ft1_filtered_4FGL_J0940.9-1335_daily_bin535.fits scfile=/scratch/kocevski/416014/ft2_4FGL_J0940.9-1335_daily_bin535.fits outfile=/scratch/kocevski/416014/cmap_378000001_378259201_4FGL_J0940.9-1335_daily_bin535.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.59
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416014/ft1_filtered_4FGL_J0940.9-1335_daily_bin535.fits scfile=/scratch/kocevski/416014/ft2_4FGL_J0940.9-1335_daily_bin535.fits outfile=/scratch/kocevski/416014/cmap_HighResolution_378000001_378259201_4FGL_J0940.9-1335_daily_bin535.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/416014/ft1_filtered_4FGL_J0940.9-1335_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/416014/ft2_4FGL_J0940.9-1335_daily_bin535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416014/Model_4FGL_J0940.9-1335_daily_bin535.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/416014/ft1_filtered_4FGL_J0940.9-1335_daily_bin535.fits.....................!
real 69.54
user 67.41
sys 1.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25582E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    86.649       1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.491       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1281       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8369       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7954       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11603E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.052       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83274       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1487       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=   6365.341     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1718 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8604        4.3216       -.63479E-06   -.15391E-03
   2  Prefactor     .10000E-03    4.4369       -.12199E-07** at limit **
   3  Prefactor     .10000E-03    6.6001       -.53157E-07** at limit **
   4  Prefactor     .10008E-03    38.951        .19038E-04** at limit **
   5  Prefactor     86.648        55.785       -.18098E-05    .27736E-04
   6  Prefactor     75.441        51.678       -.47723E-04   -.17040E-03
   7  Prefactor     .10000E-03    47.663        .13821E-05** at limit **
   8  Prefactor     .10000E-03    11.463        .16395E-06** at limit **
   9  Prefactor     6.1235        17.781       -.44570E-05   -.39232E-04
  10  norm          2.8364        5.2914       -.14879E-05   -.41968E-03
  11  norm          .10000E-03    1.2167        .55995E-07** at limit **
  12  norm          2.7953        1.7907       -.87123E-07    .31969E-04
  13  norm          .10000E-03    3.4196       -.66315E-07** at limit **
  14  norm          .10000E-03    .97110       -.56057E-06** at limit **
  15  Prefactor     .10000E-03    20.793       -.10834E-05** at limit **
  16  Prefactor     11.052        9.1629       -.40500E-06    .23666E-04
  17  Normalizat    .83241        .22277        .11068E-04   -.16853E-03
  18  Prefactor     1.1490        .13802       -.86774E-06    .36040E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.86038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 86.6479
  Prefactor  = 75.4414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.12353
  norm       = 2.8364
  norm       = 0.0001
  norm       = 2.7953
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.052
  Normalizat = 0.832414
  Prefactor  = 1.14897
 **********
 **   18 **HESSE 
 **********

 FCN=   6365.341     FROM HESSE     STATUS=OK           242 CALLS     1960 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8604        4.3192        .12733E-03   -1.5184    
   2  Prefactor     .10000E-03    4.4409        .16411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10008E-03    40.408        .21456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     86.648        55.756        .43159E-04   -1.3844    
   6  Prefactor     75.441        51.757        .23107E-03   -1.3969    
   7  Prefactor     .10000E-03    48.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1235        17.752        .16218E-03   -1.5213    
  10  norm          2.8364        5.2763        .24143E-03   -1.5371    
  11  norm          .10000E-03    1.2221        .85938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7953        1.7910        .83059E-04   -1.5374    
  13  norm          .10000E-03    3.4266        .14408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6822        .15198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.052        9.1636        .12051E-03   -1.5043    
  17  Normalizat    .83241        .25483        .34316E-03   -.98877    
  18  Prefactor     1.1490        .15980        .18799E-03   -.87917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51721e-09
Minuit parameter uncertainties:
  1  4.31939
  2  8.48738e-06
  3  1.51627e-05
  4  0.0036185
  5  55.7902
  6  51.7884
  7  8.28305e-08
  8  1.6417e-06
  9  17.7675
  10  5.27716
  11  3.31086e-06
  12  1.79102
  13  1.26514e-05
  14  7.72146e-05
  15  3.93589e-05
  16  9.16473
  17  0.255194
  18  0.159866
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  2.836e+00  5.277e+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

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.149e+00  1.599e-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:  8.324e-01  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/416014/likelihoodResults_378000001_378259201_4FGL_J0940.9-1335_daily_bin535.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) = 6365.23755196
delta logL = 0.103840646776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6365.21874429
delta logL = 0.122648319363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9419       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7859       1.0000          .0000       5.0000    
     3 'Normalizat'    .83917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1444       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=   6365.219     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9419        11.933        .50794E-02   -.10085E-02
   2  alpha         1.7859        1.4283        .43505       -.58926E-04
   3  Normalizat    .83921        .21676        .77229E-01    .24115E-04
   4  Prefactor     1.1443        .13913        .36101E-01   -.23620E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.94194
  alpha      = 1.78589
  Normalizat = 0.839212
  Prefactor  = 1.14435
 **********
 **   18 **HESSE 
 **********

 FCN=   6365.219     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9419        6.0385        .20318E-03   -1.5311    
   2  alpha         1.7859        .88734        .25123E-01   -.28968    
   3  Normalizat    .83921        .24872        .34185E-03   -.98630    
   4  Prefactor     1.1443        .15905        .18829E-03   -.88061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69765e-09
Minuit parameter uncertainties:
  1  6.03947
  2  0.908991
  3  0.249056
  4  0.159112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416014': 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) = 6365.21874427
delta logL = 0.122648336733

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  3.942e+00  6.039e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  1.786e+00  9.090e-01  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.144e+00  1.591e-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:  8.392e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/416014/cmap_HighResolution_378000001_378259201_4FGL_J0940.9-1335_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-05', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-08-31 21:53:08.614428', job_id='416014', GAL2='1.14', fit_tolerance='1e-08', EG2='0.84', EG='0.83', time_epoch_completed='1630471988.61', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.23e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='535' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:53:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 416014: <4FGL_J0940.9-1335_daily_bin535> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin535> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 21:40:26 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:40:28 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:40:28 2021
Terminated at Tue Aug 31 21:53:09 2021
Results reported at Tue Aug 31 21:53:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin535 145.244 -13.5891 378000001 378259201 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 :                                   554.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

