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


Performing analysis on: 4FGL_J0900.7-1243_daily_bin1107
RA = 135.175, Dec = -12.7201
tmin = 526262401, tmax = 526521601
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='933240', job_status='RUN', time_executed='2021-08-30 20:46:18.333909', time_epoch_executed='1630381578.33' WHERE source_name='4FGL J0900.7-1243' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933240/ft1_4FGL_J0900.7-1243_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933240/ft2_4FGL_J0900.7-1243_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933240/ft1_4FGL_J0900.7-1243_daily_bin1107.fits outfile=/scratch/kocevski/933240/ft1_filteredMKT_4FGL_J0900.7-1243_daily_bin1107.fits ra=135.175 dec=-12.7201 rad=12.0 tmin=526262401.0 tmax=526521601.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.21
user 3.77
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933240/ft1_filtered_4FGL_J0900.7-1243_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/933240/ft2_4FGL_J0900.7-1243_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/933240/ltcube_526262401_526521601_4FGL_J0900.7-1243_daily_bin1107.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/933240/ft2_4FGL_J0900.7-1243_daily_bin1107.fits
.....................!
real 11.97
user 11.35
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933240/ft1_filtered_4FGL_J0900.7-1243_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/933240/ft2_4FGL_J0900.7-1243_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/933240/ltcube_526262401_526521601_4FGL_J0900.7-1243_daily_bin1107.fits outfile=/scratch/kocevski/933240/expmap_526262401_526521601_4FGL_J0900.7-1243_daily_bin1107.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/933240/ltcube_526262401_526521601_4FGL_J0900.7-1243_daily_bin1107.fits
.....................!
real 190.88
user 185.03
sys 5.44

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/933240/ft1_filtered_4FGL_J0900.7-1243_daily_bin1107.fits scfile=/scratch/kocevski/933240/ft2_4FGL_J0900.7-1243_daily_bin1107.fits outfile=/scratch/kocevski/933240/cmap_526262401_526521601_4FGL_J0900.7-1243_daily_bin1107.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.74
user 0.37
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933240/ft1_filtered_4FGL_J0900.7-1243_daily_bin1107.fits scfile=/scratch/kocevski/933240/ft2_4FGL_J0900.7-1243_daily_bin1107.fits outfile=/scratch/kocevski/933240/cmap_HighResolution_526262401_526521601_4FGL_J0900.7-1243_daily_bin1107.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.77
user 0.38
sys 0.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933240/ft1_filtered_4FGL_J0900.7-1243_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/933240/ft2_4FGL_J0900.7-1243_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933240/Model_4FGL_J0900.7-1243_daily_bin1107.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/933240/ft1_filtered_4FGL_J0900.7-1243_daily_bin1107.fits.....................!
real 61.91
user 59.88
sys 1.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.811       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.173       1.0000         .10000E-03   10000.    
     6 'norm      '    45.454       1.0000         .10000E-03   10000.    
     7 'norm      '    .14423       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.7356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24218E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7317       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.691       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.2863       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5086       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78765       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=   5139.887     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     2348 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3228        11.619        .26942E-03   -.25571E-04
   2  Prefactor     .10000E-03    3.3362        .12736E-02** at limit **
   3  norm          18.810        18.900        .92345E-04    .47890E-04
   4  norm          4.5638        10.798        .18847E-03    .14670E-03
   5  Prefactor     10.195        31.513        .12563E-03    .48686E-04
   6  norm          45.461        15.735        .59469E-04    .61021E-04
   7  norm          .13360        12.064        .19250E-02    .42199E-03
   8  Prefactor     1.9939        6.5630        .29347E-03    .24320E-04
   9  Prefactor     .10000E-03    8.3372        .18142E-02** at limit **
  10  Prefactor     .10000E-03    21.188        .28675E-02** at limit **
  11  norm          9.7271        10.987        .12843E-03   -.12216E-04
  12  Prefactor     .10000E-03    34.963        .95695E-01** at limit **
  13  Prefactor     .10000E-03    35.463        .18142E-02** at limit **
  14  Prefactor     1.7150        355.71        .31899E-03   -.78763E-05
  15  Prefactor     16.728        49.819        .98033E-04    .47547E-05
  16  Prefactor     .10000E-03    17.271        .18142E-02** at limit **
  17  Prefactor     .10000E-03    19.558        .18142E-02** at limit **
  18  norm          .10000E-03    7.6101        .18142E-02** at limit **
  19  norm          5.2856        5.0030        .15088E-03    .92679E-05
  20  Normalizat    1.5087        .29815        .28774E-03    .10374E-03
  21  Prefactor     .78757        .15412        .21051E-03    .15159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32284
  Prefactor  = 0.0001
  norm       = 18.81
  norm       = 4.56381
  Prefactor  = 10.1949
  norm       = 45.4606
  norm       = 0.1336
  Prefactor  = 1.99393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.72709
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.71497
  Prefactor  = 16.7278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.28555
  Normalizat = 1.50868
  Prefactor  = 0.78757
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.887     FROM HESSE     STATUS=OK           309 CALLS     2657 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3228        11.614        .10777E-04   -1.5403    
   2  Prefactor     .10000E-03    3.3367        .25473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.810        18.899        .36938E-05   -1.4840    
   4  norm          4.5638        10.796        .75388E-05   -1.5281    
   5  Prefactor     10.195        31.512        .50252E-05   -1.5069    
   6  norm          45.461        15.682        .11894E-04   -1.4358    
   7  norm          .13360        12.089        .76999E-04   -1.5635    
   8  Prefactor     1.9939        6.5612        .58694E-04   -1.5426    
   9  Prefactor     .10000E-03    8.3383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.662        .57349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.7271        10.986        .51372E-05   -1.5084    
  12  Prefactor     .10000E-03    32.269        .10044       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7150        354.76        .12760E-04   -1.5446    
  15  Prefactor     16.728        49.809        .39213E-05   -1.4890    
  16  Prefactor     .10000E-03    17.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.564        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.6130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2856        5.0029        .60352E-05   -1.5248    
  20  Normalizat    1.5087        .29828        .57549E-04   -.77535    
  21  Prefactor     .78757        .15420        .84205E-05   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5476e-10
Minuit parameter uncertainties:
  1  10.3911
  2  4.2881e-07
  3  18.9047
  4  10.8003
  5  31.5636
  6  15.6838
  7  2.54134
  8  6.56353
  9  2.0414e-05
  10  0.000199747
  11  10.9886
  12  0.000552809
  13  4.81223e-06
  14  49.6312
  15  49.9336
  16  1.49834e-05
  17  1.2988e-05
  18  9.11388e-06
  19  5.00334
  20  0.298629
  21  0.154287
Done.

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

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.041e-05  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:  7.876e-01  1.543e-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.509e+00  2.986e-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: 9.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933240/likelihoodResults_526262401_526521601_4FGL_J0900.7-1243_daily_bin1107.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) = 5139.8873827
delta logL = -0.000571057701563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5139.88681168
delta logL = -3.66171661881e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2683       1.0000          .0000       10.000    
     3 'Normalizat'    1.5087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78759       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=   5139.887     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7509        .90712E-02** at limit **
   2  Index         2.2587        6.1191        .50000        .94945E-05
   3  Normalizat    1.5087        .23491        .65054E-01    .45547E-05
   4  Prefactor     .78757        .12986        .43556E-01    .10082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25872
  Normalizat = 1.50868
  Prefactor  = 0.78757
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.887     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1278.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2587        5.1417        .50000       -.58028    
   3  Normalizat    1.5087        .10884        .28774E-03   -.77535    
   4  Prefactor     .78757        .60164E-01    .21051E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3437e-08
Minuit parameter uncertainties:
  1  6.82161e-05
  2  52.8373
  3  0.108861
  4  0.0601694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933240': 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) = 5139.8868116
delta logL = 4.57139321952e-08

Extracting fit parameters...

4FGL J0900.7-1243
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  6.822e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.259e+00  5.284e+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:  7.876e-01  6.017e-02  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.509e+00  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-03', job_status='DONE', photon_flux_upper_limit='9.21e-08', time_completed='2021-08-30 20:55:37.605933', job_id='933240', GAL2='0.79', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630382137.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1107' AND source_name='4FGL J0900.7-1243' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 20:55:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 933240: <4FGL_J0900.7-1243_daily_bin1107> in cluster <slac> Done

Job <4FGL_J0900.7-1243_daily_bin1107> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 20:45:47 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 20:45:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 20:45:48 2021
Terminated at Mon Aug 30 20:55:38 2021
Results reported at Mon Aug 30 20:55:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0900.7-1243_daily_bin1107 135.175 -12.7201 526262401 526521601 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 :                                   558.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            591 sec.

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

