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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin599
RA = 135.175, Dec = -12.7201
tmin = 394588801, tmax = 394848001
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='929903', job_status='RUN', time_executed='2021-08-30 20:38:32.426533', time_epoch_executed='1630381112.43' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929903/ft1_4FGL_J0900.7-1243_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929903/ft2_4FGL_J0900.7-1243_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929903/ft1_4FGL_J0900.7-1243_daily_bin599.fits outfile=/scratch/kocevski/929903/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin599.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=394588801.0 tmax=394848001.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 6.48
user 4.28
sys 2.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929903/ft1_filtered_4FGL_J0900.7-1243_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/929903/ft2_4FGL_J0900.7-1243_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/929903/ltcube_394588801_394848001_4FGL_J0900.7-1243_daily_bin599.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/929903/ft2_4FGL_J0900.7-1243_daily_bin599.fits
.....................!
real 14.46
user 11.59
sys 2.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929903/ft1_filtered_4FGL_J0900.7-1243_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/929903/ft2_4FGL_J0900.7-1243_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/929903/ltcube_394588801_394848001_4FGL_J0900.7-1243_daily_bin599.fits outfile=/scratch/kocevski/929903/expmap_394588801_394848001_4FGL_J0900.7-1243_daily_bin599.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/929903/ltcube_394588801_394848001_4FGL_J0900.7-1243_daily_bin599.fits
.....................!
real 195.13
user 187.38
sys 7.17

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/929903/ft1_filtered_4FGL_J0900.7-1243_daily_bin599.fits scfile=/scratch/kocevski/929903/ft2_4FGL_J0900.7-1243_daily_bin599.fits outfile=/scratch/kocevski/929903/cmap_394588801_394848001_4FGL_J0900.7-1243_daily_bin599.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 2.45
user 0.39
sys 2.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929903/ft1_filtered_4FGL_J0900.7-1243_daily_bin599.fits scfile=/scratch/kocevski/929903/ft2_4FGL_J0900.7-1243_daily_bin599.fits outfile=/scratch/kocevski/929903/cmap_HighResolution_394588801_394848001_4FGL_J0900.7-1243_daily_bin599.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 2.54
user 0.37
sys 2.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929903/ft1_filtered_4FGL_J0900.7-1243_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/929903/ft2_4FGL_J0900.7-1243_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929903/Model_4FGL_J0900.7-1243_daily_bin599.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/929903/ft1_filtered_4FGL_J0900.7-1243_daily_bin599.fits.....................!
real 87.88
user 83.16
sys 3.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.616       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6563       1.0000         .10000E-03   10000.    
     3 'norm      '    6.9738       1.0000         .10000E-03   10000.    
     4 'norm      '    4.6525       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1614       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1860       1.0000         .10000E-03   10000.    
     7 'norm      '    5.0609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1671       1.0000         .10000E-03   10000.    
    11 'norm      '    12.484       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6808       1.0000         .10000E-03   10000.    
    18 'norm      '    14.063       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8275       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96591       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=   8108.681     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     1868 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.615        8.5803       -.24102E-06    .50740E-06
   2  Prefactor     5.6563        4.1062       -.10294E-05   -.41262E-04
   3  norm          6.9718        12.077        .26559E-06   -.22407E-04
   4  norm          4.6524        5.8235        .13827E-05   -.38324E-03
   5  Prefactor     2.1432        82.208       -.60696E-04   -.29819E-04
   6  norm          6.1854        6.2703        .49331E-06    .94827E-04
   7  norm          5.0607        2.8774        .27388E-06    .34625E-03
   8  Prefactor     1.6357        3.8378       -.13669E-05   -.12127E-02
   9  Prefactor     .10000E-03    3.3076       -.49823E-07** at limit **
  10  Prefactor     4.1670        5.5920        .61937E-06   -.15632E-03
  11  norm          12.484        6.8424       -.48851E-06   -.12375E-03
  12  Prefactor     .10000E-03    18.548        .11179E-04** at limit **
  13  Prefactor     .10000E-03    16.524       -.71228E-05** at limit **
  14  Prefactor     .10000E-03    13.807        .19473E-05** at limit **
  15  Prefactor     .10000E-03    16.457       -.75440E-05** at limit **
  16  Prefactor     .10000E-03    44.420        .84101E-06** at limit **
  17  Prefactor     6.6803        7.4191       -.23446E-06   -.21082E-04
  18  norm          14.057        7.7854       -.44893E-06   -.40857E-04
  19  norm          3.8275        3.0976       -.31610E-06   -.12081E-03
  20  Normalizat    .90271        .17250        .42247E-05    .11219E-03
  21  Prefactor     .96586        .98872E-01   -.44536E-06    .57744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6154
  Prefactor  = 5.65625
  norm       = 6.97183
  norm       = 4.6524
  Prefactor  = 2.14318
  norm       = 6.18544
  norm       = 5.06068
  Prefactor  = 1.63573
  Prefactor  = 0.0001
  Prefactor  = 4.16698
  norm       = 12.4842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.68031
  norm       = 14.0568
  norm       = 3.82751
  Normalizat = 0.90271
  Prefactor  = 0.965856
 **********
 **   18 **HESSE 
 **********

 FCN=   8108.681     FROM HESSE     STATUS=OK           323 CALLS     2191 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.615        8.5767        .12297E-03   -1.5056    
   2  Prefactor     5.6563        4.1109        .15081E-03   -1.5232    
   3  norm          6.9718        12.069        .15192E-03   -1.5180    
   4  norm          4.6524        5.7934        .18658E-03   -1.5277    
   5  Prefactor     2.1432        84.442        .28018E-03   -1.5415    
   6  norm          6.1854        6.2576        .16141E-03   -1.5211    
   7  norm          5.0607        2.8757        .11012E-03   -1.5258    
   8  Prefactor     1.6357        3.8797        .25895E-03   -1.5452    
   9  Prefactor     .10000E-03    3.3133        .15991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1670        5.5803        .19744E-03   -1.5300    
  11  norm          12.484        6.8564        .11337E-03   -1.5001    
  12  Prefactor     .10000E-03    18.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6803        7.4173        .15525E-03   -1.5191    
  18  norm          14.057        7.7858        .10681E-03   -1.4958    
  19  norm          3.8275        3.0972        .13857E-03   -1.5317    
  20  Normalizat    .90271        .19729        .30565E-03   -.96365    
  21  Prefactor     .96586        .11413        .17817E-03   -.93876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12688e-09
Minuit parameter uncertainties:
  1  8.57767
  2  4.1111
  3  12.0735
  4  5.79406
  5  26.9456
  6  6.2583
  7  2.87575
  8  3.88034
  9  1.02921e-06
  10  5.58103
  11  6.8568
  12  0.000132799
  13  2.74679e-05
  14  2.83826e-05
  15  3.56906e-05
  16  2.13099e-05
  17  7.41832
  18  7.78633
  19  3.09731
  20  0.197452
  21  0.114162
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.029e-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:  9.659e-01  1.142e-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:  9.027e-01  1.975e-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: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929903/likelihoodResults_394588801_394848001_4FGL_J0900.7-1243_daily_bin599.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) = 8108.68218313
delta logL = -0.00143696215036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8108.68074619
delta logL = -1.68602127815e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2653       1.0000          .0000       10.000    
     3 'Normalizat'    .90273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96582       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=   8108.681     FROM MIGRAD    STATUS=FAILED        88 CALLS      241 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    765.82        .16101E-02** at limit **
   2  Index         2.2524        6.8293        .50000        .32121E-04
   3  Normalizat    .90271        .13776        .30565E-03    .13836E-04
   4  Prefactor     .96585        .83357E-01    .17817E-03    .19653E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8108.681     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      433 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    765.82        .26750E-03** at limit **
   2  Index         2.2524        6.8293        .13853E-05    .32121E-04
   3  Normalizat    .90271        .13776        .10441E-06    .13836E-04
   4  Prefactor     .96585        .83357E-01    .28192E-07    .19653E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8108.681     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      467 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5679        .32202E-03** at limit **
   2  Index         2.2521        6.1238        .50000        .32105E-04
   3  Normalizat    .90271        .18299        .12226E-04    .18783E-04
   4  Prefactor     .96585        .11081        .71267E-05    .26481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.25208
  Normalizat = 0.902712
  Prefactor  = 0.965854
 **********
 **   18 **HESSE 
 **********

 FCN=   8108.681     FROM HESSE     STATUS=OK            29 CALLS      496 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3623        .64404E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2521        6.1259        .50000       -.58187    
   3  Normalizat    .90271        .18293        .24452E-05   -.96365    
   4  Prefactor     .96585        .11079        .14253E-05   -.93877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97501e-09
Minuit parameter uncertainties:
  1  0.000216705
  2  4.18193
  3  0.183057
  4  0.110812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929903': 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) = 8108.68074597
delta logL = 2.05231117434e-07

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.167e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.252e+00  4.182e+00  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:  9.659e-01  1.108e-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:  9.027e-01  1.831e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/929903/cmap_HighResolution_394588801_394848001_4FGL_J0900.7-1243_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-08-30 20:50:28.557399', job_id='929903', GAL2='0.97', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630381828.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='599' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 20:50:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 929903: <4FGL_J0900.7-1243_daily_bin599> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin599> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 20:35:21 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:35:23 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:35:23 2021
Terminated at Mon Aug 30 20:50:30 2021
Results reported at Mon Aug 30 20:50:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin599 135.175 -12.7201 394588801 394848001 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 :                                   742.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

