/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 149 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin41
RA = 334.823, Dec = -3.7102
tmin = 249955201, tmax = 250214401
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='255310', job_status='RUN', time_executed='2021-09-28 08:58:05.224860', time_epoch_executed='1632844685.22' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255310/ft1_4FGL_J2219.2-0342_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255310/ft2_4FGL_J2219.2-0342_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255310/ft1_4FGL_J2219.2-0342_daily_bin41.fits outfile=/scratch/kocevski/255310/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin41.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.43
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255310/ft1_filtered_4FGL_J2219.2-0342_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/255310/ft2_4FGL_J2219.2-0342_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/255310/ltcube_249955201_250214401_4FGL_J2219.2-0342_daily_bin41.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/255310/ft2_4FGL_J2219.2-0342_daily_bin41.fits
.....................!
real 12.41
user 12.09
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255310/ft1_filtered_4FGL_J2219.2-0342_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/255310/ft2_4FGL_J2219.2-0342_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/255310/ltcube_249955201_250214401_4FGL_J2219.2-0342_daily_bin41.fits outfile=/scratch/kocevski/255310/expmap_249955201_250214401_4FGL_J2219.2-0342_daily_bin41.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/255310/ltcube_249955201_250214401_4FGL_J2219.2-0342_daily_bin41.fits
.....................!
real 190.49
user 185.47
sys 4.68

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/255310/ft1_filtered_4FGL_J2219.2-0342_daily_bin41.fits scfile=/scratch/kocevski/255310/ft2_4FGL_J2219.2-0342_daily_bin41.fits outfile=/scratch/kocevski/255310/cmap_249955201_250214401_4FGL_J2219.2-0342_daily_bin41.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/255310/ft1_filtered_4FGL_J2219.2-0342_daily_bin41.fits scfile=/scratch/kocevski/255310/ft2_4FGL_J2219.2-0342_daily_bin41.fits outfile=/scratch/kocevski/255310/cmap_HighResolution_249955201_250214401_4FGL_J2219.2-0342_daily_bin41.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/255310/ft1_filtered_4FGL_J2219.2-0342_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/255310/ft2_4FGL_J2219.2-0342_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255310/Model_4FGL_J2219.2-0342_daily_bin41.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/255310/ft1_filtered_4FGL_J2219.2-0342_daily_bin41.fits.....................!
real 91.65
user 90.16
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9412       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.735       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13667E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.334       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24183E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.647       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2522       1.0000         .10000E-03   10000.    
    16 'norm      '    29.268       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0968       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.954       1.0000         .10000E-03   10000.    
    22 'norm      '    9.7154       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3797       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67512       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=   10107.38     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2372 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9413        1.5639        .95023E-07    .32146E-03
   2  Prefactor     .10000E-03    24.985        .21412E-06** at limit **
   3  Prefactor     1.0182        13.889        .14289E-05   -.18829E-03
   4  Prefactor     .10000E-03    48.925        .55322E-06** at limit **
   5  Prefactor     .10000E-03    2.0502       -.34115E-08** at limit **
   6  Prefactor     16.734        6.6210        .21148E-06   -.94909E-04
   7  Prefactor     .10000E-03    4.2454        .98229E-07** at limit **
   8  Prefactor     .10000E-03    4.7969        .24714E-06** at limit **
   9  Prefactor     .10000E-03    172.98       -.20145E-05** at limit **
  10  Prefactor     .10000E-03    3.4333        .61698E-07** at limit **
  11  Prefactor     8.9035        9.7461        .22187E-06   -.93607E-04
  12  Prefactor     11.303        20.758       -.10072E-06   -.38544E-04
  13  Prefactor     .10000E-03    13.602       -.75314E-06** at limit **
  14  Prefactor     11.637        63.528        .58515E-07   -.95845E-05
  15  Prefactor     9.2581        4.3517       -.29937E-07   -.17321E-03
  16  norm          29.268        5.3978        .97210E-07   -.69704E-04
  17  Prefactor     8.0794        212.15        .10481E-05   -.56381E-05
  18  norm          .10000E-03    .22737        .77108E-07** at limit **
  19  Prefactor     .10000E-03    16.571       -.41596E-07** at limit **
  20  norm          .10000E-03    .56998       -.90627E-07** at limit **
  21  Prefactor     10.953        8.0906       -.62307E-07   -.91454E-04
  22  norm          9.7123        11.414        .44988E-06   -.75777E-04
  23  Normalizat    1.3798        .20486       -.44073E-05   -.29475E-03
  24  Prefactor     .67514        .11144        .23288E-05   -.44738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.94132
  Prefactor  = 0.0001
  Prefactor  = 1.01825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 8.9035
  Prefactor  = 11.3031
  Prefactor  = 0.0001
  Prefactor  = 11.6368
  Prefactor  = 9.2581
  norm       = 29.2678
  Prefactor  = 8.07942
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9535
  norm       = 9.7123
  Normalizat = 1.37983
  Prefactor  = 0.675144
 **********
 **   18 **HESSE 
 **********

 FCN=   10107.38     FROM HESSE     STATUS=OK           409 CALLS     2781 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9413        1.5711        .89062E-04   -1.5365    
   2  Prefactor     .10000E-03    25.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0182        133.71        .66703E-02   -1.5506    
   4  Prefactor     .10000E-03    49.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0658        .14064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.734        6.6229        .97905E-04   -1.4890    
   7  Prefactor     .10000E-03    4.3607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1672        .76217E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9035        9.7520        .13432E-03   -1.5111    
  12  Prefactor     11.303        20.807        .11900E-03   -1.5035    
  13  Prefactor     .10000E-03    14.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.637        63.596        .11738E-03   -1.5026    
  15  Prefactor     9.2581        4.3597        .13176E-03   -1.5099    
  16  norm          29.268        5.3872        .74057E-04   -1.4625    
  17  Prefactor     8.0794        212.04        .14090E-03   -1.5139    
  18  norm          .10000E-03    .23333        .46917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .59357        .14805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.953        8.0933        .12105E-03   -1.5046    
  22  norm          9.7123        11.431        .12856E-03   -1.5085    
  23  Normalizat    1.3798        .20690        .27245E-03   -.81214    
  24  Prefactor     .67514        .11463        .21910E-03   -1.0451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3984e-09
Minuit parameter uncertainties:
  1  1.57109
  2  8.35349e-05
  3  23.3887
  4  0.000167041
  5  3.02193e-06
  6  6.6232
  7  5.22406e-06
  8  2.37155e-05
  9  0.000295187
  10  3.01604e-06
  11  9.75372
  12  20.8201
  13  0.000121658
  14  54.4973
  15  4.35986
  16  5.3873
  17  83.1096
  18  1.55385e-06
  19  1.74678e-05
  20  1.70177e-06
  21  8.09407
  22  11.434
  23  0.207022
  24  0.114669
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.217e-04  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.751e-01  1.147e-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.380e+00  2.070e-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: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255310/likelihoodResults_249955201_250214401_4FGL_J2219.2-0342_daily_bin41.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) = 10107.3845605
delta logL = -0.000333800164299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10107.3842275
delta logL = -7.59448084864e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13131E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7276       1.0000          .0000       10.000    
     3 'Normalizat'    1.3799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67512       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.

 FCN=   10107.38     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      224 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.977        .90712E-01** at limit **
   2  Index         2.7801        5.7721        .50000       -.31272E-04
   3  Normalizat    1.3798        .78218E-02    .61601E-01    .24352E-04
   4  Prefactor     .67514        .45927E-02    .42069E-01    .43038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.78009
  Normalizat = 1.37983
  Prefactor  = 0.675145
 **********
 **   18 **HESSE 
 **********

 FCN=   10107.38     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      259 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2183.6        .35596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7801        7.2472        .50000       -.46004    
   3  Normalizat    1.3798        .61747E-01    .27245E-03   -.81214    
   4  Prefactor     .67514        .36089E-01    .21910E-03   -1.0451    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01823e-07
Minuit parameter uncertainties:
  1  0.00659276
  2  52.1227
  3  0.0617508
  4  0.0360904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255310': 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) = 10107.3842261
delta logL = 6.78895958117e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  6.593e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.780e+00  5.212e+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.751e-01  3.609e-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:  1.380e+00  6.175e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/255310/cmap_HighResolution_249955201_250214401_4FGL_J2219.2-0342_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-28 09:11:52.928421', job_id='255310', GAL2='0.68', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632845512.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='6.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='41' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 255310: <4FGL_J2219.2-0342_daily_bin41> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin41> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:26 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55: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 08:55:27 2021
Terminated at Tue Sep 28 09:11:53 2021
Results reported at Tue Sep 28 09:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin41 334.823 -3.7102 249955201 250214401 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 :                                   828.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

