/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 178 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 = 7258
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0940.0-2828_daily_bin170
RA = 145.012, Dec = -28.4803
tmin = 283392001, tmax = 283651201
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='386748', job_status='RUN', time_executed='2021-08-31 20:08:30.323357', time_epoch_executed='1630465710.32' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386748

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386748/ft1_4FGL_J0940.0-2828_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386748/ft1_4FGL_J0940.0-2828_daily_bin170.fits outfile=/scratch/kocevski/386748/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin170.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=283392001.0 tmax=283651201.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.66
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.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/386748/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/386748/ltcube_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.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/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits
.....................!
real 12.21
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/386748/ltcube_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.fits outfile=/scratch/kocevski/386748/expmap_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.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/386748/ltcube_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.fits
.....................!
real 191.00
user 185.96
sys 4.51

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/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.fits scfile=/scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits outfile=/scratch/kocevski/386748/cmap_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.fits scfile=/scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits outfile=/scratch/kocevski/386748/cmap_HighResolution_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386748/Model_4FGL_J0940.0-2828_daily_bin170.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/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.fits.....................!
real 110.53
user 109.07
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.fits', '/scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits', expMap='/scratch/kocevski/386748/expmap_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.fits', expCube='/scratch/kocevski/386748/ltcube_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/386748/Model_4FGL_J0940.0-2828_daily_bin170.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/386748/ft1_filtered_4FGL_J0940.0-2828_daily_bin170.fits
Spacecraft file(s): /scratch/kocevski/386748/ft2_4FGL_J0940.0-2828_daily_bin170.fits
Exposure map: /scratch/kocevski/386748/expmap_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.fits
Exposure cube: /scratch/kocevski/386748/ltcube_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/386748/Model_4FGL_J0940.0-2828_daily_bin170.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) = 9979.86998052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.319       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.014       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.841       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.715       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1680       1.0000         .10000E-03   10000.    
     8 'norm      '    .10604E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .76386       1.0000         .10000E-03   10000.    
    11 'norm      '    8.0049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7238       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4634       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .76424       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0938       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=   9979.862     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1602 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.253        55.484       -.10279E-04   -.32971E-03
   2  Prefactor     15.012        7.1304       -.13498E-06   -.47799E-04
   3  Prefactor     3.5594        11.978        .10806E-04   -.34654E-03
   4  Prefactor     .10000E-03    39.012        .58574E-06** at limit **
   5  Prefactor     19.841        27.372       -.16086E-05   -.25909E-04
   6  Prefactor     28.715        16.748        .10229E-06   -.89014E-05
   7  norm          2.1677        2.8558        .47669E-07   -.15453E-04
   8  norm          .10000E-03    24.712        .45783E-06** at limit **
   9  norm          .10000E-03    2.7881        .43365E-07** at limit **
  10  norm          .76397        .99765        .38537E-06    .79276E-03
  11  norm          8.0045        8.1537        .12252E-06   -.14273E-04
  12  Prefactor     8.7056        19.685       -.17832E-06   -.46871E-04
  13  Prefactor     7.7241        9.5267        .51957E-07   -.14388E-05
  14  norm          5.4626        6.7442        .10361E-06   -.43329E-04
  15  norm          .10000E-03    7.3963        .12324E-06** at limit **
  16  Normalizat    .76401        .20820       -.21776E-05   -.37623E-04
  17  Prefactor     1.0940        .80381E-01    .35384E-06   -.22797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.2526
  Prefactor  = 15.0118
  Prefactor  = 3.55936
  Prefactor  = 0.0001
  Prefactor  = 19.8409
  Prefactor  = 28.7148
  norm       = 2.16774
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.763967
  norm       = 8.0045
  Prefactor  = 8.70557
  Prefactor  = 7.72407
  norm       = 5.46262
  norm       = 0.0001
  Normalizat = 0.764006
  Prefactor  = 1.09397
 **********
 **   18 **HESSE 
 **********

 FCN=   9979.862     FROM HESSE     STATUS=OK           229 CALLS     1831 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.253        58.772        .64748E-04   -1.4470    
   2  Prefactor     15.012        7.1633        .10337E-03   -1.4933    
   3  Prefactor     3.5594        12.258        .10704E-02   -1.5331    
   4  Prefactor     .10000E-03    39.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.841        27.340        .89918E-04   -1.4817    
   6  Prefactor     28.715        16.757        .74765E-04   -1.4636    
   7  norm          2.1677        2.8440        .18841E-03   -1.5413    
   8  norm          .10000E-03    25.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7933        .16291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .76397        .86812        .10999E-02   -1.5533    
  11  norm          8.0045        8.1461        .14171E-03   -1.5142    
  12  Prefactor     8.7056        19.703        .13581E-03   -1.5118    
  13  Prefactor     7.7241        9.5166        .14429E-03   -1.5152    
  14  norm          5.4626        6.7251        .17191E-03   -1.5240    
  15  norm          .10000E-03    7.5866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .76401        .22352        .44939E-03   -1.0142    
  17  Prefactor     1.0940        .88015E-01    .15135E-03   -.89660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54183e-09
Minuit parameter uncertainties:
  1  58.861
  2  7.16374
  3  12.2664
  4  6.27884e-05
  5  27.357
  6  16.7601
  7  2.84423
  8  1.36329e-05
  9  7.83096e-07
  10  0.868133
  11  8.14723
  12  19.7179
  13  9.51848
  14  6.726
  15  8.00064e-06
  16  0.223787
  17  0.0880262
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  2.168e+00  2.844e+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:  1.094e+00  8.803e-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:  7.640e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 145.012 -28.480
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.25e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 4.43e-06 +/- 5.81e-06

TS (Fixed Index): 1.26
Ra Dec: 145.012 -28.480
Photon Flux Upper Limit: 6.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386748/likelihoodResults_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.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) = 9978.94644251
delta logL = 0.915985929038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9978.93423372
delta logL = 0.928194724262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7741       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0064       1.0000          .0000       5.0000    
     3 'Normalizat'    .77154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0927       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=   9978.934     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7737        1.9581        .78583E-02   -.40281E-03
   2  alpha         1.0065        .63284        .50000       -.46344E-04
   3  Normalizat    .77154        .19619        .10093        .47873E-04
   4  Prefactor     1.0927        .78195E-01    .37870E-01   -.72452E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.77374
  alpha      = 1.00647
  Normalizat = 0.771543
  Prefactor  = 1.09272
 **********
 **   18 **HESSE 
 **********

 FCN=   9978.934     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7737        2.6338        .14094E-03   -1.5442    
   2  alpha         1.0065        .85496        .30782E-02   -.64027    
   3  Normalizat    .77154        .21261        .44734E-03   -1.0113    
   4  Prefactor     1.0927        .85048E-01    .15139E-03   -.89700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89502e-13
Minuit parameter uncertainties:
  1  2.63392
  2  0.883254
  3  0.212834
  4  0.0850582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386748': 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) = 9978.93423369
delta logL = 0.928194753427

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.774e+00  2.634e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  1.006e+00  8.833e-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:  1.093e+00  8.506e-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:  7.715e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 145.012 -28.480
Photon Index (Free Index): 1.01 +/- 0.88
Photon Flux (Free Index): 4.94e-09 +/- 6.40e-09
Energy Flux (Free Index): 1.51e-05 +/- 2.42e-05

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/386748/cmap_HighResolution_283392001_283651201_4FGL_J0940.0-2828_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', comment='SUCCESS', photon_flux='1.25e-08', energy_flux2='1.51e-05', photon_flux_error='1.64e-08', dlogl='9.28e-01', energy_flux='4.43e-06', photon_flux2='4.94e-09', job_status='DONE', time_completed='2021-08-31 20:21:10.363279', photon_index_error2='0.88', photon_index2='1.01', ts='1.26', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='6.67e-08', energy_flux_error2='2.42e-05', EG='0.76', time_epoch_completed='1630466470.36', return_code='0', job_id='386748', GAL2='1.09', EG2='0.77', return_code2='0', energy_flux_error='5.81e-06', photon_flux_error2='6.40e-09', ts2='3.11', photon_index='2.33' WHERE bin_id='170' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 386748: <4FGL_J0940.0-2828_daily_bin170> in cluster <slac> Done

Job <4FGL_J0940.0-2828_daily_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 20:05:21 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:05:24 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:05:24 2021
Terminated at Tue Aug 31 20:21:11 2021
Results reported at Tue Aug 31 20:21:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin170 145.012 -28.4803 283392001 283651201 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 :                                   753.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            950 sec.

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

