/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 164 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 = 7670
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0940.9-1335_daily_bin101
RA = 145.244, Dec = -13.5891
tmin = 265507201, tmax = 265766401
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='411894', job_status='RUN', time_executed='2021-08-31 21:28:26.632681', time_epoch_executed='1630470506.63' WHERE source_name='4FGL J0940.9-1335' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411894

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411894/ft1_4FGL_J0940.9-1335_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411894/ft1_4FGL_J0940.9-1335_daily_bin101.fits outfile=/scratch/kocevski/411894/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin101.fits ra=145.244 dec=-13.5891 rad=12.0 tmin=265507201.0 tmax=265766401.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 1.16
user 1.01
sys 0.14

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.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/411894/ft1_filteredMKT_4FGL_J0940.9-1335_daily_bin101.fits evtable="EVENTS" outfile="/scratch/kocevski/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.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.41
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/411894/ltcube_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.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/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits
.....................!
real 10.12
user 9.83
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/411894/ltcube_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.fits outfile=/scratch/kocevski/411894/expmap_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.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/411894/ltcube_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.fits
.....................!
real 141.21
user 137.53
sys 3.36

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0940.9-1335 @ 145.244 -13.5891

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.fits scfile=/scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits outfile=/scratch/kocevski/411894/cmap_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.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=145.244 yref=-13.5891 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.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.fits scfile=/scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits outfile=/scratch/kocevski/411894/cmap_HighResolution_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.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=145.244 yref=-13.5891 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.47
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411894/Model_4FGL_J0940.9-1335_daily_bin101.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/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.fits.....................!
real 61.00
user 59.62
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.fits', '/scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits', expMap='/scratch/kocevski/411894/expmap_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.fits', expCube='/scratch/kocevski/411894/ltcube_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/411894/Model_4FGL_J0940.9-1335_daily_bin101.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0940.9-1335'

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  2.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.301e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/411894/ft1_filtered_4FGL_J0940.9-1335_daily_bin101.fits
Spacecraft file(s): /scratch/kocevski/411894/ft2_4FGL_J0940.9-1335_daily_bin101.fits
Exposure map: /scratch/kocevski/411894/expmap_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.fits
Exposure cube: /scratch/kocevski/411894/ltcube_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/411894/Model_4FGL_J0940.9-1335_daily_bin101.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) = 8368.26151584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30901E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.682       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.760       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.075       1.0000         .10000E-03   10000.    
    10 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .63629E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0917       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31896E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6994       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .74176       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0337       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8368.235     FROM MIGRAD    STATUS=FAILED       646 CALLS     2090 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3431        2.9919        .11198E-03    .31270E-04
   2  Prefactor     .10011E-03    11.091        .69768E-01** at limit **
   3  Prefactor     11.682        7.8888        .11721E-03    .73134E-04
   4  Prefactor     .10000E-03    3.1390        .15821E-02** at limit **
   5  Prefactor     .10000E-03    10.855        .18142E-02** at limit **
   6  Prefactor     .10000E-03    20.375        .18142E-02** at limit **
   7  Prefactor     28.750        20.466        .74706E-04   -.14000E-04
   8  Prefactor     27.633        23.519        .76164E-04    .38212E-04
   9  Prefactor     19.080        12.492        .91704E-04    .67193E-04
  10  norm          .10000E-03    8.1860        .36285E-03** at limit **
  11  norm          .10000E-03    1.2799        .10050E-02** at limit **
  12  norm          .63562E-01    7.5315        .14785E-02    .27393E-02
  13  norm          .10000E-03    9.0450        .36285E-03** at limit **
  14  norm          1.0918        .88296        .75776E-04    .22805E-03
  15  Prefactor     .10000E-03    24.591        .13405    ** at limit **
  16  Prefactor     6.7047        9.3676        .15503E-03    .75240E-04
  17  Normalizat    .74121        .19143        .30934E-03    .65712E-04
  18  Prefactor     1.0340        .12539        .17569E-03    .11166E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8368.235     FROM SIMPLEX   STATUS=UNCHANGED    828 CALLS     2918 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3431        2.9919        .59825E-07   -1.5246    
   2  Prefactor     .10011E-03    11.091        .89931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.682        7.8888        .96903E-07   -1.5024    
   4  Prefactor     .10000E-03    3.1390        .27809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.855        .12876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.375        .53424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.750        20.466        .50151E-07   -1.4635    
   8  Prefactor     27.633        23.519        .53130E-07   -1.4656    
   9  Prefactor     19.080        12.492        .50519E-07   -1.4834    
  10  norm          .10000E-03    8.1860        .29026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2799        .11581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .63562E-01    7.5315        .54023E-07   -1.5658    
  13  norm          .10000E-03    9.0450        .25933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0918        .88296        .52035E-07   -1.5499    
  15  Prefactor     .10000E-03    24.591        .11144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7047        9.3676        .51299E-07   -1.5190    
  17  Normalizat    .74121        .19143        .34753E-07   -1.0229    
  18  Prefactor     1.0340        .12539        .30686E-07   -.91604    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8368.235     FROM MIGRAD    STATUS=CONVERGED    252 CALLS     3170 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3431        2.9901        .44791E-05   -.27920E-03
   2  Prefactor     .10008E-03    9.3559        .78468E-01** at limit **
   3  Prefactor     11.682        7.8885        .46883E-05   -.11057E-03
   4  Prefactor     .10000E-03    3.1391        .31643E-03** at limit **
   5  Prefactor     .10000E-03    10.856        .36285E-03** at limit **
   6  Prefactor     .10000E-03    20.378        .36285E-03** at limit **
   7  Prefactor     28.750        20.462        .29883E-05    .15218E-05
   8  Prefactor     27.633        23.515        .30465E-05   -.26868E-04
   9  Prefactor     19.080        12.490        .36682E-05   -.47109E-04
  10  norm          .10000E-03    8.1865        .72569E-04** at limit **
  11  norm          .10000E-03    1.2800        .20101E-03** at limit **
  12  norm          .63577E-01    7.5995        .29571E-03    .70741E-04
  13  norm          .10000E-03    9.0456        .72569E-04** at limit **
  14  norm          1.0918        .88288        .30310E-05   -.14703E-03
  15  Prefactor     .10000E-03    24.087        .13624    ** at limit **
  16  Prefactor     6.7046        9.3662        .62011E-05   -.49133E-04
  17  Normalizat    .74121        .19159        .12374E-04   -.12900E-03
  18  Prefactor     1.0340        .12541        .35139E-04   -.21638E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.34312
  Prefactor  = 0.000100082
  Prefactor  = 11.6822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7504
  Prefactor  = 27.6328
  Prefactor  = 19.0796
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0635767
  norm       = 0.0001
  norm       = 1.09175
  Prefactor  = 0.000100003
  Prefactor  = 6.70464
  Normalizat = 0.74121
  Prefactor  = 1.03401
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.235     FROM HESSE     STATUS=OK           246 CALLS     3416 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3431        2.9901        .89582E-06   -1.5246    
   2  Prefactor     .10008E-03    9.8380        .75761E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.682        7.8857        .93767E-06   -1.5024    
   4  Prefactor     .10000E-03    3.1391        .63285E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.856        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.378        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.750        20.364        .59765E-06   -1.4635    
   8  Prefactor     27.633        23.536        .60931E-06   -1.4656    
   9  Prefactor     19.080        12.464        .73363E-06   -1.4834    
  10  norm          .10000E-03    8.1865        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2800        .40201E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .63577E-01    7.5915        .11828E-04   -1.5658    
  13  norm          .10000E-03    9.0459        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0918        .88271        .60621E-06   -1.5499    
  15  Prefactor     .10000E-03    24.186        .13579       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7046        9.3656        .12402E-05   -1.5190    
  17  Normalizat    .74121        .19148        .24747E-05   -1.0229    
  18  Prefactor     1.0340        .12541        .70278E-05   -.91604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52312e-11
Minuit parameter uncertainties:
  1  2.99019
  2  0.00179229
  3  7.88643
  4  5.05292e-07
  5  9.90053e-06
  6  7.88665e-06
  7  20.3694
  8  23.5439
  9  12.4657
  10  1.98319e-06
  11  3.24935e-07
  12  1.38854
  13  1.20618e-05
  14  0.882723
  15  0.000503047
  16  9.36764
  17  0.191649
  18  0.125448
Done.

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

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  1.000e-04  1.983e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  2.301e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.034e+00  1.254e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  7.412e-01  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.244 -13.589
Photon Flux Upper Limit: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411894/likelihoodResults_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.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) = 8368.23583099
delta logL = -0.000583445582379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8368.235252
delta logL = -4.46162630396e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18305E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3964       1.0000          .0000       5.0000    
     3 'Normalizat'    .74175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0337       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8367.397     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      260 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22767        .19724        .23876E-06   -.33003E-03
   2  alpha         5.0000        3.8222       -.84184E-04** at limit **
   3  Normalizat    .66473        .19519        .78626E-06   -.53936E-04
   4  Prefactor     1.0654        .12710        .13335E-05   -.43331E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.22767
  alpha      = 5
  Normalizat = 0.664727
  Prefactor  = 1.06542
 **********
 **   18 **HESSE 
 **********

 FCN=   8367.397     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      297 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22767        6.4329        .79246E-02   -1.5613    
   2  alpha         5.0000        2.7042        .41196        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .66473        .75556E-01    .73481E-01   -1.0530    
   4  Prefactor     1.0654        .45345E-01    .40977E-01   -.90579    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49827e-08
Minuit parameter uncertainties:
  1  2.42015
  2  2.87308e-06
  3  0.0755677
  4  0.0453468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411894': 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) = 8367.39666291
delta logL = 0.838584635609

Extracting fit parameters...

4FGL J0940.9-1335
   Spectrum: LogParabola
247         norm:  2.277e-01  2.420e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        alpha:  5.000e+00  2.873e-06  0.000e+00  5.000e+00 ( 1.000e+00)
249         beta:  1.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.065e+00  4.535e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  6.647e-01  7.557e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 145.244 -13.589
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.36e-08 +/- 5.67e-07
Energy Flux (Free Index): 7.32e-06 +/- 7.76e-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/411894/cmap_HighResolution_265507201_265766401_4FGL_J0940.9-1335_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', comment='SUCCESS', energy_flux2='7.32e-06', dlogl='8.39e-01', photon_flux2='5.36e-08', job_status='DONE', time_completed='2021-08-31 21:37:41.120807', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.12e-08', energy_flux_error2='7.76e-05', EG='0.74', time_epoch_completed='1630471061.12', return_code='0', job_id='411894', GAL2='1.07', EG2='0.66', return_code2='102', photon_flux_error2='5.67e-07', ts2='1.82', photon_index='2.30' WHERE bin_id='101' AND source_name='4FGL J0940.9-1335' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 21:37:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 411894: <4FGL_J0940.9-1335_daily_bin101> in cluster <slac> Done

Job <4FGL_J0940.9-1335_daily_bin101> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 21:25:34 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 21:25:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 21:25:35 2021
Terminated at Tue Aug 31 21:37:43 2021
Results reported at Tue Aug 31 21:37:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0940.9-1335_daily_bin101 145.244 -13.5891 265507201 265766401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0940.9-1335 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   548.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            729 sec.

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

