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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1611
RA = 334.823, Dec = -3.7102
tmin = 656899201, tmax = 657158401
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='483689', job_status='RUN', time_executed='2021-12-08 08:32:33.398155', time_epoch_executed='1638981153.4' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483689/ft1_4FGL_J2219.2-0342_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483689/ft1_4FGL_J2219.2-0342_daily_bin1611.fits outfile=/scratch/kocevski/483689/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1611.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=656899201.0 tmax=657158401.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.62
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.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/483689/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1611.fits evtable="EVENTS" outfile="/scratch/kocevski/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.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/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/483689/ltcube_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.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/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits
.....................!
real 14.18
user 13.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/483689/ltcube_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.fits outfile=/scratch/kocevski/483689/expmap_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.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/483689/ltcube_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.fits
.....................!
real 191.54
user 185.83
sys 5.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/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.fits scfile=/scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits outfile=/scratch/kocevski/483689/cmap_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.fits scfile=/scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits outfile=/scratch/kocevski/483689/cmap_HighResolution_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483689/Model_4FGL_J2219.2-0342_daily_bin1611.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/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.fits.....................!
real 62.22
user 60.85
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.fits', '/scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits', expMap='/scratch/kocevski/483689/expmap_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.fits', expCube='/scratch/kocevski/483689/ltcube_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/483689/Model_4FGL_J2219.2-0342_daily_bin1611.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/483689/ft1_filtered_4FGL_J2219.2-0342_daily_bin1611.fits
Spacecraft file(s): /scratch/kocevski/483689/ft2_4FGL_J2219.2-0342_daily_bin1611.fits
Exposure map: /scratch/kocevski/483689/expmap_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.fits
Exposure cube: /scratch/kocevski/483689/ltcube_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/483689/Model_4FGL_J2219.2-0342_daily_bin1611.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) = 6324.02641555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11194E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.677       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.748       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.005       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.619       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0945       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64268       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9483       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .64518       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .88723E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .53251       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    32.283       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68307       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0022       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=   6324.012     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2778 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7965        .13254E-06** at limit **
   2  Prefactor     .10001E-03    31.847        .14676E-05** at limit **
   3  Prefactor     .10000E-03    20.532       -.31022E-06** at limit **
   4  Prefactor     15.670        49.941        .56548E-06   -.35761E-05
   5  Prefactor     .10000E-03    3.6762       -.41334E-06** at limit **
   6  Prefactor     15.749        6.8132       -.10265E-07   -.59347E-04
   7  Prefactor     .10001E-03    18.405        .21536E-05** at limit **
   8  Prefactor     13.006        17.346        .12967E-06    .46455E-04
   9  Prefactor     .10000E-03    7.1763       -.13162E-06** at limit **
  10  Prefactor     29.617        21.777        .67974E-06    .20940E-03
  11  Prefactor     2.0956        5.6879        .18940E-05    .63500E-03
  12  Prefactor     12.197        33.937        .60519E-06    .47041E-04
  13  Prefactor     .10000E-03    6.4633        .12328E-06** at limit **
  14  Prefactor     .10001E-03    22.001       -.18968E-05** at limit **
  15  Prefactor     .65279        7.8067        .48192E-05   -.66274E-03
  16  norm          4.9466        3.9873       -.13485E-06   -.28084E-03
  17  Prefactor     .10000E-03    82.385       -.13467E-05** at limit **
  18  norm          .64546        .56735       -.47348E-07   -.28320E-03
  19  Prefactor     .10001E-03    8.9531       -.33927E-05** at limit **
  20  norm          .53557        .95412        .36113E-06    .32158E-02
  21  Prefactor     .10000E-03    3.5236       -.19487E-07** at limit **
  22  norm          32.285        14.445        .10333E-07   -.47218E-04
  23  Normalizat    .68291        .21065       -.35481E-06    .80665E-04
  24  Prefactor     1.0023        .12170       -.10115E-06    .19231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 15.6697
  Prefactor  = 0.0001
  Prefactor  = 15.7487
  Prefactor  = 0.000100007
  Prefactor  = 13.0062
  Prefactor  = 0.0001
  Prefactor  = 29.6166
  Prefactor  = 2.09557
  Prefactor  = 12.1973
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.652793
  norm       = 4.94659
  Prefactor  = 0.000100005
  norm       = 0.645455
  Prefactor  = 0.000100007
  norm       = 0.535568
  Prefactor  = 0.0001
  norm       = 32.2854
  Normalizat = 0.682905
  Prefactor  = 1.00228
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.012     FROM HESSE     STATUS=OK           405 CALLS     3183 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1944        .20553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    32.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.670        49.960        .10116E-03   -1.4916    
   5  Prefactor     .10000E-03    3.7009        .14900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.749        6.8132        .10093E-03   -1.4914    
   7  Prefactor     .10001E-03    19.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.006        17.320        .11107E-03   -1.4987    
   9  Prefactor     .10000E-03    7.1886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.617        21.795        .73618E-04   -1.4619    
  11  Prefactor     2.0956        5.8187        .28521E-03   -1.5418    
  12  Prefactor     12.197        33.872        .11472E-03   -1.5009    
  13  Prefactor     .10000E-03    6.4931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    22.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .65279        9.0065        .23496E-02   -1.5546    
  16  norm          4.9466        3.9552        .12998E-03   -1.5263    
  17  Prefactor     .10000E-03    82.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .64546        .59710        .54578E-03   -1.5547    
  19  Prefactor     .10001E-03    29.032        .38950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .53557        .77309        .95945E-03   -1.5562    
  21  Prefactor     .10000E-03    3.5295        .14579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          32.285        14.452        .70522E-04   -1.4571    
  23  Normalizat    .68291        .24472        .33994E-03   -1.0457    
  24  Prefactor     1.0023        .14443        .17452E-03   -.92654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35806e-09
Minuit parameter uncertainties:
  1  4.72566e-06
  2  0.000826029
  3  0.000142385
  4  50.0937
  5  4.59658e-05
  6  6.8135
  7  0.000736385
  8  17.3267
  9  3.83129e-05
  10  21.8009
  11  5.82029
  12  33.9255
  13  1.61429e-05
  14  0.000885901
  15  4.85
  16  3.95545
  17  0.00123806
  18  0.597108
  19  0.000928232
  20  0.773106
  21  2.8414e-06
  22  14.454
  23  0.245109
  24  0.144484
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.614e-05  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:  1.002e+00  1.445e-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:  6.829e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/483689/likelihoodResults_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.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) = 6324.01309368
delta logL = -0.000734122522772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6324.01235997
delta logL = -4.11957444157e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6831       1.0000          .0000       10.000    
     3 'Normalizat'    .68274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0024       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6324.012     FROM MIGRAD    STATUS=FAILED        91 CALLS      245 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    504.71        .18142E-02** at limit **
   2  Index         2.6975        5.7596        .50000       -.11001E-05
   3  Normalizat    .68291        .48020E-01    .33994E-03    .65548E-05
   4  Prefactor     1.0023        .29612E-01    .17452E-03    .11335E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6324.012     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      404 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    504.71        .51433E-03** at limit **
   2  Index         2.6975        5.7596        .41912E-05   -.11001E-05
   3  Normalizat    .68291        .48020E-01    .13930E-06    .65548E-05
   4  Prefactor     1.0023        .29612E-01    .14863E-07    .11335E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6323.985     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      512 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65746E-03    .38791E-01    .13456E-02** at limit **
   2  Index         8.6087        9.1188        .50000        .62085E-04
   3  Normalizat    .66933        .21335E-01    .13598E-04   -.17775E-03
   4  Prefactor     1.0079        .13162E-01    .69806E-05   -.18338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000657462
  Index      = 8.60875
  Normalizat = 0.669329
  Prefactor  = 1.00788
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.985     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      543 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65746E-03    .62278        .71434E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.6087        5.9862        .50139E-01    .80633    
   3  Normalizat    .66933        .95564E-01    .27196E-05   -1.0512    
   4  Prefactor     1.0079        .58630E-01    .13961E-05   -.92467    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20099e-06
Minuit parameter uncertainties:
  1  0.0372658
  2  36.5614
  3  0.0955874
  4  0.0586339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483689': 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) = 6323.98482508
delta logL = 0.0275344745414

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.575e-04  3.727e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  8.609e+00  3.656e+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:  1.008e+00  5.863e-02  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:  6.693e-01  9.559e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.823 -3.710

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/483689/cmap_HighResolution_656899201_657158401_4FGL_J2219.2-0342_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-12-08 08:43:42.847106', job_id='483689', GAL2='1.01', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1638981822.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.75e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1611' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:43:42 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 483689: <4FGL_J2219.2-0342_daily_bin1611> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1611> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 08:30:20 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:30:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:30:39 2021
Terminated at Wed Dec  8 08:43:43 2021
Results reported at Wed Dec  8 08:43:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1611 334.823 -3.7102 656899201 657158401 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 :                                   668.59 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            803 sec.

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

