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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1481
RA = 334.823, Dec = -3.7102
tmin = 623203201, tmax = 623462401
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='262703', job_status='RUN', time_executed='2021-09-28 09:20:30.167130', time_epoch_executed='1632846030.17' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262703/ft1_4FGL_J2219.2-0342_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262703/ft2_4FGL_J2219.2-0342_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262703/ft1_4FGL_J2219.2-0342_daily_bin1481.fits outfile=/scratch/kocevski/262703/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1481.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.90
user 2.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262703/ft1_filtered_4FGL_J2219.2-0342_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/262703/ft2_4FGL_J2219.2-0342_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/262703/ltcube_623203201_623462401_4FGL_J2219.2-0342_daily_bin1481.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/262703/ft2_4FGL_J2219.2-0342_daily_bin1481.fits
.....................!
real 12.51
user 12.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262703/ft1_filtered_4FGL_J2219.2-0342_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/262703/ft2_4FGL_J2219.2-0342_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/262703/ltcube_623203201_623462401_4FGL_J2219.2-0342_daily_bin1481.fits outfile=/scratch/kocevski/262703/expmap_623203201_623462401_4FGL_J2219.2-0342_daily_bin1481.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/262703/ltcube_623203201_623462401_4FGL_J2219.2-0342_daily_bin1481.fits
.....................!
real 193.24
user 187.34
sys 5.49

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/262703/ft1_filtered_4FGL_J2219.2-0342_daily_bin1481.fits scfile=/scratch/kocevski/262703/ft2_4FGL_J2219.2-0342_daily_bin1481.fits outfile=/scratch/kocevski/262703/cmap_623203201_623462401_4FGL_J2219.2-0342_daily_bin1481.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262703/ft1_filtered_4FGL_J2219.2-0342_daily_bin1481.fits scfile=/scratch/kocevski/262703/ft2_4FGL_J2219.2-0342_daily_bin1481.fits outfile=/scratch/kocevski/262703/cmap_HighResolution_623203201_623462401_4FGL_J2219.2-0342_daily_bin1481.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/262703/ft1_filtered_4FGL_J2219.2-0342_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/262703/ft2_4FGL_J2219.2-0342_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262703/Model_4FGL_J2219.2-0342_daily_bin1481.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/262703/ft1_filtered_4FGL_J2219.2-0342_daily_bin1481.fits......................!
real 33.82
user 32.44
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.609       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.565       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3554       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .37477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    121.07       1.0000         .10000E-03   10000.    
    20 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.334       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70840       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0243       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=   2559.562     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2774 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9166        4.4249        .75113E-05    .43676E-03
   2  Prefactor     41.527        69.102       -.89849E-04    .10961E-04
   3  Prefactor     .10001E-03    185.20       -.11719E-03** at limit **
   4  Prefactor     27.558        61.464       -.77533E-05   -.94073E-05
   5  Prefactor     .10000E-03    5.6511        .21183E-06** at limit **
   6  Prefactor     19.125        13.283       -.18608E-05    .58983E-04
   7  Prefactor     2.3737        55.499        .34013E-05   -.21767E-05
   8  Prefactor     .10000E-03    28.319        .65145E-05** at limit **
   9  Prefactor     33.389        38.569       -.22176E-05   -.10634E-05
  10  Prefactor     .10000E-03    19.611       -.26668E-05** at limit **
  11  Prefactor     20.249        18.656       -.13681E-05    .94024E-04
  12  Prefactor     .10000E-03    96.080        .10528E-03** at limit **
  13  Prefactor     .10000E-03    9.8775       -.15728E-06** at limit **
  14  Prefactor     .10000E-03    63.656       -.65401E-04** at limit **
  15  Prefactor     .10000E-03    3.9615       -.87769E-07** at limit **
  16  norm          .10000E-03    2.6799       -.12785E-06** at limit **
  17  Prefactor     .10000E-03    75.788        .25752E-04** at limit **
  18  norm          .37474        1.7459       -.23901E-05   -.12344E-02
  19  Prefactor     121.09        55.504        .72642E-05    .27145E-03
  20  norm          .10000E-03    3.6417       -.10987E-05** at limit **
  21  Prefactor     .10000E-03    14.021        .43626E-06** at limit **
  22  norm          18.335        52.643       -.24282E-06    .14302E-05
  23  Normalizat    .70833        .41577        .98410E-05    .13727E-03
  24  Prefactor     1.0243        .22266        .17672E-05    .21247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91656
  Prefactor  = 41.5271
  Prefactor  = 0.000100006
  Prefactor  = 27.5576
  Prefactor  = 0.0001
  Prefactor  = 19.1245
  Prefactor  = 2.37369
  Prefactor  = 0.0001
  Prefactor  = 33.3894
  Prefactor  = 0.0001
  Prefactor  = 20.2493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.374739
  Prefactor  = 121.087
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 18.3349
  Normalizat = 0.70833
  Prefactor  = 1.02433
 **********
 **   18 **HESSE 
 **********

 FCN=   2559.562     FROM HESSE     STATUS=OK           393 CALLS     3167 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9166        4.4005        .11704E-03   -1.5366    
   2  Prefactor     41.527        69.023        .62145E-04   -1.4418    
   3  Prefactor     .10001E-03    187.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.558        61.459        .76304E-04   -1.4658    
   5  Prefactor     .10000E-03    5.6604        .11745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.125        13.326        .91582E-04   -1.4833    
   7  Prefactor     2.3737        54.812        .26706E-03   -1.5400    
   8  Prefactor     .10000E-03    28.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.389        38.472        .69347E-04   -1.4552    
  10  Prefactor     .10000E-03    19.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.249        18.680        .89012E-04   -1.4808    
  12  Prefactor     .10000E-03    95.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.9371        .15529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    63.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9854        .98332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6941        .80860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    75.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .37474        1.6796        .12253E-03   -1.5586    
  19  Prefactor     121.09        54.388        .36575E-04   -1.3503    
  20  norm          .10000E-03    3.6678        .18578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.335        52.633        .93539E-04   -1.4851    
  23  Normalizat    .70833        .47539        .39144E-03   -1.0357    
  24  Prefactor     1.0243        .25967        .19227E-03   -.91923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56825e-09
Minuit parameter uncertainties:
  1  4.40101
  2  69.156
  3  0.00208159
  4  61.6009
  5  4.9629e-05
  6  13.3284
  7  22.8361
  8  1.81215e-05
  9  38.5007
  10  1.24945e-05
  11  18.6858
  12  0.000362027
  13  2.72047e-05
  14  8.51016e-05
  15  1.90315e-05
  16  2.1549e-05
  17  9.83781e-05
  18  1.58658
  19  54.4102
  20  0.000210666
  21  6.11484e-05
  22  52.7668
  23  0.478193
  24  0.259987
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.720e-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.024e+00  2.600e-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.083e-01  4.782e-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: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262703/likelihoodResults_623203201_623462401_4FGL_J2219.2-0342_daily_bin1481.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) = 2559.56262455
delta logL = -0.000478514774841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2559.56214608
delta logL = -4.52105268778e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6878       1.0000          .0000       10.000    
     3 'Normalizat'    .70835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       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=   2559.470     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      292 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46106E-03    .11309E-02    .51358E-03** at limit **
   2  Index        10.0000        7.9742        .50000    ** at limit **
   3  Normalizat    .65246        .44746        .39143E-02    .58445E-04
   4  Prefactor     1.0473        .25837        .19227E-03    .16769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000461057
  Index      = 10
  Normalizat = 0.65246
  Prefactor  = 1.04731
 **********
 **   18 **HESSE 
 **********

 FCN=   2559.470     FROM HESSE     STATUS=OK            31 CALLS      323 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46106E-03    .12064E-02    .29180E-05   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.1199        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .65246        .45405        .15657E-03   -1.0580    
   4  Prefactor     1.0473        .26034        .38455E-04   -.91169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6198e-11
Minuit parameter uncertainties:
  1  0.00120639
  2  0.000124047
  3  0.456689
  4  0.260658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262703': 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) = 2559.47046266
delta logL = 0.0916833734632

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.611e-04  1.206e-03  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.000e+01  1.240e-04  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.047e+00  2.607e-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.525e-01  4.567e-01  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/262703/cmap_HighResolution_623203201_623462401_4FGL_J2219.2-0342_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-28 09:27:56.490979', job_id='262703', GAL2='1.05', fit_tolerance='1e-08', EG2='0.65', EG='0.71', time_epoch_completed='1632846476.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.17e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1481' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:27:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 262703: <4FGL_J2219.2-0342_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1481> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:16 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:18 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:20:18 2021
Terminated at Tue Sep 28 09:27:57 2021
Results reported at Tue Sep 28 09:27:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1481 334.823 -3.7102 623203201 623462401 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 :                                   445.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             303.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   458 sec.
    Turnaround time :                            461 sec.

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

