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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin327
RA = 190.984, Dec = -2.3082
tmin = 324086401, tmax = 324345601
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='879405', job_status='RUN', time_executed='2021-09-06 03:36:06.625928', time_epoch_executed='1630924566.63' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/879405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/879405/ft1_4FGL_J1243.9-0218_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/879405/ft1_4FGL_J1243.9-0218_daily_bin327.fits outfile=/scratch/kocevski/879405/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin327.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=324086401.0 tmax=324345601.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.33
user 4.09
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/879405/ft1_filtered_4FGL_J1243.9-0218_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/879405/ltcube_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.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/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits
.....................!
real 13.67
user 13.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/879405/ft1_filtered_4FGL_J1243.9-0218_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/879405/ltcube_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.fits outfile=/scratch/kocevski/879405/expmap_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.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/879405/ltcube_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.fits
.....................!
real 192.67
user 187.66
sys 4.52

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/879405/ft1_filtered_4FGL_J1243.9-0218_daily_bin327.fits scfile=/scratch/kocevski/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits outfile=/scratch/kocevski/879405/cmap_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/879405/ft1_filtered_4FGL_J1243.9-0218_daily_bin327.fits scfile=/scratch/kocevski/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits outfile=/scratch/kocevski/879405/cmap_HighResolution_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/879405/ft1_filtered_4FGL_J1243.9-0218_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/879405/Model_4FGL_J1243.9-0218_daily_bin327.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/879405/ft1_filtered_4FGL_J1243.9-0218_daily_bin327.fits.....................!
real 58.13
user 56.66
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/879405/ft1_filtered_4FGL_J1243.9-0218_daily_bin327.fits', '/scratch/kocevski/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits', expMap='/scratch/kocevski/879405/expmap_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.fits', expCube='/scratch/kocevski/879405/ltcube_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/879405/Model_4FGL_J1243.9-0218_daily_bin327.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/879405/ft1_filtered_4FGL_J1243.9-0218_daily_bin327.fits
Spacecraft file(s): /scratch/kocevski/879405/ft2_4FGL_J1243.9-0218_daily_bin327.fits
Exposure map: /scratch/kocevski/879405/expmap_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.fits
Exposure cube: /scratch/kocevski/879405/ltcube_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/879405/Model_4FGL_J1243.9-0218_daily_bin327.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) = 6727.28235733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    35.994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    86.953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.061       1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.797       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.682       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7968       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3208       1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.822       1.0000         .10000E-03   10000.    
    24 'norm      '    4.7629       1.0000         .10000E-03   10000.    
    25 'norm      '    10.601       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97923       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98793       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6727.279     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3414 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9607       -.15179E-08** at limit **
   2  Prefactor     35.994        21.810        .12781E-06   -.21737E-05
   3  Prefactor     86.954        56.113        .16025E-06    .90974E-05
   4  Prefactor     .10000E-03    14.541       -.21438E-06** at limit **
   5  Prefactor     .10000E-03    6.8592        .10159E-06** at limit **
   6  Prefactor     .10000E-03    10.643       -.98052E-06** at limit **
   7  Prefactor     12.062        12.024        .10326E-06   -.19191E-04
   8  norm          .10000E-03    .88064       -.16990E-07** at limit **
   9  norm          .10000E-03    2.4566       -.20326E-07** at limit **
  10  Prefactor     .10003E-03    34.223        .73137E-05** at limit **
  11  norm          .10000E-03    15.738       -.19767E-05** at limit **
  12  Prefactor     .10002E-03    51.695       -.67893E-05** at limit **
  13  Prefactor     10.797        10.635        .60007E-06   -.89213E-04
  14  norm          5.4635        1.0323       -.17008E-07   -.25810E-03
  15  Prefactor     .10000E-03    12.976        .10403E-05** at limit **
  16  Prefactor     12.682        12.390        .74333E-07   -.62231E-05
  17  norm          3.8283        2.3783        .97512E-07   -.88838E-04
  18  Prefactor     4.7969        9.0677        .50987E-05   -.48478E-03
  19  Prefactor     25.156        50.051       -.12150E-05   -.66047E-05
  20  Prefactor     .10000E-03    22.374       -.16073E-05** at limit **
  21  norm          .10000E-03    12.694        .15156E-05** at limit **
  22  norm          2.3208        .40084       -.31348E-07   -.30038E-03
  23  Prefactor     50.823        54.396       -.37564E-06    .51653E-05
  24  norm          4.7626        7.5600        .25108E-05   -.34501E-03
  25  norm          10.601        10.513       -.25379E-07   -.16233E-05
  26  Prefactor     .10000E-03    4.6237        .38255E-07** at limit **
  27  Normalizat    .97911        .25505       -.90778E-06   -.31958E-04
  28  Prefactor     .98799        .16633       -.29180E-06   -.40638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.9944
  Prefactor  = 86.9535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0617
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100025
  norm       = 0.000100002
  Prefactor  = 0.000100023
  Prefactor  = 10.7967
  norm       = 5.46353
  Prefactor  = 0.0001
  Prefactor  = 12.6818
  norm       = 3.82827
  Prefactor  = 4.79687
  Prefactor  = 25.1559
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 2.32079
  Prefactor  = 50.8225
  norm       = 4.76263
  norm       = 10.6011
  Prefactor  = 0.0001
  Normalizat = 0.979115
  Prefactor  = 0.987992
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.279     FROM HESSE     STATUS=OK           517 CALLS     3931 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9627        .13783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.994        21.846        .66799E-04   -1.4507    
   3  Prefactor     86.954        56.124        .21542E-03   -1.3840    
   4  Prefactor     .10000E-03    14.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.062        12.011        .11535E-03   -1.5013    
   8  norm          .10000E-03    .88205        .75024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4904        .12529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    36.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    15.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    53.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.797        10.642        .60966E-03   -1.5051    
  14  norm          5.4635        1.0388        .32495E-04   -1.5240    
  15  Prefactor     .10000E-03    13.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.682        12.386        .11248E-03   -1.4996    
  17  norm          3.8283        2.3760        .91708E-04   -1.5317    
  18  Prefactor     4.7969        9.2441        .91846E-03   -1.5270    
  19  Prefactor     25.156        50.068        .79870E-04   -1.4704    
  20  Prefactor     .10000E-03    22.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3208        .40306        .20042E-04   -1.5403    
  23  Prefactor     50.823        54.443        .56255E-04   -1.4281    
  24  norm          4.7626        7.6107        .92180E-03   -1.5271    
  25  norm          10.601        10.515        .12306E-03   -1.5057    
  26  Prefactor     .10000E-03    4.6262        .17225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97911        .29297        .36566E-03   -.93733    
  28  Prefactor     .98799        .19074        .25493E-03   -.93131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99758e-09
Minuit parameter uncertainties:
  1  1.46361e-07
  2  21.8511
  3  56.1581
  4  3.61466e-05
  5  1.1617e-05
  6  0.000141984
  7  12.0136
  8  7.10919e-07
  9  7.74019e-07
  10  0.00193193
  11  0.000348551
  12  0.00221339
  13  10.6442
  14  1.0388
  15  0.000129508
  16  12.3889
  17  2.37605
  18  9.24681
  19  50.1521
  20  0.000338144
  21  0.000237074
  22  0.403063
  23  54.496
  24  7.61224
  25  10.5167
  26  3.26917e-06
  27  0.293452
  28  0.190869
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  4.797e+00  9.247e+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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.880e-01  1.909e-01  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:  9.791e-01  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 190.984 -2.308
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/879405/likelihoodResults_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.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) = 6725.74837409
delta logL = 1.53072774832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6725.68578999
delta logL = 1.59331184325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46704       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0156       1.0000          .0000       10.000    
     3 'Normalizat'    .84473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0440       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=   6725.686     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      269 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46690        3.7599        .73169E-02    .12472E-02
   2  Index         4.0158        1.8310        .85980E-01    .22327E-03
   3  Normalizat    .84465        .64081E-01    .87800E-01    .26823E-04
   4  Prefactor     1.0441        .45027E-01    .40272E-01    .59804E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.466896
  Index      = 4.01582
  Normalizat = 0.844651
  Prefactor  = 1.04408
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.686     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      302 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46690        8.4218        .33036E-04   -1.5571    
   2  Index         4.0158        3.1187        .32594E-02   -.19813    
   3  Normalizat    .84465        .24743        .38885E-03   -.98433    
   4  Prefactor     1.0441        .17352        .24842E-03   -.91274    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.8372e-10
Minuit parameter uncertainties:
  1  3.96614
  2  3.38026
  3  0.247758
  4  0.173613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/879405': 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) = 6725.68578989
delta logL = 1.5933119454

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  4.669e-01  3.966e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  4.016e+00  3.380e+00  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.044e+00  1.736e-01  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:  8.447e-01  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.78
Ra Dec: 190.984 -2.308
Photon Index (Free Index): 4.02 +/- 3.38
Photon Flux (Free Index): 1.64e-07 +/- 1.02e-07
Energy Flux (Free Index): 2.45e-05 +/- 1.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/879405/cmap_HighResolution_324086401_324345601_4FGL_J1243.9-0218_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.81e-03', comment='SUCCESS', energy_flux2='2.45e-05', dlogl='1.59e+00', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-06 03:50:15.847832', photon_index_error2='3.38', photon_index2='4.02', ts='0.35', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.80e-05', EG='0.98', time_epoch_completed='1630925415.85', return_code='0', job_id='879405', GAL2='1.04', EG2='0.84', return_code2='102', photon_flux_error2='1.02e-07', ts2='3.78', photon_index='2.19' WHERE bin_id='327' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:50:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 879405: <4FGL_J1243.9-0218_daily_bin327> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin327> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:35:32 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:35:50 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:35:50 2021
Terminated at Mon Sep  6 03:50:16 2021
Results reported at Mon Sep  6 03:50:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin327 190.984 -2.3082 324086401 324345601 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 :                                   845.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            884 sec.

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

