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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin1601
RA = 135.175, Dec = -12.7201
tmin = 654307201, tmax = 654566401
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='541133', job_status='RUN', time_executed='2021-09-29 00:12:08.284842', time_epoch_executed='1632899528.28' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541133

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541133/ft1_4FGL_J0900.7-1243_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541133/ft2_4FGL_J0900.7-1243_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541133/ft1_4FGL_J0900.7-1243_daily_bin1601.fits outfile=/scratch/kocevski/541133/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin1601.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=654307201.0 tmax=654566401.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.28
user 3.99
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541133/ft2_4FGL_J0900.7-1243_daily_bin1601.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/541133/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/541133/ft1_filtered_4FGL_J0900.7-1243_daily_bin1601.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.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541133/ft1_filtered_4FGL_J0900.7-1243_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/541133/ft2_4FGL_J0900.7-1243_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/541133/ltcube_654307201_654566401_4FGL_J0900.7-1243_daily_bin1601.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/541133/ft2_4FGL_J0900.7-1243_daily_bin1601.fits
.....................!
real 11.70
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541133/ft1_filtered_4FGL_J0900.7-1243_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/541133/ft2_4FGL_J0900.7-1243_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/541133/ltcube_654307201_654566401_4FGL_J0900.7-1243_daily_bin1601.fits outfile=/scratch/kocevski/541133/expmap_654307201_654566401_4FGL_J0900.7-1243_daily_bin1601.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/541133/ltcube_654307201_654566401_4FGL_J0900.7-1243_daily_bin1601.fits
.....................!
real 192.45
user 187.08
sys 5.03

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/541133/ft1_filtered_4FGL_J0900.7-1243_daily_bin1601.fits scfile=/scratch/kocevski/541133/ft2_4FGL_J0900.7-1243_daily_bin1601.fits outfile=/scratch/kocevski/541133/cmap_654307201_654566401_4FGL_J0900.7-1243_daily_bin1601.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541133/ft1_filtered_4FGL_J0900.7-1243_daily_bin1601.fits scfile=/scratch/kocevski/541133/ft2_4FGL_J0900.7-1243_daily_bin1601.fits outfile=/scratch/kocevski/541133/cmap_HighResolution_654307201_654566401_4FGL_J0900.7-1243_daily_bin1601.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541133/ft1_filtered_4FGL_J0900.7-1243_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/541133/ft2_4FGL_J0900.7-1243_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541133/Model_4FGL_J0900.7-1243_daily_bin1601.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/541133/ft1_filtered_4FGL_J0900.7-1243_daily_bin1601.fits.....................!
real 70.38
user 69.06
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9796       1.0000         .10000E-03   10000.    
     3 'norm      '    41.958       1.0000         .10000E-03   10000.    
     4 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.674       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69887       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0104       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0303       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0560       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6336.411     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2173 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    11.534         .0000    ** at limit **
   2  Prefactor     2.9793        4.9333         .0000        .98371E-03
   3  norm          41.958        28.187         .0000        .25315E-03
   4  norm          .10002E-03    5.7550         .0000    ** at limit **
   5  Prefactor     10.671        20.775         .0000        .56306E-04
   6  norm          .10006E-03    5.5477         .0000    ** at limit **
   7  norm          .10000E-03    1.6699         .0000    ** at limit **
   8  Prefactor     .69863        6.7101         .0000        .35462E-01
   9  Prefactor     8.7151        11.978         .0000        .11103E-02
  10  Prefactor     .10003E-03    4.9412         .0000    ** at limit **
  11  norm          1.1873        4.7484         .0000        .19999E-02
  12  Prefactor     .10000E-03    4.4748         .0000    ** at limit **
  13  Prefactor     .10001E-03    90.523         .0000    ** at limit **
  14  Prefactor     16.051        26.431         .0000        .81098E-03
  15  Prefactor     .10001E-03    16.370         .0000    ** at limit **
  16  Prefactor     .10001E-03    11.721         .0000    ** at limit **
  17  Prefactor     .10000E-03    28.059         .0000    ** at limit **
  18  norm          .10001E-03    4.6058         .0000    ** at limit **
  19  norm          5.0099        4.4081         .0000       -.13037E-02
  20  Normalizat    1.0304        .21068         .0000        .16608E-04
  21  Prefactor     1.0560        .12466         .0000       -.20746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 2.97933
  norm       = 41.9577
  norm       = 0.000100025
  Prefactor  = 10.6705
  norm       = 0.000100056
  norm       = 0.0001
  Prefactor  = 0.698626
  Prefactor  = 8.71512
  Prefactor  = 0.000100028
  norm       = 1.18735
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  Prefactor  = 16.0512
  Prefactor  = 0.000100005
  Prefactor  = 0.000100015
  Prefactor  = 0.000100005
  norm       = 0.000100014
  norm       = 5.00994
  Normalizat = 1.03043
  Prefactor  = 1.05602
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.411     FROM HESSE     STATUS=OK           309 CALLS     2482 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    11.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9793        4.9231        .21986E-03   -1.5363    
   3  norm          41.958        28.166        .61886E-04   -1.4412    
   4  norm          .10002E-03    5.9975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.671        20.798        .12263E-03   -1.5055    
   6  norm          .10006E-03    5.6546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6936        .10038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .69863        6.8401        .19509E-02   -1.5541    
   9  Prefactor     8.7151        11.971        .67885E-03   -1.5117    
  10  Prefactor     .10003E-03    5.0024        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1873        4.7059        .33531E-03   -1.5490    
  12  Prefactor     .10000E-03    4.4777        .16445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    91.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.051        26.440        .99953E-04   -1.4906    
  15  Prefactor     .10001E-03    16.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    11.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    4.6405        .16680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0099        4.4060        .15216E-03   -1.5260    
  20  Normalizat    1.0304        .24526        .31614E-03   -.92018    
  21  Prefactor     1.0560        .14535        .18362E-03   -.90885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83946e-08
Minuit parameter uncertainties:
  1  0.000562136
  2  4.92381
  3  28.1754
  4  0.000768582
  5  20.8119
  6  0.00112977
  7  8.75326e-07
  8  4.37237
  9  11.974
  10  0.000745731
  11  4.70738
  12  0.000170005
  13  0.00149188
  14  26.4588
  15  0.000579039
  16  0.000832499
  17  0.000738752
  18  0.000513024
  19  4.40624
  20  0.245525
  21  0.145401
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  8.715e+00  1.197e+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.056e+00  1.454e-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.030e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 135.175 -12.720
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541133/likelihoodResults_654307201_654566401_4FGL_J0900.7-1243_daily_bin1601.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) = 6336.30647822
delta logL = 0.104413096439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6336.3010161
delta logL = 0.109875224471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.126       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9420       1.0000          .0000       10.000    
     3 'Normalizat'    1.0383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0527       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=   6336.301     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      237 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.126        563.63        .28759E-02   -.48568E-04
   2  Index         1.9418        5.8469        .26134        .26455E-04
   3  Normalizat    1.0383        .80875E-01    .71203E-01    .15404E-04
   4  Prefactor     1.0527        .41237E-01    .39752E-01    .46998E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1264
  Index      = 1.94181
  Normalizat = 1.0383
  Prefactor  = 1.05275
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.301     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.126        16.055        .11503E-03   -1.5011    
   2  Index         1.9418        .68217        .88864E-02   -.65813    
   3  Normalizat    1.0383        .24085        .31505E-03   -.91758    
   4  Prefactor     1.0527        .14235        .18384E-03   -.90991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67556e-10
Minuit parameter uncertainties:
  1  16.0607
  2  0.685597
  3  0.241104
  4  0.142397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541133': 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) = 6336.30101607
delta logL = 0.109875250015

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.213e+01  1.606e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.942e+00  6.856e-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.053e+00  1.424e-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.038e+00  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 135.175 -12.720
Photon Index (Free Index): 1.94 +/- 0.69
Photon Flux (Free Index): 2.05e-08 +/- 3.13e-08
Energy Flux (Free Index): 1.65e-05 +/- 2.70e-05

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/541133/cmap_HighResolution_654307201_654566401_4FGL_J0900.7-1243_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='1.10e-01', photon_flux2='2.05e-08', job_status='DONE', time_completed='2021-09-29 00:22:08.172439', photon_index_error2='0.69', photon_index2='1.94', ts='0.78', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='2.70e-05', EG='1.03', time_epoch_completed='1632900128.17', return_code='0', job_id='541133', GAL2='1.05', EG2='1.04', return_code2='0', photon_flux_error2='3.13e-08', ts2='1.00', photon_index='2.28' WHERE bin_id='1601' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:22:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 541133: <4FGL_J0900.7-1243_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin1601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 00:10:50 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:10:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:10:52 2021
Terminated at Wed Sep 29 00:22:08 2021
Results reported at Wed Sep 29 00:22:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin1601 135.175 -12.7201 654307201 654566401 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

