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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin273
RA = 334.823, Dec = -3.7102
tmin = 310089601, tmax = 310348801
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='256758', job_status='RUN', time_executed='2021-09-28 09:04:24.936050', time_epoch_executed='1632845064.94' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256758/ft1_4FGL_J2219.2-0342_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256758/ft2_4FGL_J2219.2-0342_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256758/ft1_4FGL_J2219.2-0342_daily_bin273.fits outfile=/scratch/kocevski/256758/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin273.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=310089601.0 tmax=310348801.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.37
user 3.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256758/ft2_4FGL_J2219.2-0342_daily_bin273.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/256758/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin273.fits evtable="EVENTS" outfile="/scratch/kocevski/256758/ft1_filtered_4FGL_J2219.2-0342_daily_bin273.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256758/ft1_filtered_4FGL_J2219.2-0342_daily_bin273.fits" evtable="EVENTS" scfile=/scratch/kocevski/256758/ft2_4FGL_J2219.2-0342_daily_bin273.fits sctable="SC_DATA" outfile=/scratch/kocevski/256758/ltcube_310089601_310348801_4FGL_J2219.2-0342_daily_bin273.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/256758/ft2_4FGL_J2219.2-0342_daily_bin273.fits
.....................!
real 11.69
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256758/ft1_filtered_4FGL_J2219.2-0342_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/256758/ft2_4FGL_J2219.2-0342_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/256758/ltcube_310089601_310348801_4FGL_J2219.2-0342_daily_bin273.fits outfile=/scratch/kocevski/256758/expmap_310089601_310348801_4FGL_J2219.2-0342_daily_bin273.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/256758/ltcube_310089601_310348801_4FGL_J2219.2-0342_daily_bin273.fits
.....................!
real 190.33
user 185.31
sys 4.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
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/256758/ft1_filtered_4FGL_J2219.2-0342_daily_bin273.fits scfile=/scratch/kocevski/256758/ft2_4FGL_J2219.2-0342_daily_bin273.fits outfile=/scratch/kocevski/256758/cmap_310089601_310348801_4FGL_J2219.2-0342_daily_bin273.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256758/ft1_filtered_4FGL_J2219.2-0342_daily_bin273.fits scfile=/scratch/kocevski/256758/ft2_4FGL_J2219.2-0342_daily_bin273.fits outfile=/scratch/kocevski/256758/cmap_HighResolution_310089601_310348801_4FGL_J2219.2-0342_daily_bin273.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256758/ft1_filtered_4FGL_J2219.2-0342_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/256758/ft2_4FGL_J2219.2-0342_daily_bin273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256758/Model_4FGL_J2219.2-0342_daily_bin273.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/256758/ft1_filtered_4FGL_J2219.2-0342_daily_bin273.fits....................!
real 71.37
user 69.91
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18260E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0569       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6791       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3000       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .93088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2693       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1537       1.0000         .10000E-03   10000.    
    16 'norm      '    15.238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.708       1.0000         .10000E-03   10000.    
    18 'norm      '    .91580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.204       1.0000         .10000E-03   10000.    
    20 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4271       1.0000         .10000E-03   10000.    
    22 'norm      '    .11483E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99136       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77882       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=   7682.918     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2415 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28326E-01    .78168        .32724E-06   -.11518E-02
   2  Prefactor     .10000E-03    10.141        .51272E-06** at limit **
   3  Prefactor     .10000E-03    11.871        .53114E-05** at limit **
   4  Prefactor     .10000E-03    44.458        .25713E-05** at limit **
   5  Prefactor     .10000E-03    2.2721        .13876E-07** at limit **
   6  Prefactor     4.0574        3.4778        .26568E-06   -.16771E-02
   7  Prefactor     1.6789        4.4579        .47025E-07   -.59112E-04
   8  Prefactor     4.2995        12.040        .14489E-06   -.32024E-03
   9  Prefactor     .10000E-03    27.407       -.75120E-05** at limit **
  10  Prefactor     .10000E-03    11.242       -.53156E-05** at limit **
  11  Prefactor     .93319        7.1807       -.12139E-05    .21661E-03
  12  Prefactor     .10000E-03    5.8471       -.37105E-07** at limit **
  13  Prefactor     4.2721        8.6048       -.45309E-07   -.67006E-03
  14  Prefactor     .10000E-03    25.018        .43362E-05** at limit **
  15  Prefactor     4.1537        4.8478        .64077E-06    .12358E-04
  16  norm          15.239        4.4488       -.38064E-06   -.39220E-05
  17  Prefactor     11.573        37.708       -.22267E-05   -.45893E-05
  18  norm          .91585        .58620        .10335E-07    .12228E-03
  19  Prefactor     11.189        14.129       -.11970E-06   -.35421E-04
  20  norm          .10000E-03    .79617        .33255E-07** at limit **
  21  Prefactor     7.4272        7.1441        .76726E-07    .38820E-05
  22  norm          .10000E-03    22.215        .41286E-05** at limit **
  23  Normalizat    .99135        .17231        .27970E-06    .76683E-04
  24  Prefactor     .77879        .10078       -.12737E-06    .16288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0283262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.05744
  Prefactor  = 1.67888
  Prefactor  = 4.29951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.933189
  Prefactor  = 0.0001
  Prefactor  = 4.2721
  Prefactor  = 0.0001
  Prefactor  = 4.15374
  norm       = 15.2389
  Prefactor  = 11.5729
  norm       = 0.915849
  Prefactor  = 11.1889
  norm       = 0.0001
  Prefactor  = 7.42718
  norm       = 0.0001
  Normalizat = 0.991347
  Prefactor  = 0.77879
 **********
 **   18 **HESSE 
 **********

 FCN=   7682.918     FROM HESSE     STATUS=OK           407 CALLS     2822 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28326E-01    16.268        .14782E-02   -1.5674    
   2  Prefactor     .10000E-03    10.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2929        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0574        4.5889        .95139E-03   -1.5305    
   7  Prefactor     1.6789        4.4286        .29311E-03   -1.5449    
   8  Prefactor     4.2995        12.946        .97138E-03   -1.5293    
   9  Prefactor     .10000E-03    28.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .93319        19.605        .43234E-02   -1.5515    
  12  Prefactor     .10000E-03    5.8505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2721        10.447        .97497E-03   -1.5295    
  14  Prefactor     .10000E-03    25.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1537        4.9003        .17404E-03   -1.5300    
  16  norm          15.239        4.4690        .92632E-04   -1.4927    
  17  Prefactor     11.573        37.719        .11708E-03   -1.5027    
  18  norm          .91585        .59462        .52170E-04   -1.5517    
  19  Prefactor     11.189        12.047        .11969E-03   -1.5039    
  20  norm          .10000E-03    1.2079        .12929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.4272        7.1456        .14717E-03   -1.5163    
  22  norm          .10000E-03    22.968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99135        .20460        .27221E-03   -.93321    
  24  Prefactor     .77879        .11855        .18452E-03   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17953e-08
Minuit parameter uncertainties:
  1  1.35562
  2  2.24761e-06
  3  2.98649e-05
  4  1.73276e-05
  5  5.95831e-07
  6  4.58931
  7  4.42943
  8  12.9539
  9  0.00012606
  10  8.10693e-06
  11  8.55739
  12  2.66059e-07
  13  10.4512
  14  5.7514e-05
  15  4.90073
  16  4.46911
  17  37.7963
  18  0.594625
  19  12.0494
  20  4.5073e-06
  21  7.14646
  22  5.35931e-05
  23  0.204757
  24  0.118587
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.272e+00  1.045e+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:  7.788e-01  1.186e-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:  9.913e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256758/likelihoodResults_310089601_310348801_4FGL_J2219.2-0342_daily_bin273.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) = 7682.78241927
delta logL = 0.13587596874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7682.76967473
delta logL = 0.148620507728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0354       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5235       1.0000          .0000       10.000    
     3 'Normalizat'    .97150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78622       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=   7682.770     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      237 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0351        7.5476        .20714E-03    .10334E-02
   2  Index         3.5235        1.7864        .84547E-03    .11798E-03
   3  Normalizat    .97147        .19789        .27457E-03   -.51756E-05
   4  Prefactor     .78624        .11826        .18369E-03   -.29089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03514
  Index      = 3.52351
  Normalizat = 0.971466
  Prefactor  = 0.786242
 **********
 **   18 **HESSE 
 **********

 FCN=   7682.770     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0351        7.2576        .82856E-05   -1.5360    
   2  Index         3.5235        1.7209        .33819E-04   -.29977    
   3  Normalizat    .97147        .19811        .10983E-04   -.93993    
   4  Prefactor     .78624        .11835        .73475E-05   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7568e-10
Minuit parameter uncertainties:
  1  7.25968
  2  1.76048
  3  0.198255
  4  0.118391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256758': 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) = 7682.76967471
delta logL = 0.148620524842

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.035e+00  7.260e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.524e+00  1.760e+00  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:  7.862e-01  1.184e-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:  9.715e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/256758/cmap_HighResolution_310089601_310348801_4FGL_J2219.2-0342_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.86e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-28 09:16:01.924034', job_id='256758', GAL2='0.79', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1632845761.92', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.49e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='273' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:16:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 256758: <4FGL_J2219.2-0342_daily_bin273> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin273> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:00:28 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:00:30 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:30 2021
Terminated at Tue Sep 28 09:16:02 2021
Results reported at Tue Sep 28 09:16:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin273 334.823 -3.7102 310089601 310348801 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 :                                   697.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

