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


Performing analysis on: 4FGL_J0940.0-2828_daily_bin1019
RA = 145.012, Dec = -28.4803
tmin = 503452801, tmax = 503712001
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='390427', job_status='RUN', time_executed='2021-08-31 20:16:18.873858', time_epoch_executed='1630466178.87' WHERE source_name='4FGL J0940.0-2828' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390427/ft1_4FGL_J0940.0-2828_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390427/ft2_4FGL_J0940.0-2828_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390427/ft1_4FGL_J0940.0-2828_daily_bin1019.fits outfile=/scratch/kocevski/390427/ft1_filteredMKT_4FGL_J0940.0-2828_daily_bin1019.fits ra=145.012 dec=-28.4803 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.82
user 7.50
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/390427/ft1_filtered_4FGL_J0940.0-2828_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/390427/ft2_4FGL_J0940.0-2828_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/390427/ltcube_503452801_503712001_4FGL_J0940.0-2828_daily_bin1019.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/390427/ft2_4FGL_J0940.0-2828_daily_bin1019.fits
.....................!
real 12.02
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390427/ft1_filtered_4FGL_J0940.0-2828_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/390427/ft2_4FGL_J0940.0-2828_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/390427/ltcube_503452801_503712001_4FGL_J0940.0-2828_daily_bin1019.fits outfile=/scratch/kocevski/390427/expmap_503452801_503712001_4FGL_J0940.0-2828_daily_bin1019.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/390427/ltcube_503452801_503712001_4FGL_J0940.0-2828_daily_bin1019.fits
.....................!
real 192.62
user 186.25
sys 5.38

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/390427/ft1_filtered_4FGL_J0940.0-2828_daily_bin1019.fits scfile=/scratch/kocevski/390427/ft2_4FGL_J0940.0-2828_daily_bin1019.fits outfile=/scratch/kocevski/390427/cmap_503452801_503712001_4FGL_J0940.0-2828_daily_bin1019.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 1.11
user 0.38
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390427/ft1_filtered_4FGL_J0940.0-2828_daily_bin1019.fits scfile=/scratch/kocevski/390427/ft2_4FGL_J0940.0-2828_daily_bin1019.fits outfile=/scratch/kocevski/390427/cmap_HighResolution_503452801_503712001_4FGL_J0940.0-2828_daily_bin1019.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.59
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/390427/ft1_filtered_4FGL_J0940.0-2828_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/390427/ft2_4FGL_J0940.0-2828_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/390427/Model_4FGL_J0940.0-2828_daily_bin1019.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/390427/ft1_filtered_4FGL_J0940.0-2828_daily_bin1019.fits.....................!
real 56.03
user 54.36
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33595E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.6621       1.0000         .10000E-03   10000.    
     8 'norm      '    39.057       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0197       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.523       1.0000         .10000E-03   10000.    
    14 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0873       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .69418       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98047       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=   4481.559     FROM MIGRAD    STATUS=CONVERGED    332 CALLS     1794 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1235.5        .25855E-04** at limit **
   2  Prefactor     .10000E-03    2.7165       -.10768E-06** at limit **
   3  Prefactor     .10000E-03    4.9414       -.62151E-07** at limit **
   4  Prefactor     78.221        56.543       -.56195E-06   -.14227E-04
   5  Prefactor     .10000E-03    23.245        .70652E-07** at limit **
   6  Prefactor     .10000E-03    12.161       -.15150E-06** at limit **
   7  norm          9.6657        13.083       -.39274E-06    .23448E-04
   8  norm          39.059        26.113       -.17196E-06    .23523E-04
   9  norm          .10000E-03    5.6298       -.51562E-07** at limit **
  10  norm          2.0202        1.9486       -.14978E-06   -.49489E-04
  11  norm          .10000E-03    27.445        .11254E-04** at limit **
  12  Prefactor     .10000E-03    56.467       -.53319E-06** at limit **
  13  Prefactor     18.518        15.566        .63852E-07    .30105E-04
  14  norm          .10000E-03    13.529        .16526E-06** at limit **
  15  norm          9.0933        13.068       -.35095E-06    .19795E-04
  16  Normalizat    .69395        .32032        .26709E-05    .67795E-04
  17  Prefactor     .98042        .11284        .16802E-06    .10049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.2209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.66566
  norm       = 39.0593
  norm       = 0.0001
  norm       = 2.02022
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.5176
  norm       = 0.0001
  norm       = 9.09333
  Normalizat = 0.693948
  Prefactor  = 0.980422
 **********
 **   18 **HESSE 
 **********

 FCN=   4481.559     FROM HESSE     STATUS=OK           221 CALLS     2015 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1216.9        .39405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7228        .10779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9436        .14535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     78.221        56.609        .22706E-03   -1.3937    
   5  Prefactor     .10000E-03    23.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.6657        13.076        .12892E-03   -1.5086    
   8  norm          39.059        26.113        .64135E-04   -1.4457    
   9  norm          .10000E-03    5.6324        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0202        1.9425        .86498E-04   -1.5424    
  11  norm          .10000E-03    27.230        .32275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    57.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.518        15.549        .93060E-04   -1.4847    
  14  norm          .10000E-03    13.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0933        13.040        .13295E-03   -1.5105    
  16  Normalizat    .69395        .34225        .45804E-03   -1.0413    
  17  Prefactor     .98042        .12158        .14733E-03   -.93385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33632e-11
Minuit parameter uncertainties:
  1  0.00803931
  2  1.34677e-05
  3  1.18253e-05
  4  56.6476
  5  1.96262e-05
  6  3.22596e-05
  7  13.0802
  8  26.1209
  9  8.76778e-06
  10  1.94257
  11  5.29697e-05
  12  0.000362529
  13  15.5519
  14  8.34568e-06
  15  13.0436
  16  0.343309
  17  0.121618
Done.

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

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  9.666e+00  1.308e+01  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:  9.804e-01  1.216e-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:  6.939e-01  3.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/390427/likelihoodResults_503452801_503712001_4FGL_J0940.0-2828_daily_bin1019.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) = 4480.79206002
delta logL = 0.766668795419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4480.77340898
delta logL = 0.785319835547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0395       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5645       1.0000          .0000       5.0000    
     3 'Normalizat'    .56409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0069       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=   4480.773     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      283 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0411        10.982        .10081E-03   -.69672E-03
   2  alpha         3.5645        1.3287        .11960E-01   -.44238E-04
   3  Normalizat    .56428        .33657        .50469E-03    .10572E-03
   4  Prefactor     1.0068        .12259        .14551E-03    .47901E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.0411
  alpha      = 3.56453
  Normalizat = 0.56428
  Prefactor  = 1.00677
 **********
 **   18 **HESSE 
 **********

 FCN=   4480.773     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0411        8.0632        .40324E-05   -1.5259    
   2  alpha         3.5645        1.0043        .47840E-03    .43986    
   3  Normalizat    .56428        .33594        .20187E-04   -1.0952    
   4  Prefactor     1.0068        .12203        .29101E-04   -.92504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16033e-10
Minuit parameter uncertainties:
  1  8.06493
  2  1.04059
  3  0.337157
  4  0.122065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390427': 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) = 4480.77340844
delta logL = 0.785320367373

Extracting fit parameters...

4FGL J0940.0-2828
   Spectrum: LogParabola
327         norm:  5.041e+00  8.065e+00  1.000e-04  1.000e+04 ( 1.000e-12)
328        alpha:  3.565e+00  1.041e+00  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.007e+00  1.221e-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:  5.643e-01  3.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 145.012 -28.480
Photon Index (Free Index): 3.56 +/- 1.04
Photon Flux (Free Index): 1.60e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.89e-05 +/- 2.18e-05

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/390427/cmap_HighResolution_503452801_503712001_4FGL_J0940.0-2828_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-05', comment='SUCCESS', energy_flux2='2.89e-05', dlogl='7.85e-01', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-08-31 20:25:32.076693', photon_index_error2='1.04', photon_index2='3.56', ts='0.68', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='2.13e-07', energy_flux_error2='2.18e-05', EG='0.69', time_epoch_completed='1630466732.08', return_code='0', job_id='390427', GAL2='1.01', EG2='0.56', return_code2='0', photon_flux_error2='1.24e-07', ts2='2.50', photon_index='2.33' WHERE bin_id='1019' AND source_name='4FGL J0940.0-2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:25:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 390427: <4FGL_J0940.0-2828_daily_bin1019> in cluster <slac> Done

Job <4FGL_J0940.0-2828_daily_bin1019> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 20:16:01 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:16:02 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:02 2021
Terminated at Tue Aug 31 20:25:32 2021
Results reported at Tue Aug 31 20:25:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.0-2828_daily_bin1019 145.012 -28.4803 503452801 503712001 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 :                                   539.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            571 sec.

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

