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


Performing analysis on: 4FGL_J0218.9-2305_daily_bin291
RA = 34.731, Dec = -23.0986
tmin = 314755201, tmax = 315014401
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='302222', job_status='RUN', time_executed='2021-08-15 17:23:36.205976', time_epoch_executed='1629073416.21' WHERE source_name='4FGL J0218.9-2305' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302222/ft1_4FGL_J0218.9-2305_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302222/ft1_4FGL_J0218.9-2305_daily_bin291.fits outfile=/scratch/kocevski/302222/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin291.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=314755201.0 tmax=315014401.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 6.03
user 3.34
sys 2.61

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.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/302222/ft1_filteredMKT_4FGL_J0218.9-2305_daily_bin291.fits evtable="EVENTS" outfile="/scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.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 2.95
user 0.33
sys 2.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.fits" evtable="EVENTS" scfile=/scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits sctable="SC_DATA" outfile=/scratch/kocevski/302222/ltcube_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.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/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits
.....................!
real 17.11
user 13.88
sys 3.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/302222/ltcube_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.fits outfile=/scratch/kocevski/302222/expmap_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.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/302222/ltcube_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.fits
.....................!
real 195.15
user 186.22
sys 7.66

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 178 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0218.9-2305 @ 34.731 -23.0986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.fits scfile=/scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits outfile=/scratch/kocevski/302222/cmap_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.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=34.731 yref=-23.0986 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 2.92
user 0.36
sys 2.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.fits scfile=/scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits outfile=/scratch/kocevski/302222/cmap_HighResolution_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.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=34.731 yref=-23.0986 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 2.92
user 0.40
sys 2.49

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302222/Model_4FGL_J0218.9-2305_daily_bin291.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.fits.....................!
real 102.00
user 96.11
sys 4.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.fits', '/scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits', expMap='/scratch/kocevski/302222/expmap_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.fits', expCube='/scratch/kocevski/302222/ltcube_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302222/Model_4FGL_J0218.9-2305_daily_bin291.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0218.9-2305'

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.106e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.603e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/302222/ft1_filtered_4FGL_J0218.9-2305_daily_bin291.fits
Spacecraft file(s): /scratch/kocevski/302222/ft2_4FGL_J0218.9-2305_daily_bin291.fits
Exposure map: /scratch/kocevski/302222/expmap_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.fits
Exposure cube: /scratch/kocevski/302222/ltcube_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302222/Model_4FGL_J0218.9-2305_daily_bin291.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) = 4997.82755814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2083       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9119       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85637       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.263       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38855E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.2611       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.419       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3979       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77977       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4997.812     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2351 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2083        1.5001       -.22824E-07   -.20509E-03
   2  norm          2.9119        2.6903       -.62240E-07   -.13900E-03
   3  Prefactor     .10000E-03    19.300        .50533E-05** at limit **
   4  norm          .10000E-03    .91514       -.54428E-07** at limit **
   5  Prefactor     .10000E-03    1.4332        .26627E-07** at limit **
   6  Prefactor     8.2545        15.188       -.72785E-06   -.38856E-04
   7  Prefactor     6.7060        5.9135        .53165E-06   -.74789E-05
   8  Prefactor     .10000E-03    3.0466       -.27912E-07** at limit **
   9  Prefactor     .85509        23.983       -.24510E-05    .15604E-04
  10  norm          .10000E-03    21.622       -.66883E-05** at limit **
  11  Prefactor     21.655        10.331        .31433E-07    .34479E-03
  12  Prefactor     .10000E-03    24.656       -.21969E-05** at limit **
  13  Prefactor     15.266        50.611        .62800E-05    .26895E-04
  14  Prefactor     .10000E-03    25.223       -.32383E-06** at limit **
  15  Prefactor     .10000E-03    2.2148       -.58416E-07** at limit **
  16  Prefactor     .10004E-03    226.47       -.16838E-03** at limit **
  17  norm          5.2615        2.4660        .83741E-07    .84603E-03
  18  Prefactor     .10000E-03    34.948        .80867E-05** at limit **
  19  Prefactor     28.421        23.722        .20364E-05    .10394E-02
  20  norm          3.3980        3.3627       -.44672E-06    .32031E-03
  21  Normalizat    1.1562        .19598        .79569E-06    .79088E-03
  22  Prefactor     .77988        .20875       -.72701E-06    .46424E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20826
  norm       = 2.91193
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.25448
  Prefactor  = 6.70602
  Prefactor  = 0.0001
  Prefactor  = 0.855088
  norm       = 0.0001
  Prefactor  = 21.6553
  Prefactor  = 0.0001
  Prefactor  = 15.2664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  norm       = 5.2615
  Prefactor  = 0.0001
  Prefactor  = 28.4206
  norm       = 3.39797
  Normalizat = 1.15622
  Prefactor  = 0.779877
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.812     FROM HESSE     STATUS=OK           340 CALLS     2691 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2083        1.4766        .92875E-04   -1.5488    
   2  norm          2.9119        2.6869        .10663E-03   -1.5367    
   3  Prefactor     .10000E-03    19.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .94325        .13193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4388        .82646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2545        15.200        .13951E-03   -1.5133    
   7  Prefactor     6.7060        5.9015        .15157E-03   -1.5190    
   8  Prefactor     .10000E-03    3.0551        .12050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .85509        145.19        .66990E-02   -1.5523    
  10  norm          .10000E-03    21.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.655        10.348        .86076E-04   -1.4777    
  12  Prefactor     .10000E-03    24.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.266        50.596        .10252E-03   -1.4926    
  14  Prefactor     .10000E-03    25.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2310        .10272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    226.65        .42554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.2615        2.4647        .72740E-04   -1.5249    
  18  Prefactor     .10000E-03    34.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.421        23.845        .75152E-04   -1.4641    
  20  norm          3.3980        3.3577        .12419E-03   -1.5339    
  21  Normalizat    1.1562        .23405        .21898E-03   -.87967    
  22  Prefactor     .77988        .24815        .28847E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6833e-09
Minuit parameter uncertainties:
  1  1.47661
  2  2.68706
  3  3.92487e-07
  4  4.92207e-07
  5  3.60344e-07
  6  15.2073
  7  5.90201
  8  9.62691e-07
  9  22.3386
  10  3.88326e-06
  11  10.349
  12  1.27193e-07
  13  50.7391
  14  5.79391e-05
  15  2.75153e-06
  16  0.00566883
  17  2.46473
  18  1.62873e-06
  19  23.8529
  20  3.35788
  21  0.234266
  22  0.248501
Done.

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

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  6.706e+00  5.902e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.603e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.799e-01  2.485e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.156e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 34.731 -23.099
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.02e-05

TS (Fixed Index): 2.75
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302222/likelihoodResults_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.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) = 4997.67440266
delta logL = 0.137857838048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4997.6742734
delta logL = 0.137987095381

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4997.674     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2216        288.04        .34947E-02    .10464E-03
   2  Index         2.2701        5.5930        .21654        .45998E-04
   3  Normalizat    1.1655        .11533        .35798E-01    .54252E-04
   4  Prefactor     .77105        .14862        .65535E-01    .26603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.2216
  Index      = 2.27012
  Normalizat = 1.16553
  Prefactor  = 0.771047
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.674     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2216        7.2128        .13979E-03   -1.5134    
   2  Index         2.2701        .59853        .81600E-02   -.57755    
   3  Normalizat    1.1655        .22334        .21822E-03   -.87675    
   4  Prefactor     .77105        .24630        .28993E-03   -1.0080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7563e-11
Minuit parameter uncertainties:
  1  7.21352
  2  0.600582
  3  0.223521
  4  0.24665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302222': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4997.67427295
delta logL = 0.137987550654

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  8.222e+00  7.214e+00  1.000e-04  1.000e+04 ( 1.000e-12)
269        Index:  2.270e+00  6.006e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.710e-01  2.467e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.166e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 34.731 -23.099
Photon Index (Free Index): 2.27 +/- 0.60
Photon Flux (Free Index): 3.76e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.55e-05

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/302222/cmap_HighResolution_314755201_315014401_4FGL_J0218.9-2305_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='1.49e-05', photon_flux_error='3.88e-08', dlogl='1.38e-01', energy_flux='1.15e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-08-15 17:34:47.677858', photon_index_error2='0.60', photon_index2='2.27', ts='2.75', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.55e-05', EG='1.16', time_epoch_completed='1629074087.68', return_code='0', job_id='302222', GAL2='0.77', EG2='1.17', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.56e-08', ts2='3.03', photon_index='2.60' WHERE bin_id='291' AND source_name='4FGL J0218.9-2305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:34:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 302222: <4FGL_J0218.9-2305_daily_bin291> in cluster <slac> Done

Job <4FGL_J0218.9-2305_daily_bin291> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 17:20:59 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:22:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:22:39 2021
Terminated at Sun Aug 15 17:34:48 2021
Results reported at Sun Aug 15 17:34:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9-2305_daily_bin291 34.731 -23.0986 314755201 315014401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0218.9-2305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            829 sec.

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

