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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin893
RA = 135.175, Dec = -12.7201
tmin = 470793601, tmax = 471052801
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='931550', job_status='RUN', time_executed='2021-08-30 20:43:59.995066', time_epoch_executed='1630381440.0' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931550/ft1_4FGL_J0900.7-1243_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931550/ft2_4FGL_J0900.7-1243_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931550/ft1_4FGL_J0900.7-1243_daily_bin893.fits outfile=/scratch/kocevski/931550/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin893.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=470793601.0 tmax=471052801.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.87
user 3.26
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931550/ft1_filtered_4FGL_J0900.7-1243_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/931550/ft2_4FGL_J0900.7-1243_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/931550/ltcube_470793601_471052801_4FGL_J0900.7-1243_daily_bin893.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/931550/ft2_4FGL_J0900.7-1243_daily_bin893.fits
.....................!
real 12.14
user 11.50
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931550/ft1_filtered_4FGL_J0900.7-1243_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/931550/ft2_4FGL_J0900.7-1243_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/931550/ltcube_470793601_471052801_4FGL_J0900.7-1243_daily_bin893.fits outfile=/scratch/kocevski/931550/expmap_470793601_471052801_4FGL_J0900.7-1243_daily_bin893.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/931550/ltcube_470793601_471052801_4FGL_J0900.7-1243_daily_bin893.fits
.....................!
real 191.90
user 186.61
sys 4.83

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/931550/ft1_filtered_4FGL_J0900.7-1243_daily_bin893.fits scfile=/scratch/kocevski/931550/ft2_4FGL_J0900.7-1243_daily_bin893.fits outfile=/scratch/kocevski/931550/cmap_470793601_471052801_4FGL_J0900.7-1243_daily_bin893.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/931550/ft1_filtered_4FGL_J0900.7-1243_daily_bin893.fits scfile=/scratch/kocevski/931550/ft2_4FGL_J0900.7-1243_daily_bin893.fits outfile=/scratch/kocevski/931550/cmap_HighResolution_470793601_471052801_4FGL_J0900.7-1243_daily_bin893.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.83
user 0.37
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931550/ft1_filtered_4FGL_J0900.7-1243_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/931550/ft2_4FGL_J0900.7-1243_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931550/Model_4FGL_J0900.7-1243_daily_bin893.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/931550/ft1_filtered_4FGL_J0900.7-1243_daily_bin893.fits.....................!
real 66.25
user 64.53
sys 1.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.4256       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4848       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.9102       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14761E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8874       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.8232       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4949       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88218       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1449       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=   5973.085     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     1909 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.481        13.566       -.11573E-06   -.60298E-05
   2  Prefactor     .10000E-03    4.0243        .49842E-08** at limit **
   3  norm          5.4219        19.730        .13217E-05   -.14442E-05
   4  norm          3.2271        7.6657       -.27821E-06   -.51543E-03
   5  Prefactor     .10000E-03    7.4518       -.32824E-07** at limit **
   6  norm          .10000E-03    4.9457       -.21818E-07** at limit **
   7  norm          .10000E-03    1.0583        .11950E-07** at limit **
   8  Prefactor     2.4845        3.5169        .13832E-06   -.98963E-03
   9  Prefactor     2.6251        11.549       -.20147E-06   -.12142E-04
  10  Prefactor     .10000E-03    4.0295        .41490E-08** at limit **
  11  norm          9.9117        6.5608       -.20274E-05   -.21597E-04
  12  Prefactor     .10000E-03    6.8245       -.60053E-07** at limit **
  13  Prefactor     .10000E-03    124.46        .38042E-06** at limit **
  14  Prefactor     5.9024        61.442        .21523E-04    .80161E-06
  15  Prefactor     .10000E-03    12.505       -.89079E-07** at limit **
  16  Prefactor     .10000E-03    42.591        .81471E-06** at limit **
  17  Prefactor     .10000E-03    19.506        .27608E-06** at limit **
  18  norm          8.8248        7.7927        .38169E-06   -.18208E-04
  19  norm          2.4950        2.5755       -.32500E-07   -.13735E-04
  20  Normalizat    .88199        .21239       -.76062E-06   -.98343E-05
  21  Prefactor     1.1450        .12609       -.17448E-07   -.42772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4806
  Prefactor  = 0.0001
  norm       = 5.42189
  norm       = 3.2271
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 2.48454
  Prefactor  = 2.62507
  Prefactor  = 0.0001
  norm       = 9.91165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.90236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82482
  norm       = 2.49501
  Normalizat = 0.881987
  Prefactor  = 1.14495
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.085     FROM HESSE     STATUS=OK           319 CALLS     2228 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.481        13.543        .10910E-03   -1.4973    
   2  Prefactor     .10000E-03    4.0915        .15135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.4219        19.695        .17251E-03   -1.5242    
   4  norm          3.2271        8.5948        .11277E-02   -1.5349    
   5  Prefactor     .10000E-03    7.4552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    30.101        .33110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0658        .77598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4845        6.7306        .12967E-02   -1.5393    
   9  Prefactor     2.6251        11.427        .25180E-03   -1.5384    
  10  Prefactor     .10000E-03    4.0501        .15149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.9117        6.5783        .12729E-03   -1.5078    
  12  Prefactor     .10000E-03    6.8327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    125.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9024        61.776        .16551E-03   -1.5222    
  15  Prefactor     .10000E-03    12.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.8248        7.7941        .13494E-03   -1.5114    
  19  norm          2.4950        2.5791        .12293E-03   -1.5392    
  20  Normalizat    .88199        .23834        .33413E-03   -.97096    
  21  Prefactor     1.1450        .14583        .18064E-03   -.88042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20165e-09
Minuit parameter uncertainties:
  1  13.5465
  2  2.72819e-06
  3  19.7183
  4  8.59805
  5  2.00172e-06
  6  0.00044612
  7  8.17913e-07
  8  6.73266
  9  10.9572
  10  1.71261e-06
  11  6.57878
  12  1.68786e-05
  13  8.56699e-05
  14  38.2408
  15  5.28425e-06
  16  3.85047e-05
  17  5.60588e-06
  18  7.795
  19  2.57925
  20  0.238625
  21  0.145879
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  2.625e+00  1.096e+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.145e+00  1.459e-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:  8.820e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/931550/likelihoodResults_470793601_471052801_4FGL_J0900.7-1243_daily_bin893.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) = 5972.61968763
delta logL = 0.465505607356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5972.60275927
delta logL = 0.482433967525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30257E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.2994       1.0000          .0000       10.000    
     3 'Normalizat'    .80189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1738       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=   5972.603     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      292 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29540E-01    .47492        .29444E-02    .44114E-02
   2  Index         5.3100        2.5427        .97223E-01    .15364E-03
   3  Normalizat    .80116        .46919E-01    .78910E-01    .31021E-05
   4  Prefactor     1.1741        .28583E-01    .35282E-01   -.24711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0295396
  Index      = 5.31005
  Normalizat = 0.801162
  Prefactor  = 1.17413
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.603     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      327 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29540E-01    1.4603        .13351E-03   -1.5674    
   2  Index         5.3100        7.4155        .51782E-02    .62049E-01
   3  Normalizat    .80116        .17543        .34934E-03   -1.0003    
   4  Prefactor     1.1741        .10436        .17865E-03   -.87131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.74872e-08
Minuit parameter uncertainties:
  1  0.4147
  2  5.9463
  3  0.175553
  4  0.104381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931550': 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): 102
logL (Free Index) = 5972.60275128
delta logL = 0.482441951681

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  2.954e-02  4.147e-01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  5.310e+00  5.946e+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:  1.174e+00  1.044e-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:  8.012e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 135.175 -12.720
Photon Index (Free Index): 5.31 +/- 5.95
Photon Flux (Free Index): 7.32e-08 +/- 7.12e-08
Energy Flux (Free Index): 9.50e-06 +/- 9.50e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/931550/cmap_HighResolution_470793601_471052801_4FGL_J0900.7-1243_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', comment='SUCCESS', energy_flux2='9.50e-06', dlogl='4.82e-01', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-08-30 20:53:38.208036', photon_index_error2='5.95', photon_index2='5.31', ts='0.07', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='9.90e-08', energy_flux_error2='9.50e-06', EG='0.88', time_epoch_completed='1630382018.21', return_code='0', job_id='931550', GAL2='1.17', EG2='0.80', return_code2='102', photon_flux_error2='7.12e-08', ts2='1.16', photon_index='2.28' WHERE bin_id='893' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 20:53:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 931550: <4FGL_J0900.7-1243_daily_bin893> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin893> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 30 20:40:44 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:40:47 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:40:47 2021
Terminated at Mon Aug 30 20:53:38 2021
Results reported at Mon Aug 30 20:53:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin893 135.175 -12.7201 470793601 471052801 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 :                                   580.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

