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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin1235
RA = 190.984, Dec = -2.3082
tmin = 559440001, tmax = 559699201
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='884949', job_status='RUN', time_executed='2021-09-06 03:51:47.779976', time_epoch_executed='1630925507.78' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='1235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884949/ft1_4FGL_J1243.9-0218_daily_bin1235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884949/ft1_4FGL_J1243.9-0218_daily_bin1235.fits outfile=/scratch/kocevski/884949/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1235.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=559440001.0 tmax=559699201.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.60
user 3.32
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.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/884949/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1235.fits evtable="EVENTS" outfile="/scratch/kocevski/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.fits" evtable="EVENTS" scfile=/scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits sctable="SC_DATA" outfile=/scratch/kocevski/884949/ltcube_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.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/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits
.....................!
real 13.54
user 13.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits sctable="SC_DATA" expcube=/scratch/kocevski/884949/ltcube_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.fits outfile=/scratch/kocevski/884949/expmap_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.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/884949/ltcube_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.fits
.....................!
real 193.52
user 186.94
sys 5.40

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

Setting source of interest to:
4FGL J1243.9-0218 @ 190.984 -2.3082

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.fits scfile=/scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits outfile=/scratch/kocevski/884949/cmap_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.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=190.984 yref=-2.3082 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.fits scfile=/scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits outfile=/scratch/kocevski/884949/cmap_HighResolution_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.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=190.984 yref=-2.3082 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884949/Model_4FGL_J1243.9-0218_daily_bin1235.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/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.fits.......................!
real 17.30
user 15.98
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.fits', '/scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits', expMap='/scratch/kocevski/884949/expmap_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.fits', expCube='/scratch/kocevski/884949/ltcube_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/884949/Model_4FGL_J1243.9-0218_daily_bin1235.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1243.9-0218'

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.163e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/884949/ft1_filtered_4FGL_J1243.9-0218_daily_bin1235.fits
Spacecraft file(s): /scratch/kocevski/884949/ft2_4FGL_J1243.9-0218_daily_bin1235.fits
Exposure map: /scratch/kocevski/884949/expmap_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.fits
Exposure cube: /scratch/kocevski/884949/ltcube_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/884949/Model_4FGL_J1243.9-0218_daily_bin1235.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 589.687167302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 587.880546209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83479E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3550       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3280       1.0000         .10000E-03   10000.    
     4 'Prefactor '    170.53       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22751E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43545E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .86062E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    160.82       1.0000         .10000E-03   10000.    
    11 'norm      '    .48075E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1637       1.0000         .10000E-03   10000.    
    14 'norm      '    .70474       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16637E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3857       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2292       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12234E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5654       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7024       1.0000         .10000E-03   10000.    
    21 'norm      '    .31497E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7003       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35050E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .21743E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10053E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13496E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   587.8652     FROM MIGRAD    STATUS=CONVERGED    237 CALLS      493 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.333        .94322E-02** at limit **
   2  Prefactor     3.3550        1.0116         .0000         .0000    
   3  Prefactor     9.3280        1.0014         .0000         .0000    
   4  Prefactor     172.64        1.0060       -.11094E-05   -.10067E-01
   5  Prefactor     .10000E-03    .20868       -.39281E-05** at limit **
   6  Prefactor     .10000E-03    .21337        .40529E-05** at limit **
   7  Prefactor     .10000E-03    .21043       -.19209E-05** at limit **
   8  norm          .10000E-03    .20571        .12955E-07** at limit **
   9  norm          .10000E-03    .20571       -.58413E-06** at limit **
  10  Prefactor     165.56        1.0144       -.27946E-05   -.37131E-02
  11  norm          .10000E-03    .23175        .23833E-06** at limit **
  12  Prefactor     .42055E-03    .33958E-01    .30517E-04** at limit **
  13  Prefactor     1.1637        1.1503         .0000         .0000    
  14  norm          .68459        .99936        .37104E-06    .30221E-05
  15  Prefactor     .10000E-03    .20729        .83457E-06** at limit **
  16  Prefactor     4.3857        1.0066         .0000         .0000    
  17  norm          7.0835        .99226       -.22622E-06    .62795E-05
  18  Prefactor     .10000E-03    .20571       -.19363E-05** at limit **
  19  Prefactor     18.649        2.7489        .11236E-04   -.70371E-04
  20  Prefactor     .15841E-03    .53805E-01    .18931E-04** at limit **
  21  norm          .10000E-03    .21065       -.12617E-05** at limit **
  22  norm          1.7073        1.0537        .21829E-06    .10008E-04
  23  Prefactor     .10000E-03    .24141        .74784E-05** at limit **
  24  norm          .10000E-03    .25382        .22229E-05** at limit **
  25  norm          .10000E-03    .20581       -.74693E-07** at limit **
  26  Prefactor     .10000E-03    .26399       -.30849E-05** at limit **
  27  Normalizat    .10000E-01    .25505        .12751E-04** at limit **
  28  Prefactor     1.2801        1.0762        .17208E-05   -.25663E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.35499
  Prefactor  = 9.32801
  Prefactor  = 172.636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 165.558
  norm       = 0.0001
  Prefactor  = 0.000420546
  Prefactor  = 1.1637
  norm       = 0.684585
  Prefactor  = 0.0001
  Prefactor  = 4.38571
  norm       = 7.08351
  Prefactor  = 0.0001
  Prefactor  = 18.6489
  Prefactor  = 0.000158413
  norm       = 0.0001
  norm       = 1.70725
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.28012
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   587.8652     FROM HESSE     STATUS=FAILED        11 CALLS      504 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.333        .94322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     549.80        546.37         .0000       -1.5342    
   3  Prefactor     9.3280        1.0014         .0000       -1.5097    
   4  Prefactor     172.64        1.0060       -.11094E-05   -1.3073    
   5  Prefactor     .10000E-03    .20868       -.39281E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .21337        .40529E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .21043       -.19209E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .20571        .12955E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571       -.58413E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     165.56        1.0144       -.27946E-05   -1.3127    
  11  norm          .10000E-03    .23175        .23833E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .42055E-03    .33958E-01    .30517E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1637        1.1503         .0000       -1.5492    
  14  norm          .68459        .99936        .37104E-06   -1.5542    
  15  Prefactor     .10000E-03    .20729        .83457E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3857        1.0066         .0000       -1.5289    
  17  norm          7.0835        .99226       -.22622E-06   -1.5176    
  18  Prefactor     .10000E-03    .20571       -.19363E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.649        2.7489        .11236E-04   -1.4844    
  20  Prefactor     .15841E-03    .53805E-01    .18931E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .21065       -.12617E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7073        1.0537        .21829E-06   -1.5447    
  23  Prefactor     .10000E-03    .24141        .74784E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .25382        .22229E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20581       -.74693E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .26399       -.30849E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .25505        .12751E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.2801        1.0762        .17208E-05   -.83900    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.33737e-11
Minuit parameter uncertainties:
  1  2.77134e-06
  2  1.01156
  3  1.00144
  4  1.00604
  5  8.87769e-07
  6  1.01532e-05
  7  4.06622e-06
  8  7.40341e-08
  9  1.77241e-07
  10  1.01438
  11  7.30414e-09
  12  0.00659852
  13  1.15036
  14  0.999386
  15  4.3257e-06
  16  1.00665
  17  0.992263
  18  8.32518e-06
  19  2.74897
  20  0.00354568
  21  3.73802e-06
  22  1.05368
  23  3.738e-05
  24  1.79395e-06
  25  5.68017e-05
  26  2.72436e-06
  27  2.85166e-07
  28  1.09576
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 587.865176362

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  8.325e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.280e+00  1.096e+00  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.000e-02  2.852e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 190.984 -2.308
Photon Flux Upper Limit: 8.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884949/likelihoodResults_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.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) = 587.865273035
delta logL = -9.66730161736e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 587.865176712
delta logL = -3.50822006112e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1070       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   587.8652     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      250 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8555        .90712E-02** at limit **
   2  Index         3.1056        8.3998        .50000        .30324E-06
   3  Normalizat    .10000E-01    .15531E-03    .23723    ** at limit **
   4  Prefactor     1.2801        .60235E-02    .32965E-01   -.25417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.10557
  Normalizat = 0.01
  Prefactor  = 1.28012
 **********
 **   18 **HESSE 
 **********

 FCN=   587.8652     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    872.49        .28801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1056        5.1031        .50000       -.38859    
   3  Normalizat    .10000E-01    .24208E-01    .85360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2801        .60963E-01    .19516E-03   -.83900    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35879e-09
Minuit parameter uncertainties:
  1  0.00196469
  2  494.048
  3  4.17797e-07
  4  0.0609666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884949': 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) = 587.865176641
delta logL = -2.79863115793e-07

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.965e-03  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.106e+00  4.940e+02  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.280e+00  6.097e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.000e-02  4.178e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 190.984 -2.308

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/884949/cmap_HighResolution_559440001_559699201_4FGL_J1243.9-0218_daily_bin1235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-02', job_status='DONE', photon_flux_upper_limit='8.97e-07', time_completed='2021-09-06 03:57:59.070002', job_id='884949', GAL2='1.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630925879.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.28', dlogl='-2.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1235' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:57:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 884949: <4FGL_J1243.9-0218_daily_bin1235> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin1235> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Sep  6 03:50:54 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:51:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 03:51:28 2021
Terminated at Mon Sep  6 03:57:59 2021
Results reported at Mon Sep  6 03:57:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin1235 190.984 -2.3082 559440001 559699201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1243.9-0218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   336.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             448.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   391 sec.
    Turnaround time :                            425 sec.

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

