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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin241
RA = 334.823, Dec = -3.7102
tmin = 301795201, tmax = 302054401
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='256712', job_status='RUN', time_executed='2021-09-28 09:03:30.953345', time_epoch_executed='1632845010.95' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256712/ft1_4FGL_J2219.2-0342_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256712/ft1_4FGL_J2219.2-0342_daily_bin241.fits outfile=/scratch/kocevski/256712/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin241.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=301795201.0 tmax=302054401.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.02
user 3.80
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.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/256712/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin241.fits evtable="EVENTS" outfile="/scratch/kocevski/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/256712/ltcube_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.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/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits
.....................!
real 11.59
user 11.29
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/256712/ltcube_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.fits outfile=/scratch/kocevski/256712/expmap_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.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/256712/ltcube_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.fits
.....................!
real 189.72
user 185.15
sys 4.25

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

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.fits scfile=/scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits outfile=/scratch/kocevski/256712/cmap_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.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=334.823 yref=-3.7102 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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.fits scfile=/scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits outfile=/scratch/kocevski/256712/cmap_HighResolution_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.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=334.823 yref=-3.7102 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256712/Model_4FGL_J2219.2-0342_daily_bin241.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/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.fits.....................!
real 60.98
user 59.69
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.fits', '/scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits', expMap='/scratch/kocevski/256712/expmap_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.fits', expCube='/scratch/kocevski/256712/ltcube_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/256712/Model_4FGL_J2219.2-0342_daily_bin241.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2-0342'

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.492e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/256712/ft1_filtered_4FGL_J2219.2-0342_daily_bin241.fits
Spacecraft file(s): /scratch/kocevski/256712/ft2_4FGL_J2219.2-0342_daily_bin241.fits
Exposure map: /scratch/kocevski/256712/expmap_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.fits
Exposure cube: /scratch/kocevski/256712/ltcube_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/256712/Model_4FGL_J2219.2-0342_daily_bin241.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) = 6062.85310367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68346E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.291       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.259       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9136       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .22849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0817       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7948       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6062.839     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2728 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18758E-03    1.2266       -.95477E-06** at limit **
   2  Prefactor     .10000E-03    12.572        .82403E-05** at limit **
   3  Prefactor     .10000E-03    106.06        .48783E-04** at limit **
   4  Prefactor     .10000E-03    22.985        .17619E-04** at limit **
   5  Prefactor     .10000E-03    2.2699        .14836E-07** at limit **
   6  Prefactor     .10000E-03    5.3417        .23358E-08** at limit **
   7  Prefactor     .10000E-03    3.9917       -.15190E-07** at limit **
   8  Prefactor     .10000E-03    7.6323        .66157E-06** at limit **
   9  Prefactor     .10000E-03    6.9718       -.36769E-06** at limit **
  10  Prefactor     .10000E-03    16.594       -.11076E-04** at limit **
  11  Prefactor     .10000E-03    24.572        .65865E-05** at limit **
  12  Prefactor     13.291        29.242       -.11274E-05   -.70067E-05
  13  Prefactor     18.259        16.661        .17046E-06   -.94830E-05
  14  Prefactor     .10000E-03    70.456       -.18345E-04** at limit **
  15  Prefactor     8.9137        6.3741        .13968E-06   -.15695E-03
  16  norm          9.2984        5.1707        .77621E-06   -.94314E-04
  17  Prefactor     .10000E-03    80.217        .21104E-04** at limit **
  18  norm          .22809        .88830       -.80729E-06   -.22605E-02
  19  Prefactor     .10000E-03    27.386       -.18413E-04** at limit **
  20  norm          .10000E-03    .64246        .16921E-06** at limit **
  21  Prefactor     8.0810        10.663       -.43290E-07   -.82497E-05
  22  norm          .10000E-03    11.063       -.43741E-05** at limit **
  23  Normalizat    1.7946        .24000       -.26076E-06    .13710E-03
  24  Prefactor     .61005        .13288        .27157E-06    .81764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000187576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2908
  Prefactor  = 18.259
  Prefactor  = 0.0001
  Prefactor  = 8.91374
  norm       = 9.29838
  Prefactor  = 0.0001
  norm       = 0.228094
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.08096
  norm       = 0.0001
  Normalizat = 1.79457
  Prefactor  = 0.610055
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.839     FROM HESSE     STATUS=OK           399 CALLS     3127 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18758E-03    2.0707        .31537E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    106.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2732        .11457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4210        .17569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9984        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.291        29.240        .10987E-03   -1.4979    
  13  Prefactor     18.259        16.657        .93730E-04   -1.4853    
  14  Prefactor     .10000E-03    70.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9137        6.3597        .13425E-03   -1.5111    
  16  norm          9.2984        5.1842        .12464E-03   -1.5098    
  17  Prefactor     .10000E-03    80.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .22809        .88096        .14135E-03   -1.5612    
  19  Prefactor     .10000E-03    27.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0513        .12082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.0810        10.642        .14103E-03   -1.5139    
  22  norm          .10000E-03    11.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7946        .28570        .26304E-03   -.69805    
  24  Prefactor     .61005        .15770        .23875E-03   -1.0716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39922e-09
Minuit parameter uncertainties:
  1  0.0269334
  2  2.52183e-06
  3  0.000415595
  4  6.08425e-06
  5  5.18234e-07
  6  3.37309e-06
  7  5.47902e-07
  8  2.08054e-06
  9  5.17928e-06
  10  3.47841e-05
  11  6.30444e-05
  12  29.2712
  13  16.6609
  14  2.26382e-05
  15  6.36017
  16  5.18448
  17  8.98581e-05
  18  0.881012
  19  0.000127948
  20  1.82074e-05
  21  10.6446
  22  8.27349e-06
  23  0.28597
  24  0.157811
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.826e+01  1.666e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  6.101e-01  1.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.795e+00  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.41e-08 +/- 7.67e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.87e-05

TS (Fixed Index): 1.79
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 2.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256712/likelihoodResults_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.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) = 6062.60565531
delta logL = 0.233653536157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6062.59957953
delta logL = 0.239729313579

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6062.600     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      289 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.608        15.163        .10482E-03    .15965E-03
   2  Index         3.1540        .76666        .72222E-02    .27299E-03
   3  Normalizat    1.7652        .28404        .26458E-03    .13111E-03
   4  Prefactor     .62138        .15816        .23670E-03   -.16585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6077
  Index      = 3.15403
  Normalizat = 1.76523
  Prefactor  = 0.62138
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.600     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.608        14.479        .41928E-05   -1.4943    
   2  Index         3.1540        .73192        .14444E-02   -.37814    
   3  Normalizat    1.7652        .28437        .52917E-04   -.70575    
   4  Prefactor     .62138        .15826        .94679E-05   -1.0669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59744e-10
Minuit parameter uncertainties:
  1  14.4828
  2  0.734982
  3  0.284639
  4  0.158377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256712': 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) = 6062.59957808
delta logL = 0.239730762515

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.461e+01  1.448e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.154e+00  7.350e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  6.214e-01  1.584e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.765e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.15 +/- 0.73
Photon Flux (Free Index): 1.13e-07 +/- 8.82e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.60e-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/256712/cmap_HighResolution_301795201_302054401_4FGL_J2219.2-0342_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', comment='SUCCESS', photon_flux='8.41e-08', energy_flux2='2.11e-05', photon_flux_error='7.67e-08', dlogl='2.40e-01', energy_flux='2.05e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-28 09:14:06.901093', photon_index_error2='0.73', photon_index2='3.15', ts='1.79', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='2.27e-07', energy_flux_error2='1.60e-05', EG='1.79', time_epoch_completed='1632845646.9', return_code='0', job_id='256712', GAL2='0.62', EG2='1.77', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='8.82e-08', ts2='2.32', photon_index='2.68' WHERE bin_id='241' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:14:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 256712: <4FGL_J2219.2-0342_daily_bin241> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin241> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:00:25 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:00:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:00:27 2021
Terminated at Tue Sep 28 09:14:07 2021
Results reported at Tue Sep 28 09:14:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin241 334.823 -3.7102 301795201 302054401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

