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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin1085
RA = 145.012, Dec = -28.4803
tmin = 520560001, tmax = 520819201
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='390562', job_status='RUN', time_executed='2021-08-31 20:19:54.691320', time_epoch_executed='1630466394.69' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390562/ft1_4FGL_J0940.0-2828_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390562/ft1_4FGL_J0940.0-2828_daily_bin1085.fits outfile=/scratch/kocevski/390562/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1085.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.23
user 4.95
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.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/390562/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/390562/ltcube_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.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/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits
.....................!
real 12.39
user 12.04
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/390562/ltcube_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.fits outfile=/scratch/kocevski/390562/expmap_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.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/390562/ltcube_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.fits
.....................!
real 193.02
user 185.31
sys 5.33

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
Extended source Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 184 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0940.0-2828 @ 145.012 -28.4803

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.fits scfile=/scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits outfile=/scratch/kocevski/390562/cmap_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.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.012 yref=-28.4803 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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.fits scfile=/scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits outfile=/scratch/kocevski/390562/cmap_HighResolution_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.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.012 yref=-28.4803 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/390562/Model_4FGL_J0940.0-2828_daily_bin1085.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
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.fits.....................!
real 79.94
user 78.31
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.fits', '/scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits', expMap='/scratch/kocevski/390562/expmap_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.fits', expCube='/scratch/kocevski/390562/ltcube_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/390562/Model_4FGL_J0940.0-2828_daily_bin1085.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0940.0-2828'

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.600e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  1.766e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  7.494e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/390562/ft1_filtered_4FGL_J0940.0-2828_daily_bin1085.fits
Spacecraft file(s): /scratch/kocevski/390562/ft2_4FGL_J0940.0-2828_daily_bin1085.fits
Exposure map: /scratch/kocevski/390562/expmap_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.fits
Exposure cube: /scratch/kocevski/390562/ltcube_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/390562/Model_4FGL_J0940.0-2828_daily_bin1085.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) = 6582.53054631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3321       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.809       1.0000         .10000E-03   10000.    
     7 'norm      '    .11734       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8741       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9094       1.0000         .10000E-03   10000.    
    11 'norm      '    10.617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.443       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.247       1.0000         .10000E-03   10000.    
    14 'norm      '    21.867       1.0000         .10000E-03   10000.    
    15 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5250       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6582.529     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1586 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.445       -.13889E-06** at limit **
   2  Prefactor     7.3304        9.0583        .17615E-06    .66241E-05
   3  Prefactor     .10000E-03    8.6474        .10867E-05** at limit **
   4  Prefactor     .10000E-03    12.240        .69649E-07** at limit **
   5  Prefactor     1.4217        305.76        .84344E-05   -.15918E-04
   6  Prefactor     16.809        15.958       -.45902E-07    .45694E-04
   7  norm          .10654        78.075        .39092E-04   -.27141E-04
   8  norm          2.8705        47.107       -.21435E-05   -.19476E-04
   9  norm          .10000E-03    3.0449       -.77039E-07** at limit **
  10  norm          2.9096        2.3291       -.38204E-06    .14591E-03
  11  norm          10.618        10.362       -.21097E-07    .89459E-04
  12  Prefactor     11.448        41.050       -.13711E-05    .28902E-04
  13  Prefactor     12.245        17.904       -.96971E-07    .59005E-04
  14  norm          21.866        15.335       -.30987E-06    .21063E-03
  15  norm          .10000E-03    11.875       -.10425E-05** at limit **
  16  Normalizat    1.5248        .28541        .36260E-05    .51143E-03
  17  Prefactor     .87930        .97614E-01    .31358E-07    .15785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.33039
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.42172
  Prefactor  = 16.8095
  norm       = 0.106539
  norm       = 2.8705
  norm       = 0.0001
  norm       = 2.90962
  norm       = 10.6175
  Prefactor  = 11.4482
  Prefactor  = 12.2454
  norm       = 21.8664
  norm       = 0.0001
  Normalizat = 1.52481
  Prefactor  = 0.879297
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.529     FROM HESSE     STATUS=OK           231 CALLS     1817 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3304        9.0921        .14812E-03   -1.5166    
   3  Prefactor     .10000E-03    8.5989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4217        315.79        .35090E-02   -1.5469    
   6  Prefactor     16.809        15.981        .97689E-04   -1.4888    
   7  norm          .10654        6.0264        .59730E-01   -1.5643    
   8  norm          2.8705        47.366        .23976E-03   -1.5369    
   9  norm          .10000E-03    3.0455        .13827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9096        2.3575        .10360E-03   -1.5367    
  11  norm          10.618        10.362        .12296E-03   -1.5056    
  12  Prefactor     11.448        41.229        .11843E-03   -1.5031    
  13  Prefactor     12.245        17.887        .11447E-03   -1.5008    
  14  norm          21.866        15.339        .85656E-04   -1.4772    
  15  norm          .10000E-03    12.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5248        .33336        .38063E-03   -.77083    
  17  Prefactor     .87930        .11091        .16929E-03   -.96868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17102e-09
Minuit parameter uncertainties:
  1  3.48825e-05
  2  9.09377
  3  0.000219605
  4  2.38235e-05
  5  42.6058
  6  15.9846
  7  1.60197
  8  23.3421
  9  6.87684e-06
  10  2.35753
  11  10.3639
  12  41.3317
  13  17.8953
  14  15.3413
  15  0.000130512
  16  0.333842
  17  0.110939
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.065e-01  1.602e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
329         beta:  1.766e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  7.494e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  8.793e-01  1.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.525e+00  3.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 145.012 -28.480
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390562/likelihoodResults_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.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) = 6582.52907822
delta logL = 5.55934184376e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6582.52882313
delta logL = 0.000260654030171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11598       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1042       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6582.529     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      290 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20101        177.97        .70294E-01    .29213E-03
   2  alpha         2.1371        2.9896        .41823        .15968E-04
   3  Normalizat    1.5248        .46942E-01    .85977E-01    .24628E-03
   4  Prefactor     .87920        .16525E-01    .44741E-01    .40658E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.201007
  alpha      = 2.13706
  Normalizat = 1.52478
  Prefactor  = 0.879198
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.529     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      321 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20101        8249.9        .36466E-02   -1.5618    
   2  alpha         2.1371        2.5678        .16729       -.14569    
   3  Normalizat    1.5248        .19395        .38063E-03   -.77084    
   4  Prefactor     .87920        .83372E-01    .16930E-03   -.96872    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.05282e-06
Minuit parameter uncertainties:
  1  84.4656
  2  84.8929
  3  0.194043
  4  0.0833843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390562': 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): 102
logL (Free Index) = 6582.5287165
delta logL = 0.000367278451449

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  2.010e-01  8.447e+01  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.137e+00  8.489e+01  0.000e+00  5.000e+00 ( 1.000e+00)
329         beta:  1.766e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
330           Eb:  7.494e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  8.792e-01  8.338e-02  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.525e+00  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 145.012 -28.480

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/390562/cmap_HighResolution_520560001_520819201_4FGL_J0940.0-2828_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-31 20:30:14.279859', job_id='390562', GAL2='0.88', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1630467014.28', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.67e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1085' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:30:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 390562: <4FGL_J0940.0-2828_daily_bin1085> in cluster <slac> Done

Job <4FGL_J0940.0-2828_daily_bin1085> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 20:16:19 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:16:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 20:16:22 2021
Terminated at Tue Aug 31 20:30:15 2021
Results reported at Tue Aug 31 20:30:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin1085 145.012 -28.4803 520560001 520819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0940.0-2828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   610.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            836 sec.

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

