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


Performing analysis on: 4FGL_J0920.3-0443_daily_bin1440
RA = 140.1, Dec = -4.7311
tmin = 612576001, tmax = 612835201
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='128125', job_status='RUN', time_executed='2021-08-31 06:49:22.751111', time_epoch_executed='1630417762.75' WHERE source_name='4FGL J0920.3-0443' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128125/ft1_4FGL_J0920.3-0443_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128125/ft1_4FGL_J0920.3-0443_daily_bin1440.fits outfile=/scratch/kocevski/128125/ft1_filteredMKT_4FGL_J0920.3-0443_daily_bin1440.fits ra=140.1 dec=-4.7311 rad=12.0 tmin=612576001.0 tmax=612835201.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.17
user 2.55
sys 0.53

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.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/128125/ft1_filteredMKT_4FGL_J0920.3-0443_daily_bin1440.fits evtable="EVENTS" outfile="/scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.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.92
user 0.32
sys 0.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/128125/ltcube_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.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/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits
.....................!
real 12.90
user 12.16
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/128125/ltcube_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.fits outfile=/scratch/kocevski/128125/expmap_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.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/128125/ltcube_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.fits
.....................!
real 192.80
user 186.92
sys 5.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 149 point sources and 0 extended sources

Setting source of interest to:
4FGL J0920.3-0443 @ 140.1 -4.7311

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.fits scfile=/scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits outfile=/scratch/kocevski/128125/cmap_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.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=140.1 yref=-4.7311 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.86
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.fits scfile=/scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits outfile=/scratch/kocevski/128125/cmap_HighResolution_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.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=140.1 yref=-4.7311 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.94
user 0.36
sys 0.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128125/Model_4FGL_J0920.3-0443_daily_bin1440.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.fits.....................!
real 65.81
user 63.66
sys 1.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.fits', '/scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits', expMap='/scratch/kocevski/128125/expmap_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.fits', expCube='/scratch/kocevski/128125/ltcube_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/128125/Model_4FGL_J0920.3-0443_daily_bin1440.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0920.3-0443'

4FGL J0920.3-0443
   Spectrum: PowerLaw
250    Prefactor:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.587e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.913e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/128125/ft1_filtered_4FGL_J0920.3-0443_daily_bin1440.fits
Spacecraft file(s): /scratch/kocevski/128125/ft2_4FGL_J0920.3-0443_daily_bin1440.fits
Exposure map: /scratch/kocevski/128125/expmap_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.fits
Exposure cube: /scratch/kocevski/128125/ltcube_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/128125/Model_4FGL_J0920.3-0443_daily_bin1440.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) = 6261.53830799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55646       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .53147E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4995       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8486       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7271       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3464       1.0000         .10000E-03   10000.    
     8 'norm      '    6.8962       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0038       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.724       1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .74442       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8186       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89428       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6261.535     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2040 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55735        5.8404        .56705E-06   -.10297E-03
   2  Prefactor     .10000E-03    31.337        .63055E-06** at limit **
   3  norm          .10010E-03    8.0030        .29564E-05** at limit **
   4  norm          3.4966        2.8860        .13387E-06   -.22261E-03
   5  Prefactor     7.8406        10.102        .21558E-06   -.78729E-04
   6  Prefactor     6.7289        5.3212       -.40051E-06   -.42488E-04
   7  norm          1.3495        4.6062        .34790E-06    .31356E-04
   8  norm          6.8975        5.7737       -.63339E-07   -.43684E-05
   9  Prefactor     .10000E-03    9.2891       -.15979E-06** at limit **
  10  Prefactor     3.0040        3.6853        .19625E-05    .69473E-03
  11  Prefactor     .10000E-03    11.404        .34191E-07** at limit **
  12  Prefactor     7.1651        14.367        .99876E-06    .83612E-04
  13  Prefactor     .10000E-03    17.956        .34624E-06** at limit **
  14  Prefactor     19.751        25.424       -.39805E-05   -.15971E-04
  15  norm          .10000E-03    3.4616        .37737E-06** at limit **
  16  norm          .10000E-03    .74947        .69028E-08** at limit **
  17  norm          .74469        .55820        .14968E-07    .37398E-04
  18  norm          2.8193        2.1139        .50240E-07    .36561E-04
  19  Normalizat    .89413        .19198       -.92605E-06   -.74438E-04
  20  Prefactor     1.0280        .14185        .25160E-06   -.16671E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.557348
  Prefactor  = 0.0001
  norm       = 0.000100099
  norm       = 3.49659
  Prefactor  = 7.84063
  Prefactor  = 6.72892
  norm       = 1.3495
  norm       = 6.8975
  Prefactor  = 0.0001
  Prefactor  = 3.00401
  Prefactor  = 0.0001
  Prefactor  = 7.16513
  Prefactor  = 0.0001
  Prefactor  = 19.7513
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.744691
  norm       = 2.81934
  Normalizat = 0.894134
  Prefactor  = 1.02804
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.535     FROM HESSE     STATUS=OK           301 CALLS     2341 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55735        15.539        .36869E-02   -1.5559    
   2  Prefactor     .10000E-03    31.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10010E-03    30.291        .36926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4966        2.8604        .11607E-03   -1.5334    
   5  Prefactor     7.8406        10.045        .14313E-03   -1.5148    
   6  Prefactor     6.7289        5.3217        .15470E-03   -1.5189    
   7  norm          1.3495        4.5669        .28719E-03   -1.5476    
   8  norm          6.8975        5.7668        .15278E-03   -1.5183    
   9  Prefactor     .10000E-03    9.3334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0040        3.7529        .80643E-03   -1.5361    
  11  Prefactor     .10000E-03    11.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1651        14.318        .74938E-03   -1.5173    
  13  Prefactor     .10000E-03    17.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.751        25.492        .90184E-04   -1.4819    
  15  norm          .10000E-03    3.4871        .14393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .75037        .66898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .74469        .53990        .47979E-03   -1.5535    
  18  norm          2.8193        2.1098        .95734E-04   -1.5372    
  19  Normalizat    .89413        .22067        .27851E-03   -.96667    
  20  Prefactor     1.0280        .16511        .20174E-03   -.91801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32842e-08
Minuit parameter uncertainties:
  1  5.88692
  2  5.57664e-05
  3  0.00345659
  4  2.86049
  5  10.0473
  6  5.3221
  7  4.56805
  8  5.76722
  9  6.15333e-06
  10  3.75321
  11  4.72258e-06
  12  14.3251
  13  7.85126e-06
  14  25.5065
  15  3.36124e-05
  16  2.04787e-07
  17  0.539908
  18  2.1099
  19  0.220891
  20  0.165194
Done.

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

Extracting fit parameters...

4FGL J0920.3-0443
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  6.153e-06  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.587e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.913e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  1.028e+00  1.652e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  8.941e-01  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.100 -4.731
Photon Flux Upper Limit: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/128125/likelihoodResults_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.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) = 6261.53523774
delta logL = -0.000510651271725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6261.5347268
delta logL = 2.86176145892e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5499       1.0000          .0000       10.000    
     3 'Normalizat'    .89414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6261.535     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12677E-03    12.684        .18142E-01** at limit **
   2  Index         2.2176        5.3537        .50000        .23281E-04
   3  Normalizat    .89413        .40808E-02    .27851E-03   -.13479E-03
   4  Prefactor     1.0280        .31650E-02    .20174E-03   -.11663E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6261.535     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      336 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12677E-03    12.684        .73298E-03** at limit **
   2  Index         2.2176        5.3537        .36188E-01    .23281E-04
   3  Normalizat    .89413        .40808E-02    .50505E-04   -.13479E-03
   4  Prefactor     1.0280        .31650E-02    .28695E-04   -.11663E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6261.535     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      376 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11362E-03    .28168        .13051    ** at limit **
   2  Index         2.2824        5.5120        .50000        .23933E-04
   3  Normalizat    .89413        .83319E-03    .11141E-04   -.13409E-03
   4  Prefactor     1.0280        .64621E-03    .40349E-04   -.11665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113619
  Index      = 2.28237
  Normalizat = 0.894133
  Prefactor  = 1.02804
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.535     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      407 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11362E-03    94.811        .44955E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2824        8.7926        .50000       -.57463    
   3  Normalizat    .89413        .11650E-01    .22281E-05   -.96667    
   4  Prefactor     1.0280        .90341E-02    .80698E-05   -.91800    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.76001e-08
Minuit parameter uncertainties:
  1  0.0719815
  2  466.629
  3  0.0116498
  4  0.00903409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128125': 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) = 6261.53472557
delta logL = 1.52323809743e-06

Extracting fit parameters...

4FGL J0920.3-0443
   Spectrum: PowerLaw
250    Prefactor:  1.136e-04  7.198e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.282e+00  4.666e+02  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.913e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  1.028e+00  9.034e-03  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  8.941e-01  1.165e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 140.100 -4.731

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/128125/cmap_HighResolution_612576001_612835201_4FGL_J0920.3-0443_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-08-31 06:58:56.432427', job_id='128125', GAL2='1.03', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630418336.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1440' AND source_name='4FGL J0920.3-0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:58:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 128125: <4FGL_J0920.3-0443_daily_bin1440> in cluster <slac> Done

Job <4FGL_J0920.3-0443_daily_bin1440> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 06:46:23 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:46:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 06:46:25 2021
Terminated at Tue Aug 31 06:58:57 2021
Results reported at Tue Aug 31 06:58:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0920.3-0443_daily_bin1440 140.1 -4.7311 612576001 612835201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0920.3-0443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   568.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

