/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 170 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_J0900.7-1243_daily_bin1101
RA = 135.175, Dec = -12.7201
tmin = 524707201, tmax = 524966401
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='933230', job_status='RUN', time_executed='2021-08-30 20:48:53.008435', time_epoch_executed='1630381733.01' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933230

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933230/ft1_4FGL_J0900.7-1243_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933230/ft1_4FGL_J0900.7-1243_daily_bin1101.fits outfile=/scratch/kocevski/933230/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin1101.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=524707201.0 tmax=524966401.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.67
user 3.14
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.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/933230/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin1101.fits evtable="EVENTS" outfile="/scratch/kocevski/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.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.79
user 0.34
sys 0.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/933230/ltcube_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.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/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits
.....................!
real 12.50
user 11.79
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/933230/ltcube_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.fits outfile=/scratch/kocevski/933230/expmap_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.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/933230/ltcube_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.fits
.....................!
real 190.78
user 185.06
sys 5.06

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/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.fits scfile=/scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits outfile=/scratch/kocevski/933230/cmap_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.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.83
user 0.36
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.fits scfile=/scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits outfile=/scratch/kocevski/933230/cmap_HighResolution_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.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.82
user 0.37
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933230/Model_4FGL_J0900.7-1243_daily_bin1101.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/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.fits.....................!
real 73.14
user 71.10
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.fits', '/scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits', expMap='/scratch/kocevski/933230/expmap_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.fits', expCube='/scratch/kocevski/933230/ltcube_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933230/Model_4FGL_J0900.7-1243_daily_bin1101.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/933230/ft1_filtered_4FGL_J0900.7-1243_daily_bin1101.fits
Spacecraft file(s): /scratch/kocevski/933230/ft2_4FGL_J0900.7-1243_daily_bin1101.fits
Exposure map: /scratch/kocevski/933230/expmap_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.fits
Exposure cube: /scratch/kocevski/933230/ltcube_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933230/Model_4FGL_J0900.7-1243_daily_bin1101.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) = 5860.42838958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25255       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12472E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12138E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.315       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2127       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65554E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .13021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11797E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.821       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.689       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3491       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7068       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .59782       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=   5860.423     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2261 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17722        7.0267       -.16623E-06   -.24825E-03
   2  Prefactor     .10000E-03    2.7110       -.19675E-06** at limit **
   3  norm          .10000E-03    8.8095        .11869E-06** at limit **
   4  norm          .10000E-03    4.4101        .40771E-07** at limit **
   5  Prefactor     .10000E-03    106.13       -.53748E-05** at limit **
   6  norm          17.312        11.157        .12065E-06    .39650E-04
   7  norm          4.2127        3.8437       -.21277E-06   -.33321E-04
   8  Prefactor     8.8827        7.6624       -.44448E-05   -.10442E-03
   9  Prefactor     .10000E-03    5.3224       -.69465E-07** at limit **
  10  Prefactor     .10000E-03    7.2462       -.38139E-06** at limit **
  11  norm          .10000E-03    5.6332       -.14381E-06** at limit **
  12  Prefactor     .10000E-03    16.965        .14858E-06** at limit **
  13  Prefactor     .10000E-03    25.677        .67418E-06** at limit **
  14  Prefactor     52.208        54.933       -.12342E-04    .11272E-04
  15  Prefactor     24.822        28.755        .41192E-07    .10080E-04
  16  Prefactor     .10000E-03    9.1403       -.41754E-06** at limit **
  17  Prefactor     22.688        17.582        .20525E-05    .59700E-05
  18  norm          .10000E-03    2.7358       -.84462E-07** at limit **
  19  norm          1.3492        2.7423       -.36579E-06   -.54574E-03
  20  Normalizat    1.7066        .22042        .15797E-05    .10084E-03
  21  Prefactor     .59799        .11580        .10687E-05    .14031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.177215
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.3121
  norm       = 4.2127
  Prefactor  = 8.8827
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.2082
  Prefactor  = 24.8218
  Prefactor  = 0.0001
  Prefactor  = 22.6879
  norm       = 0.0001
  norm       = 1.34919
  Normalizat = 1.70662
  Prefactor  = 0.597995
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.423     FROM HESSE     STATUS=OK           329 CALLS     2590 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17722        143.31        .39041E-02   -1.5624    
   2  Prefactor     .10000E-03    6.9943        .24443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.8158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4458        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    107.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.312        11.147        .96251E-04   -1.4876    
   7  norm          4.2127        3.8381        .13425E-03   -1.5297    
   8  Prefactor     8.8827        7.7371        .13447E-03   -1.5112    
   9  Prefactor     .10000E-03    5.3283        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.495        .59909E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    34.358        .35004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.208        54.925        .55499E-04   -1.4262    
  15  Prefactor     24.822        28.789        .80404E-04   -1.4711    
  16  Prefactor     .10000E-03    9.1416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.688        17.572        .84092E-04   -1.4755    
  18  norm          .10000E-03    2.7412        .12366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3492        2.7075        .17691E-03   -1.5476    
  20  Normalizat    1.7066        .24965        .26246E-03   -.72127    
  21  Prefactor     .59799        .13139        .22323E-03   -1.0767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28382e-09
Minuit parameter uncertainties:
  1  10.1005
  2  4.34022e-05
  3  6.08762e-06
  4  6.35145e-06
  5  0.000338228
  6  11.1482
  7  3.83829
  8  7.73802
  9  1.60336e-06
  10  0.000200554
  11  0.000368492
  12  0.000177717
  13  2.97656e-05
  14  54.9779
  15  28.8055
  16  5.45114e-06
  17  17.5761
  18  4.8917e-06
  19  2.70774
  20  0.249838
  21  0.131453
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.603e-06  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:  5.980e-01  1.315e-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:  1.707e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 135.175 -12.720
Photon Flux Upper Limit: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933230/likelihoodResults_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.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) = 5860.42400642
delta logL = -0.000890006081136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5860.42311649
delta logL = -7.16563590686e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5860.423     FROM MIGRAD    STATUS=FAILED       116 CALLS      269 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.535        .68913E-01** at limit **
   2  Index         1.0380        9.3589        .50000       -.53548E-05
   3  Normalizat    1.7066        .10664E-01    .26246E-03    .12613E-03
   4  Prefactor     .59799        .57321E-02    .22323E-03    .14199E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5860.423     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      430 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.535        .77118E-03** at limit **
   2  Index         1.0380        9.3589        .23518E-04   -.53548E-05
   3  Normalizat    1.7066        .10664E-01    .64953E-08    .12613E-03
   4  Prefactor     .59799        .57321E-02    .44331E-08    .14199E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5860.423     FROM MIGRAD    STATUS=FAILED        78 CALLS      508 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6236.2        .73156E-03** at limit **
   2  Index         1.0380        9.3512        .50000       -.53548E-05
   3  Normalizat    1.7066        .91878E-01    .10499E-04    .12626E-03
   4  Prefactor     .59799        .49389E-01    .17859E-05    .14260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.03804
  Normalizat = 1.70662
  Prefactor  = 0.597995
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.423     FROM HESSE     STATUS=OK            27 CALLS      535 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.171        .14631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0380        5.9214        .50000       -.91472    
   3  Normalizat    1.7066        .23524        .20997E-05   -.72127    
   4  Prefactor     .59799        .12630        .35717E-06   -1.0767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07642e-08
Minuit parameter uncertainties:
  1  4.89436e-05
  2  151.858
  3  0.235396
  4  0.126365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933230': 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): 1
logL (Free Index) = 5860.42310979
delta logL = 6.62015645503e-06

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.894e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.038e+00  1.519e+02  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:  5.980e-01  1.264e-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:  1.707e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 135.175 -12.720

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/933230/cmap_HighResolution_524707201_524966401_4FGL_J0900.7-1243_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-08-30 21:00:25.461455', job_id='933230', GAL2='0.60', fit_tolerance='1e-08', EG2='1.71', EG='1.71', time_epoch_completed='1630382425.46', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='6.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1101' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:00:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 933230: <4FGL_J0900.7-1243_daily_bin1101> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin1101> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 20:45:46 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:45:48 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:48 2021
Terminated at Mon Aug 30 21:00:25 2021
Results reported at Mon Aug 30 21:00:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin1101 135.175 -12.7201 524707201 524966401 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 :                                   603.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

