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


Performing analysis on: 4FGL_J0920.3-0443_daily_bin1470
RA = 140.1, Dec = -4.7311
tmin = 620352001, tmax = 620611201
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='128172', job_status='RUN', time_executed='2021-08-31 06:49:16.575799', time_epoch_executed='1630417756.58' WHERE source_name='4FGL J0920.3-0443' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128172/ft1_4FGL_J0920.3-0443_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128172/ft1_4FGL_J0920.3-0443_daily_bin1470.fits outfile=/scratch/kocevski/128172/ft1_filteredMKT_4FGL_J0920.3-0443_daily_bin1470.fits ra=140.1 dec=-4.7311 rad=12.0 tmin=620352001.0 tmax=620611201.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 4.93
user 4.66
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.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/128172/ft1_filteredMKT_4FGL_J0920.3-0443_daily_bin1470.fits evtable="EVENTS" outfile="/scratch/kocevski/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.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.54
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.fits" evtable="EVENTS" scfile=/scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits sctable="SC_DATA" outfile=/scratch/kocevski/128172/ltcube_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.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/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits
.....................!
real 11.69
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/128172/ltcube_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.fits outfile=/scratch/kocevski/128172/expmap_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.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/128172/ltcube_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.fits
.....................!
real 190.20
user 184.91
sys 4.88

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/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.fits scfile=/scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits outfile=/scratch/kocevski/128172/cmap_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.fits scfile=/scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits outfile=/scratch/kocevski/128172/cmap_HighResolution_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128172/Model_4FGL_J0920.3-0443_daily_bin1470.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/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.fits.....................!
real 52.42
user 51.00
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.fits', '/scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits', expMap='/scratch/kocevski/128172/expmap_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.fits', expCube='/scratch/kocevski/128172/ltcube_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/128172/Model_4FGL_J0920.3-0443_daily_bin1470.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/128172/ft1_filtered_4FGL_J0920.3-0443_daily_bin1470.fits
Spacecraft file(s): /scratch/kocevski/128172/ft2_4FGL_J0920.3-0443_daily_bin1470.fits
Exposure map: /scratch/kocevski/128172/expmap_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.fits
Exposure cube: /scratch/kocevski/128172/ltcube_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/128172/Model_4FGL_J0920.3-0443_daily_bin1470.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) = 4769.29590321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.874       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.9398       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.833       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23052E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.304       1.0000         .10000E-03   10000.    
    15 'norm      '    27.390       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .40963       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80499       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0842       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=   4769.293     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2050 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5285        .53967E-07** at limit **
   2  Prefactor     .10000E-03    43.314        .17895E-06** at limit **
   3  norm          .10000E-03    5.4317       -.60125E-08** at limit **
   4  norm          3.8056        3.3214       -.74970E-07   -.53094E-04
   5  Prefactor     21.874        17.874       -.10929E-06   -.17506E-04
   6  Prefactor     .10000E-03    4.5506       -.11199E-06** at limit **
   7  norm          8.9395        5.9413       -.23430E-06   -.12331E-03
   8  norm          .10000E-03    2.6133       -.14273E-07** at limit **
   9  Prefactor     .10000E-03    6.1024       -.16462E-07** at limit **
  10  Prefactor     4.5625        5.3578       -.26192E-06   -.18281E-03
  11  Prefactor     .10000E-03    14.792       -.29305E-07** at limit **
  12  Prefactor     29.834        22.955       -.50813E-06    .62211E-04
  13  Prefactor     .10001E-03    30.390        .58982E-06** at limit **
  14  Prefactor     26.305        41.713       -.42763E-06    .42337E-04
  15  norm          27.388        13.479       -.31603E-05    .37091E-03
  16  norm          .10000E-03    1.2730        .10386E-08** at limit **
  17  norm          .40955        .92617       -.38173E-06   -.13643E-02
  18  norm          .10000E-03    .80211        .37383E-09** at limit **
  19  Normalizat    .80506        .23806        .12988E-05    .12679E-04
  20  Prefactor     1.0841        .16862        .46942E-06    .34340E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.80557
  Prefactor  = 21.8737
  Prefactor  = 0.0001
  norm       = 8.93951
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.5625
  Prefactor  = 0.0001
  Prefactor  = 29.8341
  Prefactor  = 0.000100007
  Prefactor  = 26.3046
  norm       = 27.3882
  norm       = 0.0001
  norm       = 0.409553
  norm       = 0.0001
  Normalizat = 0.805064
  Prefactor  = 1.08413
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.293     FROM HESSE     STATUS=OK           291 CALLS     2341 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5493        .14352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.4595        .15710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8056        3.3161        .11030E-03   -1.5318    
   5  Prefactor     21.874        17.840        .85642E-04   -1.4772    
   6  Prefactor     .10000E-03    4.5726        .14386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.9395        5.9533        .12950E-03   -1.5110    
   8  norm          .10000E-03    2.6208        .10902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1109        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5625        5.3672        .16233E-03   -1.5281    
  11  Prefactor     .10000E-03    14.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.834        22.794        .73353E-04   -1.4615    
  13  Prefactor     .10001E-03    278.25        .73062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.305        41.746        .78109E-04   -1.4682    
  15  norm          27.388        13.275        .76548E-04   -1.4661    
  16  norm          .10000E-03    1.2740        .76090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40955        .95020        .92865E-04   -1.5580    
  18  norm          .10000E-03    .80548        .60394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80506        .27682        .31427E-03   -.99881    
  20  Prefactor     1.0841        .19739        .20342E-03   -.89976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62209e-10
Minuit parameter uncertainties:
  1  4.87633e-06
  2  8.28466e-05
  3  4.85429e-06
  4  3.31625
  5  17.8444
  6  3.89147e-06
  7  5.95368
  8  1.5574e-06
  9  2.35404e-06
  10  5.36773
  11  2.64898e-06
  12  22.8005
  13  0.00278576
  14  41.792
  15  13.2766
  16  1.53972e-07
  17  0.950235
  18  2.04911e-08
  19  0.277305
  20  0.197524
Done.

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

Extracting fit parameters...

4FGL J0920.3-0443
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  2.354e-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.084e+00  1.975e-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.051e-01  2.773e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/128172/likelihoodResults_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.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) = 4769.29419207
delta logL = -0.000775210619395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4769.29341734
delta logL = -4.8012498155e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5597       1.0000          .0000       10.000    
     3 'Normalizat'    .80529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0840       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.

 FCN=   4769.293     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10411E-03    6.7970        .17149E-01** at limit **
   2  Index         2.4572        7.2545        .50000        .31248E-04
   3  Normalizat    .80506        .55561E-02    .31427E-03    .38417E-04
   4  Prefactor     1.0841        .41424E-02    .20342E-03    .46142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010411
  Index      = 2.45723
  Normalizat = 0.805064
  Prefactor  = 1.08413
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.293     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10411E-03    73.739        .17800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4572        8.7694        .50000       -.53350    
   3  Normalizat    .80506        .18464E-01    .12571E-04   -.99881    
   4  Prefactor     1.0841        .13766E-01    .40683E-04   -.89976    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26716e-08
Minuit parameter uncertainties:
  1  0.0348603
  2  342.762
  3  0.0184642
  4  0.0137662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128172': 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) = 4769.29341612
delta logL = 7.37735717848e-07

Extracting fit parameters...

4FGL J0920.3-0443
   Spectrum: PowerLaw
250    Prefactor:  1.041e-04  3.486e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.457e+00  3.428e+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.084e+00  1.377e-02  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.051e-01  1.846e-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/128172/cmap_HighResolution_620352001_620611201_4FGL_J0920.3-0443_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-08-31 06:57:41.395475', job_id='128172', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630418261.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='7.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1470' AND source_name='4FGL J0920.3-0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:57:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 128172: <4FGL_J0920.3-0443_daily_bin1470> in cluster <slac> Done

Job <4FGL_J0920.3-0443_daily_bin1470> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 06:46:27 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:46:29 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:29 2021
Terminated at Tue Aug 31 06:57:42 2021
Results reported at Tue Aug 31 06:57:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0920.3-0443_daily_bin1470 140.1 -4.7311 620352001 620611201 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 :                                   491.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            675 sec.

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

