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


Performing analysis on: 4FGL_J0920.3-0443_daily_bin1327
RA = 140.1, Dec = -4.7311
tmin = 583286401, tmax = 583545601
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='126976', job_status='RUN', time_executed='2021-08-31 06:46:29.752865', time_epoch_executed='1630417589.75' WHERE source_name='4FGL J0920.3-0443' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126976/ft1_4FGL_J0920.3-0443_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126976/ft2_4FGL_J0920.3-0443_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126976/ft1_4FGL_J0920.3-0443_daily_bin1327.fits outfile=/scratch/kocevski/126976/ft1_filteredMKT_4FGL_J0920.3-0443_daily_bin1327.fits ra=140.1 dec=-4.7311 rad=12.0 tmin=583286401.0 tmax=583545601.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.22
user 3.25
sys 0.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126976/ft1_filtered_4FGL_J0920.3-0443_daily_bin1327.fits" evtable="EVENTS" scfile=/scratch/kocevski/126976/ft2_4FGL_J0920.3-0443_daily_bin1327.fits sctable="SC_DATA" outfile=/scratch/kocevski/126976/ltcube_583286401_583545601_4FGL_J0920.3-0443_daily_bin1327.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/126976/ft2_4FGL_J0920.3-0443_daily_bin1327.fits
.....................!
real 12.48
user 11.54
sys 0.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126976/ft1_filtered_4FGL_J0920.3-0443_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/126976/ft2_4FGL_J0920.3-0443_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/126976/ltcube_583286401_583545601_4FGL_J0920.3-0443_daily_bin1327.fits outfile=/scratch/kocevski/126976/expmap_583286401_583545601_4FGL_J0920.3-0443_daily_bin1327.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/126976/ltcube_583286401_583545601_4FGL_J0920.3-0443_daily_bin1327.fits
.....................!
real 191.50
user 186.13
sys 4.78

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/126976/ft1_filtered_4FGL_J0920.3-0443_daily_bin1327.fits scfile=/scratch/kocevski/126976/ft2_4FGL_J0920.3-0443_daily_bin1327.fits outfile=/scratch/kocevski/126976/cmap_583286401_583545601_4FGL_J0920.3-0443_daily_bin1327.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 1.13
user 0.36
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126976/ft1_filtered_4FGL_J0920.3-0443_daily_bin1327.fits scfile=/scratch/kocevski/126976/ft2_4FGL_J0920.3-0443_daily_bin1327.fits outfile=/scratch/kocevski/126976/cmap_HighResolution_583286401_583545601_4FGL_J0920.3-0443_daily_bin1327.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 1.06
user 0.40
sys 0.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126976/ft1_filtered_4FGL_J0920.3-0443_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/126976/ft2_4FGL_J0920.3-0443_daily_bin1327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126976/Model_4FGL_J0920.3-0443_daily_bin1327.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/126976/ft1_filtered_4FGL_J0920.3-0443_daily_bin1327.fits.....................!
real 70.26
user 67.85
sys 1.88

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6873       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.949       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0645       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3392       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6978       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9715       1.0000         .10000E-03   10000.    
     8 'norm      '    12.839       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.622       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.938       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25276E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .51039       1.0000         .10000E-03   10000.    
    18 'norm      '    .41853       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92975       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0725       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=   6588.888     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     2040 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6882        7.4018        .84360E-07   -.33364E-04
   2  Prefactor     18.951        21.265        .11250E-06    .37725E-05
   3  norm          2.0667        11.004        .19951E-05   -.27809E-04
   4  norm          3.3399        2.6983       -.70170E-07    .13785E-04
   5  Prefactor     3.8908        12.313        .18862E-06   -.29596E-04
   6  Prefactor     3.6982        4.1136        .31981E-07   -.38004E-05
   7  norm          2.9715        2.7942        .75829E-07   -.36006E-05
   8  norm          12.840        7.0410        .11112E-06   -.64278E-04
   9  Prefactor     15.174        15.680        .28391E-06    .11448E-04
  10  Prefactor     .10000E-03    3.0383        .14888E-06** at limit **
  11  Prefactor     .10000E-03    29.301        .23428E-06** at limit **
  12  Prefactor     11.622        12.575        .18531E-06   -.19432E-04
  13  Prefactor     57.934        33.393       -.20748E-07   -.47884E-04
  14  Prefactor     .10000E-03    81.466       -.46977E-05** at limit **
  15  norm          .10000E-03    4.0914       -.17724E-06** at limit **
  16  norm          .10000E-03    .93620       -.32271E-07** at limit **
  17  norm          .51057        .60197        .20097E-06    .22994E-03
  18  norm          .41910        1.9391        .15594E-05   -.11331E-03
  19  Normalizat    .92971        .19006       -.74776E-06   -.11030E-03
  20  Prefactor     1.0724        .14136       -.84915E-06   -.10213E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.6882
  Prefactor  = 18.9515
  norm       = 2.06669
  norm       = 3.33991
  Prefactor  = 3.89082
  Prefactor  = 3.69816
  norm       = 2.97151
  norm       = 12.8403
  Prefactor  = 15.1737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6223
  Prefactor  = 57.9344
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.510566
  norm       = 0.419096
  Normalizat = 0.929706
  Prefactor  = 1.07243
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.888     FROM HESSE     STATUS=OK           299 CALLS     2339 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6882        7.4019        .13600E-03   -1.5118    
   2  Prefactor     18.951        21.244        .92008E-04   -1.4837    
   3  norm          2.0667        10.832        .28757E-03   -1.5420    
   4  norm          3.3399        2.6818        .11197E-03   -1.5342    
   5  Prefactor     3.8908        12.160        .20462E-03   -1.5313    
   6  Prefactor     3.6982        4.1125        .16874E-03   -1.5323    
   7  norm          2.9715        2.7951        .12727E-03   -1.5363    
   8  norm          12.840        7.0499        .11179E-03   -1.4991    
   9  Prefactor     15.174        15.708        .10283E-03   -1.4929    
  10  Prefactor     .10000E-03    3.1501        .27631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.622        12.578        .11751E-03   -1.5026    
  13  Prefactor     57.934        33.434        .52705E-04   -1.4184    
  14  Prefactor     .10000E-03    83.921        .42921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.1367        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .93765        .76694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .51057        .58278        .65073E-03   -1.5565    
  18  norm          .41910        1.9746        .21387E-03   -1.5579    
  19  Normalizat    .92971        .22121        .28961E-03   -.95424    
  20  Prefactor     1.0724        .16335        .20602E-03   -.90353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72721e-11
Minuit parameter uncertainties:
  1  7.40271
  2  21.2523
  3  9.46524
  4  2.68195
  5  12.1681
  6  4.11286
  7  2.7952
  8  7.05031
  9  15.7127
  10  8.19548e-06
  11  3.87876e-05
  12  12.5811
  13  33.4446
  14  0.0010816
  15  1.08671e-05
  16  6.0956e-07
  17  0.582782
  18  1.81926
  19  0.221432
  20  0.163429
Done.

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

Extracting fit parameters...

4FGL J0920.3-0443
   Spectrum: PowerLaw
250    Prefactor:  1.517e+01  1.571e+01  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.072e+00  1.634e-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:  9.297e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 140.100 -4.731
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 9.59e-06 +/- 9.93e-06

TS (Fixed Index): 1.59
Ra Dec: 140.100 -4.731
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126976/likelihoodResults_583286401_583545601_4FGL_J0920.3-0443_daily_bin1327.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) = 6588.8300278
delta logL = 0.0575489124076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6588.82670697
delta logL = 0.0608697447669

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8537       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0064       1.0000          .0000       10.000    
     3 'Normalizat'    .91336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0808       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=   6588.827     FROM MIGRAD    STATUS=FAILED        95 CALLS      311 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8424        28.811        .12765E-03   -.39364E-03
   2  Index         3.0087        1.9370        .82457E-02    .49580E-03
   3  Normalizat    .91257        .22626        .29201E-03    .27105E-03
   4  Prefactor     1.0812        .16675        .20529E-03   -.29158E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6588.827     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      381 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8424        28.811        .25327E-03   -1.5080    
   2  Index         3.0087        1.9370        .88552E-03   -.40961    
   3  Normalizat    .91257        .22626        .33237E-03   -.96020    
   4  Prefactor     1.0812        .16675        .23712E-03   -.90070    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6588.827     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      410 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8429        19.628        .51062E-05    .23600E-04
   2  Index         3.0087        1.3391        .16491E-02   -.28285E-04
   3  Normalizat    .91256        .22126        .11680E-04    .56841E-04
   4  Prefactor     1.0812        .16445        .41058E-04   -.45632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.84286
  Index      = 3.00871
  Normalizat = 0.91256
  Prefactor  = 1.08119
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.827     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8429        18.678        .10212E-05   -1.5080    
   2  Index         3.0087        1.2738        .65966E-04   -.40962    
   3  Normalizat    .91256        .22093        .23361E-05   -.96020    
   4  Prefactor     1.0812        .16431        .82116E-05   -.90070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56918e-10
Minuit parameter uncertainties:
  1  18.6891
  2  1.29078
  3  0.221151
  4  0.164391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126976': 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) = 6588.8266984
delta logL = 0.0608783163143

Extracting fit parameters...

4FGL J0920.3-0443
   Spectrum: PowerLaw
250    Prefactor:  9.843e+00  1.869e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  3.009e+00  1.291e+00  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.081e+00  1.644e-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:  9.126e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 140.100 -4.731
Photon Index (Free Index): 3.01 +/- 1.29
Photon Flux (Free Index): 4.88e-08 +/- 5.67e-08
Energy Flux (Free Index): 9.69e-06 +/- 9.21e-06

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/126976/cmap_HighResolution_583286401_583545601_4FGL_J0920.3-0443_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='9.69e-06', photon_flux_error='3.74e-08', dlogl='6.09e-02', energy_flux='9.59e-06', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-08-31 06:56:22.518697', photon_index_error2='1.29', photon_index2='3.01', ts='1.59', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='9.21e-06', EG='0.93', time_epoch_completed='1630418182.52', return_code='0', job_id='126976', GAL2='1.08', EG2='0.91', return_code2='0', energy_flux_error='9.93e-06', photon_flux_error2='5.67e-08', ts2='1.73', photon_index='2.59' WHERE bin_id='1327' AND source_name='4FGL J0920.3-0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:56:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 126976: <4FGL_J0920.3-0443_daily_bin1327> in cluster <slac> Done

Job <4FGL_J0920.3-0443_daily_bin1327> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 06:42:18 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:42:20 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:42:20 2021
Terminated at Tue Aug 31 06:56:24 2021
Results reported at Tue Aug 31 06:56:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0920.3-0443_daily_bin1327 140.1 -4.7311 583286401 583545601 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 :                                   595.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             260.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            846 sec.

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

