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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin1165
RA = 135.175, Dec = -12.7201
tmin = 541296001, tmax = 541555201
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='933342', job_status='RUN', time_executed='2021-08-30 20:48:17.030725', time_epoch_executed='1630381697.03' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933342

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933342/ft1_4FGL_J0900.7-1243_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933342/ft1_4FGL_J0900.7-1243_daily_bin1165.fits outfile=/scratch/kocevski/933342/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin1165.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=541296001.0 tmax=541555201.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.99
user 3.49
sys 0.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.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/933342/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.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.77
user 0.35
sys 0.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/933342/ltcube_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.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/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits
.....................!
real 12.00
user 11.42
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/933342/ltcube_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.fits outfile=/scratch/kocevski/933342/expmap_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.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/933342/ltcube_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.fits
.....................!
real 190.45
user 185.34
sys 4.72

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0900.7-1243 @ 135.175 -12.7201

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.fits scfile=/scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits outfile=/scratch/kocevski/933342/cmap_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.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=135.175 yref=-12.7201 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.71
user 0.39
sys 0.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.fits scfile=/scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits outfile=/scratch/kocevski/933342/cmap_HighResolution_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.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=135.175 yref=-12.7201 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.74
user 0.40
sys 0.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933342/Model_4FGL_J0900.7-1243_daily_bin1165.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/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.fits.....................!
real 94.43
user 92.67
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.fits', '/scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits', expMap='/scratch/kocevski/933342/expmap_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.fits', expCube='/scratch/kocevski/933342/ltcube_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933342/Model_4FGL_J0900.7-1243_daily_bin1165.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0900.7-1243'

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  2.164e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.278e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933342/ft1_filtered_4FGL_J0900.7-1243_daily_bin1165.fits
Spacecraft file(s): /scratch/kocevski/933342/ft2_4FGL_J0900.7-1243_daily_bin1165.fits
Exposure map: /scratch/kocevski/933342/expmap_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.fits
Exposure cube: /scratch/kocevski/933342/ltcube_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933342/Model_4FGL_J0900.7-1243_daily_bin1165.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) = 9320.59191698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.148       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4112       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14637E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.6464       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82824E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7431       1.0000         .10000E-03   10000.    
    11 'norm      '    8.8107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .90636       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9989       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.566       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11874E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6669       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .53035       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9320.581     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2257 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2468       -.47459E-07** at limit **
   2  Prefactor     .10000E-03    2.3862       -.19462E-07** at limit **
   3  norm          18.152        15.094        .10496E-06   -.49304E-05
   4  norm          5.4145        5.1528       -.90488E-06   -.54217E-04
   5  Prefactor     .10000E-03    54.170        .14576E-05** at limit **
   6  norm          5.6491        5.2271       -.39492E-06   -.29098E-04
   7  norm          1.5148        1.8856        .12597E-06   -.11125E-04
   8  Prefactor     .13846        1.8411       -.97014E-07    .10722E-05
   9  Prefactor     33.652        13.332       -.12159E-05    .50162E-04
  10  Prefactor     1.7455        4.1752       -.37510E-07   -.20313E-03
  11  norm          8.8100        6.0658        .40746E-06   -.20897E-04
  12  Prefactor     3.6710        12.163        .10294E-04    .17242E-03
  13  Prefactor     .88927        13.137       -.15746E-05    .15788E-03
  14  Prefactor     1.9709        126.27       -.48467E-04   -.25707E-04
  15  Prefactor     34.555        27.856       -.25869E-05    .47304E-04
  16  Prefactor     .10000E-03    69.354       -.49742E-06** at limit **
  17  Prefactor     .10000E-03    4.2618       -.25949E-07** at limit **
  18  norm          2.6736        2.0018        .74971E-06   -.39985E-02
  19  norm          .10000E-03    .97517        .28069E-07** at limit **
  20  Normalizat    .53029        .17735        .20672E-05    .17512E-03
  21  Prefactor     1.2575        .10470       -.71454E-07    .35129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.152
  norm       = 5.4145
  Prefactor  = 0.0001
  norm       = 5.64909
  norm       = 1.51478
  Prefactor  = 0.13846
  Prefactor  = 33.6518
  Prefactor  = 1.74554
  norm       = 8.80999
  Prefactor  = 3.67101
  Prefactor  = 0.88927
  Prefactor  = 1.97091
  Prefactor  = 34.5552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67364
  norm       = 0.0001
  Normalizat = 0.530295
  Prefactor  = 1.25747
 **********
 **   18 **HESSE 
 **********

 FCN=   9320.581     FROM HESSE     STATUS=OK           327 CALLS     2584 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4266        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.152        15.090        .94016E-04   -1.4856    
   4  norm          5.4145        5.1495        .17275E-03   -1.5243    
   5  Prefactor     .10000E-03    55.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.6491        5.2180        .16905E-03   -1.5233    
   7  norm          1.5148        1.8628        .14106E-03   -1.5462    
   8  Prefactor     .13846        25.711        .24615E-02   -1.5634    
   9  Prefactor     33.652        13.288        .69065E-04   -1.4547    
  10  Prefactor     1.7455        4.1467        .29513E-03   -1.5444    
  11  norm          8.8100        6.0586        .13504E-03   -1.5114    
  12  Prefactor     3.6710        12.251        .21057E-03   -1.5325    
  13  Prefactor     .88927        86.712        .66941E-02   -1.5519    
  14  Prefactor     1.9709        129.43        .29295E-03   -1.5427    
  15  Prefactor     34.555        27.810        .68160E-04   -1.4532    
  16  Prefactor     .10000E-03    71.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6736        4.9777        .12478E-02   -1.5381    
  19  norm          .10000E-03    .97903        .93097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .53029        .18854        .39646E-03   -1.1103    
  21  Prefactor     1.2575        .11368        .16653E-03   -.84581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64785e-08
Minuit parameter uncertainties:
  1  1.4705e-05
  2  5.06321e-06
  3  15.0933
  4  5.14994
  5  0.000213129
  6  5.21839
  7  1.86283
  8  3.77387
  9  13.2894
  10  4.14736
  11  6.059
  12  12.2599
  13  17.5878
  14  32.0147
  15  27.8204
  16  0.000133201
  17  3.5502e-06
  18  4.97844
  19  1.79117e-06
  20  0.18877
  21  0.113705
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  3.365e+01  1.329e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.278e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.257e+00  1.137e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  5.303e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.57
Ra Dec: 135.175 -12.720
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 4.00e-08
Energy Flux (Fixed Index): 3.97e-05 +/- 1.57e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9320.55630831
delta logL = 0.0245103702728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9320.54988112
delta logL = 0.0309375595625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.687       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1900       1.0000          .0000       10.000    
     3 'Normalizat'    .53906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2546       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9320.550     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      256 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.728        206.01        .16542E-02   -.18433E-03
   2  Index         2.1914        2.4384        .13178        .69893E-04
   3  Normalizat    .53890        .10524        .88821E-01    .24647E-03
   4  Prefactor     1.2545        .44607E-01    .33451E-01   -.77888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.7278
  Index      = 2.19138
  Normalizat = 0.538897
  Prefactor  = 1.25445
 **********
 **   18 **HESSE 
 **********

 FCN=   9320.550     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.728        19.242        .66167E-04   -1.4495    
   2  Index         2.1914        .35931        .47508E-02   -.59647    
   3  Normalizat    .53890        .18137        .39351E-03   -1.1065    
   4  Prefactor     1.2545        .11176        .16671E-03   -.84672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56722e-10
Minuit parameter uncertainties:
  1  19.245
  2  0.359767
  3  0.181569
  4  0.111785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933342': 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) = 9320.54985032
delta logL = 0.0309683572523

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  3.673e+01  1.924e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.191e+00  3.598e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.364e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.254e+00  1.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  5.389e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.63
Ra Dec: 135.175 -12.720
Photon Index (Free Index): 2.19 +/- 0.36
Photon Flux (Free Index): 9.45e-08 +/- 4.63e-08
Energy Flux (Free Index): 4.31e-05 +/- 2.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/933342/cmap_HighResolution_541296001_541555201_4FGL_J0900.7-1243_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='4.31e-05', photon_flux_error='4.00e-08', dlogl='3.10e-02', energy_flux='3.97e-05', photon_flux2='9.45e-08', job_status='DONE', time_completed='2021-08-30 20:59:49.566327', photon_index_error2='0.36', photon_index2='2.19', ts='12.57', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='0.53', time_epoch_completed='1630382389.57', return_code='0', job_id='933342', GAL2='1.25', EG2='0.54', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='4.63e-08', ts2='12.63', photon_index='2.28' WHERE bin_id='1165' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 20:59:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 933342: <4FGL_J0900.7-1243_daily_bin1165> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin1165> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 20:45:52 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:45:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 20:45:54 2021
Terminated at Mon Aug 30 20:59:50 2021
Results reported at Mon Aug 30 20:59:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin1165 135.175 -12.7201 541296001 541555201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0900.7-1243 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

