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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1106
RA = 334.823, Dec = -3.7102
tmin = 526003201, tmax = 526262401
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='261132', job_status='RUN', time_executed='2021-09-28 09:16:14.328474', time_epoch_executed='1632845774.33' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261132

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261132/ft1_4FGL_J2219.2-0342_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261132/ft2_4FGL_J2219.2-0342_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261132/ft1_4FGL_J2219.2-0342_daily_bin1106.fits outfile=/scratch/kocevski/261132/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1106.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=526003201.0 tmax=526262401.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.75
user 3.50
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261132/ft2_4FGL_J2219.2-0342_daily_bin1106.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/261132/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1106.fits evtable="EVENTS" outfile="/scratch/kocevski/261132/ft1_filtered_4FGL_J2219.2-0342_daily_bin1106.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/261132/ft1_filtered_4FGL_J2219.2-0342_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/261132/ft2_4FGL_J2219.2-0342_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/261132/ltcube_526003201_526262401_4FGL_J2219.2-0342_daily_bin1106.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/261132/ft2_4FGL_J2219.2-0342_daily_bin1106.fits
.....................!
real 11.81
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261132/ft1_filtered_4FGL_J2219.2-0342_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/261132/ft2_4FGL_J2219.2-0342_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/261132/ltcube_526003201_526262401_4FGL_J2219.2-0342_daily_bin1106.fits outfile=/scratch/kocevski/261132/expmap_526003201_526262401_4FGL_J2219.2-0342_daily_bin1106.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/261132/ltcube_526003201_526262401_4FGL_J2219.2-0342_daily_bin1106.fits
.....................!
real 190.02
user 185.17
sys 4.39

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/261132/ft1_filtered_4FGL_J2219.2-0342_daily_bin1106.fits scfile=/scratch/kocevski/261132/ft2_4FGL_J2219.2-0342_daily_bin1106.fits outfile=/scratch/kocevski/261132/cmap_526003201_526262401_4FGL_J2219.2-0342_daily_bin1106.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/261132/ft1_filtered_4FGL_J2219.2-0342_daily_bin1106.fits scfile=/scratch/kocevski/261132/ft2_4FGL_J2219.2-0342_daily_bin1106.fits outfile=/scratch/kocevski/261132/cmap_HighResolution_526003201_526262401_4FGL_J2219.2-0342_daily_bin1106.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261132/ft1_filtered_4FGL_J2219.2-0342_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/261132/ft2_4FGL_J2219.2-0342_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261132/Model_4FGL_J2219.2-0342_daily_bin1106.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/261132/ft1_filtered_4FGL_J2219.2-0342_daily_bin1106.fits.....................!
real 68.00
user 66.58
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4396       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2683       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.765       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8257       1.0000         .10000E-03   10000.    
    16 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1358       1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.746       1.0000         .10000E-03   10000.    
    20 'norm      '    .10698E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5705       1.0000         .10000E-03   10000.    
    22 'norm      '    23.624       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98159       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=   6987.408     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2780 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2078        2.0138       -.38717E-06   -.46623E-03
   2  Prefactor     .10000E-03    52.477        .15637E-04** at limit **
   3  Prefactor     .10000E-03    10.208        .21484E-07** at limit **
   4  Prefactor     .10000E-03    104.36       -.21911E-04** at limit **
   5  Prefactor     7.4392        6.5739        .25456E-06    .37692E-04
   6  Prefactor     11.119        5.8948       -.35753E-05    .51865E-04
   7  Prefactor     .10000E-03    3.2950       -.10723E-06** at limit **
   8  Prefactor     12.669        15.847       -.12290E-05   -.79347E-04
   9  Prefactor     .10000E-03    5.8817       -.49714E-07** at limit **
  10  Prefactor     6.2666        15.074       -.18322E-05   -.81695E-04
  11  Prefactor     .10000E-03    17.456       -.87500E-05** at limit **
  12  Prefactor     .10000E-03    20.154        .26562E-04** at limit **
  13  Prefactor     55.766        16.729       -.64696E-06    .48230E-04
  14  Prefactor     41.384        82.844       -.83843E-04    .35692E-04
  15  Prefactor     3.8259        4.4680       -.43492E-06   -.36622E-03
  16  norm          .10000E-03    1.9904        .66747E-06** at limit **
  17  Prefactor     .10000E-03    23.845       -.22435E-04** at limit **
  18  norm          1.1364        1.0780        .52533E-06    .10697E-02
  19  Prefactor     54.704        24.823        .16074E-05    .50293E-03
  20  norm          .10000E-03    1.1035       -.48211E-06** at limit **
  21  Prefactor     3.5703        6.7557        .30972E-06   -.14548E-03
  22  norm          23.626        14.158       -.75170E-06    .12441E-04
  23  Normalizat    .70149        .21279        .12914E-04   -.11154E-03
  24  Prefactor     .98170        .12021       -.14414E-05    .50958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.20785
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.43921
  Prefactor  = 11.1187
  Prefactor  = 0.0001
  Prefactor  = 12.6694
  Prefactor  = 0.0001
  Prefactor  = 6.26661
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 55.7658
  Prefactor  = 41.384
  Prefactor  = 3.8259
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.13635
  Prefactor  = 54.7041
  norm       = 0.0001
  Prefactor  = 3.57027
  norm       = 23.6257
  Normalizat = 0.701488
  Prefactor  = 0.981702
 **********
 **   18 **HESSE 
 **********

 FCN=   6987.408     FROM HESSE     STATUS=OK           397 CALLS     3177 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2078        2.0101        .10953E-03   -1.5411    
   2  Prefactor     .10000E-03    52.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    105.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4392        6.5705        .14704E-03   -1.5162    
   6  Prefactor     11.119        5.8964        .12015E-03   -1.5041    
   7  Prefactor     .10000E-03    3.3011        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.669        15.840        .11254E-03   -1.4996    
   9  Prefactor     .10000E-03    5.8861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2666        15.053        .16033E-03   -1.5207    
  11  Prefactor     .10000E-03    17.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     55.766        16.680        .53717E-04   -1.4213    
  14  Prefactor     41.384        82.816        .62265E-04   -1.4420    
  15  Prefactor     3.8259        4.4401        .17338E-03   -1.5317    
  16  norm          .10000E-03    2.0372        .23004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1364        1.0479        .80053E-04   -1.5495    
  19  Prefactor     54.704        21.519        .54212E-04   -1.4227    
  20  norm          .10000E-03    1.3584        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5703        6.7383        .21388E-03   -1.5330    
  22  norm          23.626        14.167        .82412E-04   -1.4735    
  23  Normalizat    .70149        .24679        .34962E-03   -1.0383    
  24  Prefactor     .98170        .14153        .18289E-03   -.93342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06162e-09
Minuit parameter uncertainties:
  1  2.0102
  2  0.000427971
  3  1.72899e-05
  4  0.000436944
  5  6.57113
  6  5.89667
  7  1.46339e-05
  8  15.8448
  9  1.47815e-05
  10  15.0618
  11  0.00052341
  12  0.000137409
  13  16.6816
  14  83.0477
  15  4.44047
  16  0.000102128
  17  7.39608e-06
  18  1.04792
  19  21.5222
  20  5.13624e-05
  21  6.73973
  22  14.1689
  23  0.247182
  24  0.141584
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.577e+01  1.668e+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:  9.817e-01  1.416e-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:  7.015e-01  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.94
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 2.57e-07 +/- 7.68e-08
Energy Flux (Fixed Index): 6.27e-05 +/- 1.88e-05

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) = 6987.36560252
delta logL = 0.0419287216973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6987.36397883
delta logL = 0.0435524167942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.476       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7728       1.0000          .0000       10.000    
     3 'Normalizat'    .68904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98775       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=   6987.364     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      288 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.475        19.473        .55366E-04    .17416E-02
   2  Index         2.7729        .32044        .40837E-02    .64392E-03
   3  Normalizat    .68898        .23468        .35249E-03   -.72020E-04
   4  Prefactor     .98780        .14171        .18241E-03   -.24943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.4747
  Index      = 2.7729
  Normalizat = 0.688977
  Prefactor  = 0.987802
 **********
 **   18 **HESSE 
 **********

 FCN=   6987.364     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.475        19.056        .11073E-04   -1.4258    
   2  Index         2.7729        .31342        .16335E-03   -.46164    
   3  Normalizat    .68898        .23478        .14099E-04   -1.0433    
   4  Prefactor     .98780        .14173        .36481E-04   -.93137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59976e-09
Minuit parameter uncertainties:
  1  19.0579
  2  0.313673
  3  0.235118
  4  0.14178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261132': 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) = 6987.36397872
delta logL = 0.0435525275871

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.247e+01  1.906e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.773e+00  3.137e-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:  9.878e-01  1.418e-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.890e-01  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.99
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.77 +/- 0.31
Photon Flux (Free Index): 2.66e-07 +/- 8.00e-08
Energy Flux (Free Index): 6.06e-05 +/- 1.85e-05

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/261132/cmap_HighResolution_526003201_526262401_4FGL_J2219.2-0342_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.57e-07', energy_flux2='6.06e-05', photon_flux_error='7.68e-08', dlogl='4.36e-02', energy_flux='6.27e-05', photon_flux2='2.66e-07', job_status='DONE', time_completed='2021-09-28 09:26:37.928545', photon_index_error2='0.31', photon_index2='2.77', ts='20.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='0.70', time_epoch_completed='1632846397.93', return_code='0', job_id='261132', GAL2='0.99', EG2='0.69', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='8.00e-08', ts2='20.99', photon_index='2.68' WHERE bin_id='1106' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:26:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 261132: <4FGL_J2219.2-0342_daily_bin1106> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1106> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:15 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:17 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:15:17 2021
Terminated at Tue Sep 28 09:26:38 2021
Results reported at Tue Sep 28 09:26:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1106 334.823 -3.7102 526003201 526262401 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 :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

