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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin1090
RA = 145.012, Dec = -28.4803
tmin = 521856001, tmax = 522115201
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='391655', job_status='RUN', time_executed='2021-08-31 20:24:04.415873', time_epoch_executed='1630466644.42' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391655

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391655/ft1_4FGL_J0940.0-2828_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391655/ft2_4FGL_J0940.0-2828_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391655/ft1_4FGL_J0940.0-2828_daily_bin1090.fits outfile=/scratch/kocevski/391655/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1090.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=521856001.0 tmax=522115201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.87
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/391655/ft2_4FGL_J0940.0-2828_daily_bin1090.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/391655/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/391655/ft1_filtered_4FGL_J0940.0-2828_daily_bin1090.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391655/ft1_filtered_4FGL_J0940.0-2828_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/391655/ft2_4FGL_J0940.0-2828_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/391655/ltcube_521856001_522115201_4FGL_J0940.0-2828_daily_bin1090.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/391655/ft2_4FGL_J0940.0-2828_daily_bin1090.fits
.....................!
real 12.74
user 12.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391655/ft1_filtered_4FGL_J0940.0-2828_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/391655/ft2_4FGL_J0940.0-2828_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/391655/ltcube_521856001_522115201_4FGL_J0940.0-2828_daily_bin1090.fits outfile=/scratch/kocevski/391655/expmap_521856001_522115201_4FGL_J0940.0-2828_daily_bin1090.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/391655/ltcube_521856001_522115201_4FGL_J0940.0-2828_daily_bin1090.fits
.....................!
real 191.13
user 186.72
sys 3.96

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/391655/ft1_filtered_4FGL_J0940.0-2828_daily_bin1090.fits scfile=/scratch/kocevski/391655/ft2_4FGL_J0940.0-2828_daily_bin1090.fits outfile=/scratch/kocevski/391655/cmap_521856001_522115201_4FGL_J0940.0-2828_daily_bin1090.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391655/ft1_filtered_4FGL_J0940.0-2828_daily_bin1090.fits scfile=/scratch/kocevski/391655/ft2_4FGL_J0940.0-2828_daily_bin1090.fits outfile=/scratch/kocevski/391655/cmap_HighResolution_521856001_522115201_4FGL_J0940.0-2828_daily_bin1090.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/391655/ft1_filtered_4FGL_J0940.0-2828_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/391655/ft2_4FGL_J0940.0-2828_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/391655/Model_4FGL_J0940.0-2828_daily_bin1090.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/391655/ft1_filtered_4FGL_J0940.0-2828_daily_bin1090.fits.....................!
real 94.02
user 92.61
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.6443       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .82997E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4733       1.0000         .10000E-03   10000.    
     7 'norm      '    15.001       1.0000         .10000E-03   10000.    
     8 'norm      '    13.006       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5362       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0142       1.0000         .10000E-03   10000.    
    11 'norm      '    .35254E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.274       1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1662       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89243       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=   8263.691     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1399 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    18.167        .90712E-02** at limit **
   2  Prefactor     3.6445        7.3207        .52904E-02    .36315E-03
   3  Prefactor     .10090E-03    7.5309        .10440    ** at limit **
   4  Prefactor     .10000E-03    7.8275        .90712E-02** at limit **
   5  Prefactor     .10001E-03    21.322        .90712E-02** at limit **
   6  Prefactor     5.4706        15.652        .42937E-02    .62407E-04
   7  norm          15.000        7.8477        .25853E-02    .77105E-04
   8  norm          13.006        17.703        .27768E-02    .78068E-04
   9  norm          2.5357        9.7217        .64114E-02    .24255E-03
  10  norm          3.0139        1.7380        .58441E-02    .10734E-01
  11  norm          .10011E-03    3.6781        .98233E-01** at limit **
  12  Prefactor     .10000E-03    9.9136        .90712E-02** at limit **
  13  Prefactor     .10000E-03    8.7994        .90712E-02** at limit **
  14  norm          10.275        8.2530        .31251E-02    .44635E-03
  15  norm          .10000E-03    3.6804        .90712E-02** at limit **
  16  Normalizat    1.1663        .22492        .85178E-01    .40343E-03
  17  Prefactor     .89241        .81915E-01    .44908E-01    .51086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 3.64452
  Prefactor  = 0.0001009
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 5.47059
  norm       = 15.0002
  norm       = 13.0061
  norm       = 2.53572
  norm       = 3.01393
  norm       = 0.000100108
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 10.2753
  norm       = 0.0001
  Normalizat = 1.16629
  Prefactor  = 0.892406
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.691     FROM HESSE     STATUS=OK           235 CALLS     1634 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    18.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6445        7.3395        .21161E-03   -1.5326    
   3  Prefactor     .10090E-03    57.520        .48014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    21.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4706        15.683        .17175E-03   -1.5240    
   7  norm          15.000        7.8494        .10341E-03   -1.4933    
   8  norm          13.006        17.725        .11107E-03   -1.4987    
   9  norm          2.5357        9.7075        .25646E-03   -1.5389    
  10  norm          3.0139        1.7420        .42938E-03   -1.5361    
  11  norm          .10011E-03    5.5679        .65217E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.9412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.275        8.2462        .12501E-03   -1.5067    
  15  norm          .10000E-03    3.7112        .17021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1663        .25685        .37715E-03   -.87651    
  17  Prefactor     .89241        .94194E-01    .15760E-03   -.96407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66941e-08
Minuit parameter uncertainties:
  1  0.000744628
  2  7.34133
  3  0.0144032
  4  0.000225488
  5  0.000684047
  6  15.6944
  7  7.84993
  8  17.7323
  9  9.71352
  10  1.74201
  11  0.00155171
  12  0.000288279
  13  0.000140339
  14  8.2471
  15  7.97594e-05
  16  0.257124
  17  0.0942111
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.500e+01  7.850e+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.924e-01  9.421e-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.166e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.77
Ra Dec: 145.012 -28.480
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 8.64e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 1.60e-05

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) = 8263.58986729
delta logL = 0.101460500156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8263.58753122
delta logL = 0.103796575107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.263       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5502       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89546       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8263.588     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      273 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.263        8.4714        .10999E-03   -.61811E-04
   2  alpha         2.5498        .50296        .12378E-01   -.31800E-04
   3  Normalizat    1.1516        .24679        .37920E-03   -.72253E-04
   4  Prefactor     .89544        .91080E-01    .15736E-03   -.19128E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2629
  alpha      = 2.54981
  Normalizat = 1.15165
  Prefactor  = 0.895436
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.588     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.263        8.2166        .43995E-05   -1.4979    
   2  alpha         2.5498        .48773        .49513E-03    .19926E-01
   3  Normalizat    1.1516        .24685        .15168E-04   -.88110    
   4  Prefactor     .89544        .91100E-01    .31471E-04   -.96301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0042e-11
Minuit parameter uncertainties:
  1  8.21732
  2  0.490876
  3  0.247095
  4  0.0911155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391655': 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) = 8263.5875304
delta logL = 0.103797391665

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  1.326e+01  8.217e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  2.550e+00  4.909e-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.954e-01  9.112e-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.152e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.98
Ra Dec: 145.012 -28.480
Photon Index (Free Index): 2.55 +/- 0.49
Photon Flux (Free Index): 9.95e-08 +/- 5.68e-08
Energy Flux (Free Index): 2.93e-05 +/- 1.52e-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/391655/cmap_HighResolution_521856001_522115201_4FGL_J0940.0-2828_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.64e-08', energy_flux2='2.93e-05', photon_flux_error='4.52e-08', dlogl='1.04e-01', energy_flux='3.06e-05', photon_flux2='9.95e-08', job_status='DONE', time_completed='2021-08-31 20:34:37.672173', photon_index_error2='0.49', photon_index2='2.55', ts='6.77', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.17', time_epoch_completed='1630467277.67', return_code='0', job_id='391655', GAL2='0.90', EG2='1.15', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.68e-08', ts2='6.98', photon_index='2.33' WHERE bin_id='1090' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:34:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 391655: <4FGL_J0940.0-2828_daily_bin1090> in cluster <slac> Done

Job <4FGL_J0940.0-2828_daily_bin1090> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 20:20:20 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:20: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:20:22 2021
Terminated at Tue Aug 31 20:34:38 2021
Results reported at Tue Aug 31 20:34:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin1090 145.012 -28.4803 521856001 522115201 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 :                                   601.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             293.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

