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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin650
RA = 135.175, Dec = -12.7201
tmin = 407808001, tmax = 408067201
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='929980', job_status='RUN', time_executed='2021-08-30 20:36:39.967451', time_epoch_executed='1630380999.97' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929980/ft1_4FGL_J0900.7-1243_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929980/ft2_4FGL_J0900.7-1243_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929980/ft1_4FGL_J0900.7-1243_daily_bin650.fits outfile=/scratch/kocevski/929980/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin650.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=407808001.0 tmax=408067201.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.14
user 3.84
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929980/ft1_filtered_4FGL_J0900.7-1243_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/929980/ft2_4FGL_J0900.7-1243_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/929980/ltcube_407808001_408067201_4FGL_J0900.7-1243_daily_bin650.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/929980/ft2_4FGL_J0900.7-1243_daily_bin650.fits
.....................!
real 12.31
user 11.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929980/ft1_filtered_4FGL_J0900.7-1243_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/929980/ft2_4FGL_J0900.7-1243_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/929980/ltcube_407808001_408067201_4FGL_J0900.7-1243_daily_bin650.fits outfile=/scratch/kocevski/929980/expmap_407808001_408067201_4FGL_J0900.7-1243_daily_bin650.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/929980/ltcube_407808001_408067201_4FGL_J0900.7-1243_daily_bin650.fits
.....................!
real 194.92
user 187.95
sys 5.97

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/929980/ft1_filtered_4FGL_J0900.7-1243_daily_bin650.fits scfile=/scratch/kocevski/929980/ft2_4FGL_J0900.7-1243_daily_bin650.fits outfile=/scratch/kocevski/929980/cmap_407808001_408067201_4FGL_J0900.7-1243_daily_bin650.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929980/ft1_filtered_4FGL_J0900.7-1243_daily_bin650.fits scfile=/scratch/kocevski/929980/ft2_4FGL_J0900.7-1243_daily_bin650.fits outfile=/scratch/kocevski/929980/cmap_HighResolution_407808001_408067201_4FGL_J0900.7-1243_daily_bin650.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929980/ft1_filtered_4FGL_J0900.7-1243_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/929980/ft2_4FGL_J0900.7-1243_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929980/Model_4FGL_J0900.7-1243_daily_bin650.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/929980/ft1_filtered_4FGL_J0900.7-1243_daily_bin650.fits.....................!
real 90.33
user 88.79
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7419       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.682       1.0000         .10000E-03   10000.    
     6 'norm      '    .12681E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .94309E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17320E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5753       1.0000         .10000E-03   10000.    
    11 'norm      '    12.539       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8312       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82721E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.061       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .57746       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2421       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=   8872.865     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2259 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2314        .22937E-06** at limit **
   2  Prefactor     .10000E-03    1.9235       -.14699E-06** at limit **
   3  norm          .10000E-03    4.5524       -.42901E-06** at limit **
   4  norm          3.7452        5.8826        .42669E-05   -.45120E-03
   5  Prefactor     38.682        24.679       -.13316E-05   -.43017E-04
   6  norm          .10001E-03    3.7715        .93376E-06** at limit **
   7  norm          .10349        1.0774        .35393E-07   -.91073E-03
   8  Prefactor     .10000E-03    2.5191       -.58567E-07** at limit **
   9  Prefactor     6.0322        7.7581        .38023E-06   -.17761E-03
  10  Prefactor     3.5759        6.6903       -.11736E-05   -.32022E-03
  11  norm          12.539        7.3882       -.94887E-06    .25632E-03
  12  Prefactor     7.7819        15.418        .19476E-04    .81123E-03
  13  Prefactor     .10000E-03    9.5991       -.10561E-06** at limit **
  14  Prefactor     .10000E-03    168.35       -.15193E-03** at limit **
  15  Prefactor     .10000E-03    14.202        .38890E-05** at limit **
  16  Prefactor     .10000E-03    16.636       -.71191E-05** at limit **
  17  Prefactor     19.063        11.416       -.26029E-06    .12171E-04
  18  norm          .10000E-03    1.0063        .11431E-06** at limit **
  19  norm          .10000E-03    1.0416        .70414E-07** at limit **
  20  Normalizat    .57745        .18431       -.40106E-05    .46141E-03
  21  Prefactor     1.2420        .10768        .22413E-06    .55827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.74521
  Prefactor  = 38.6819
  norm       = 0.000100007
  norm       = 0.103495
  Prefactor  = 0.0001
  Prefactor  = 6.03216
  Prefactor  = 3.57591
  norm       = 12.5392
  Prefactor  = 7.78187
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0627
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.577447
  Prefactor  = 1.242
 **********
 **   18 **HESSE 
 **********

 FCN=   8872.865     FROM HESSE     STATUS=OK           317 CALLS     2576 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2373        .16537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9418        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.5531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7452        5.8322        .20873E-03   -1.5321    
   5  Prefactor     38.682        24.648        .64444E-04   -1.4463    
   6  norm          .10001E-03    18.012        .34923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10349        6.0366        .18557E-02   -1.5644    
   8  Prefactor     .10000E-03    5.4105        .28673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0322        7.6973        .16349E-03   -1.5217    
  10  Prefactor     3.5759        6.6684        .21373E-03   -1.5330    
  11  norm          12.539        7.3846        .11312E-03   -1.5000    
  12  Prefactor     7.7819        15.759        .14329E-03   -1.5150    
  13  Prefactor     .10000E-03    9.6113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    171.70        .41764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.063        11.410        .91738E-04   -1.4834    
  18  norm          .10000E-03    1.0071        .92277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0471        .93877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .57745        .19942        .39005E-03   -1.0895    
  21  Prefactor     1.2420        .11808        .16747E-03   -.85048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3833e-09
Minuit parameter uncertainties:
  1  4.50458e-06
  2  4.56672e-06
  3  2.1183e-06
  4  5.83313
  5  24.6547
  6  0.000721516
  7  1.58023
  8  3.27173e-05
  9  7.69855
  10  6.66977
  11  7.38517
  12  15.7674
  13  1.39133e-05
  14  0.00171547
  15  1.24181e-05
  16  4.22876e-05
  17  11.4115
  18  1.47015e-06
  19  1.48123e-06
  20  0.199663
  21  0.118103
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  6.032e+00  7.699e+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

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

EG_v02
   Spectrum: FileFunction
537   Normalization:  5.774e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/929980/likelihoodResults_407808001_408067201_4FGL_J0900.7-1243_daily_bin650.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) = 8872.80243628
delta logL = 0.062824795652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8872.80029348
delta logL = 0.0649675981113

Fit tolerance = 1e-08

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

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

 FCN=   8872.800     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      300 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6155        9.9573        .14532E-03    .20153E-03
   2  Index         1.9825        .79857        .11353E-01    .46910E-04
   3  Normalizat    .58294        .19013        .38829E-03    .11583E-03
   4  Prefactor     1.2401        .11656        .16757E-03    .12063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.61546
  Index      = 1.98249
  Normalizat = 0.582938
  Prefactor  = 1.24014
 **********
 **   18 **HESSE 
 **********

 FCN=   8872.800     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6155        9.8260        .58128E-05   -1.5156    
   2  Index         1.9825        .78834        .45412E-03   -.64789    
   3  Normalizat    .58294        .19019        .15532E-04   -1.0871    
   4  Prefactor     1.2401        .11661        .67027E-05   -.85105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19538e-10
Minuit parameter uncertainties:
  1  9.82812
  2  0.793571
  3  0.190406
  4  0.116637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929980': 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) = 8872.80029347
delta logL = 0.0649676027642

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  7.615e+00  9.828e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.982e+00  7.936e-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.240e+00  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  5.829e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 135.175 -12.720
Photon Index (Free Index): 1.98 +/- 0.79
Photon Flux (Free Index): 1.38e-08 +/- 2.23e-08
Energy Flux (Free Index): 9.93e-06 +/- 1.59e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', comment='SUCCESS', energy_flux2='9.93e-06', dlogl='6.50e-02', photon_flux2='1.38e-08', job_status='DONE', time_completed='2021-08-30 20:48:57.994220', photon_index_error2='0.79', photon_index2='1.98', ts='0.97', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='7.72e-08', energy_flux_error2='1.59e-05', EG='0.58', time_epoch_completed='1630381737.99', return_code='0', job_id='929980', GAL2='1.24', EG2='0.58', return_code2='0', photon_flux_error2='2.23e-08', ts2='1.10', photon_index='2.28' WHERE bin_id='650' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 20:48:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 929980: <4FGL_J0900.7-1243_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin650 135.175 -12.7201 407808001 408067201 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            814 sec.

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

