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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin633
RA = 333.226, Dec = -25.4335
tmin = 403401601, tmax = 403660801
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='222640', job_status='RUN', time_executed='2021-09-28 07:05:33.491302', time_epoch_executed='1632837933.49' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222640

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222640/ft1_4FGL_J2212.9-2526_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222640/ft1_4FGL_J2212.9-2526_daily_bin633.fits outfile=/scratch/kocevski/222640/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin633.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=403401601.0 tmax=403660801.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 4.10
user 3.84
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.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/222640/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin633.fits evtable="EVENTS" outfile="/scratch/kocevski/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.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.53
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/222640/ltcube_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.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/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits
.....................!
real 17.53
user 17.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/222640/ltcube_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.fits outfile=/scratch/kocevski/222640/expmap_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.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/222640/ltcube_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.fits
.....................!
real 195.99
user 190.06
sys 4.63

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2212.9-2526 @ 333.226 -25.4335

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.fits scfile=/scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits outfile=/scratch/kocevski/222640/cmap_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.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=333.226 yref=-25.4335 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.fits scfile=/scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits outfile=/scratch/kocevski/222640/cmap_HighResolution_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.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=333.226 yref=-25.4335 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.58
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222640/Model_4FGL_J2212.9-2526_daily_bin633.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/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.fits.....................!
real 46.80
user 45.38
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.fits', '/scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits', expMap='/scratch/kocevski/222640/expmap_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.fits', expCube='/scratch/kocevski/222640/ltcube_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222640/Model_4FGL_J2212.9-2526_daily_bin633.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2212.9-2526'

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  5.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/222640/ft1_filtered_4FGL_J2212.9-2526_daily_bin633.fits
Spacecraft file(s): /scratch/kocevski/222640/ft2_4FGL_J2212.9-2526_daily_bin633.fits
Exposure map: /scratch/kocevski/222640/expmap_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.fits
Exposure cube: /scratch/kocevski/222640/ltcube_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222640/Model_4FGL_J2212.9-2526_daily_bin633.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4941.50345793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1479       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13572E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    93.096       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7754       1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.933       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5137       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .99729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.535       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.776       1.0000         .10000E-03   10000.    
    17 'norm      '    .11175E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12587E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7942       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7024       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .43567       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4403       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   4941.469     FROM MIGRAD    STATUS=CONVERGED   1115 CALLS     4074 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1478        6.4832        .17719E-03    .25664E-05
   2  Prefactor     .10000E-03    5.9778        .16687E-02** at limit **
   3  Prefactor     .10001E-03    69.737        .43862E-02** at limit **
   4  norm          93.092        20.614        .41652E-04    .11900E-04
   5  Prefactor     24.365        35.550        .81140E-04    .17654E-04
   6  Prefactor     2.4652        678.88        .24428E-02   -.28487E-04
   7  Prefactor     81.818        229.67        .22322E-03   -.59486E-04
   8  norm          3.5118        6.8384        .10784E-02   -.12979E-03
   9  Prefactor     .10000E-03    29.304        .18142E-02** at limit **
  10  norm          .99727        .46887        .30605E-04   -.74391E-03
  11  Prefactor     .74434        49.235        .45264E-02   -.65398E-04
  12  Prefactor     .10000E-03    22.855        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.4085        .12660E-02** at limit **
  14  Prefactor     .10000E-03    85.022        .18142E-02** at limit **
  15  norm          14.535        21.414        .10506E-03    .55189E-05
  16  Prefactor     15.757        18.563        .10084E-03   -.10372E-04
  17  norm          .10000E-03    3.9877        .19691E-02** at limit **
  18  Prefactor     .10000E-03    306.82        .18142E-02** at limit **
  19  Prefactor     .10000E-03    12.297        .18142E-02** at limit **
  20  norm          4.7922        5.1303        .15231E-03    .57476E-04
  21  Prefactor     8.7006        15.524        .13588E-03    .25100E-04
  22  Prefactor     .10000E-03    7.9212        .18142E-02** at limit **
  23  norm          .43599        .51744        .53867E-03   -.23237E-03
  24  Prefactor     .10000E-03    36.624        .36285E-02** at limit **
  25  Normalizat    1.4402        .31610        .26939E-03    .16965E-04
  26  Prefactor     .76221        .23130        .27181E-03    .20997E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14784
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 93.0916
  Prefactor  = 24.3648
  Prefactor  = 2.46524
  Prefactor  = 81.8177
  norm       = 3.51181
  Prefactor  = 0.0001
  norm       = 0.997271
  Prefactor  = 0.744339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5346
  Prefactor  = 15.757
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.79216
  Prefactor  = 8.7006
  Prefactor  = 0.0001
  norm       = 0.435993
  Prefactor  = 0.0001
  Normalizat = 1.44022
  Prefactor  = 0.762207
 **********
 **   18 **HESSE 
 **********

 FCN=   4941.469     FROM HESSE     STATUS=OK           436 CALLS     4510 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1478        6.4830        .70876E-05   -1.5254    
   2  Prefactor     .10000E-03    5.9800        .33374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    70.854        .87724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          93.092        20.606        .83303E-05   -1.3775    
   5  Prefactor     24.365        35.535        .32456E-05   -1.4720    
   6  Prefactor     2.4652        476.87        .97712E-04   -1.5394    
   7  Prefactor     81.818        193.24        .89289E-05   -1.3896    
   8  norm          3.5118        6.8204        .43134E-04   -1.5333    
   9  Prefactor     .10000E-03    29.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .99727        .46864        .61209E-05   -1.5508    
  11  Prefactor     .74434        49.020        .18106E-03   -1.5535    
  12  Prefactor     .10000E-03    22.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4086        .25320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    85.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.535        21.409        .42023E-05   -1.4945    
  16  Prefactor     15.757        18.558        .40335E-05   -1.4914    
  17  norm          .10000E-03    4.0002        .39381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    307.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7922        5.1288        .60922E-05   -1.5270    
  21  Prefactor     8.7006        15.515        .54352E-05   -1.5118    
  22  Prefactor     .10000E-03    7.9227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43599        .51708        .21547E-04   -1.5576    
  24  Prefactor     .10000E-03    36.874        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4402        .31497        .10776E-04   -.79472    
  26  Prefactor     .76221        .23070        .10872E-04   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81872e-10
Minuit parameter uncertainties:
  1  6.48387
  2  4.43468e-06
  3  0.00130392
  4  20.6073
  5  35.5663
  6  69.1381
  7  194.755
  8  6.82195
  9  2.81367e-05
  10  0.468637
  11  12.0905
  12  6.94012e-06
  13  2.00527e-06
  14  5.66773e-05
  15  21.4204
  16  18.5643
  17  5.58952e-05
  18  0.000808924
  19  1.57815e-06
  20  5.12924
  21  15.5217
  22  4.55869e-05
  23  0.517085
  24  0.000167519
  25  0.315397
  26  0.230989
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  6.940e-06  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.622e-01  2.310e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.440e+00  3.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 333.226 -25.433
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222640/likelihoodResults_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.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) = 4941.46913081
delta logL = -0.000208435754757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4941.46892501
delta logL = -2.62909452431e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14724E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5655       1.0000          .0000       10.000    
     3 'Normalizat'    1.4402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76221       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   4941.469     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      278 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10461E-03    7.6341        .18142E-01** at limit **
   2  Index         2.4630        6.1911        .50000        .17758E-04
   3  Normalizat    1.4402        .40709E-02    .26941E-03   -.47727E-04
   4  Prefactor     .76221        .31151E-02    .27180E-03   -.66381E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104605
  Index      = 2.46303
  Normalizat = 1.44022
  Prefactor  = 0.762207
 **********
 **   18 **HESSE 
 **********

 FCN=   4941.469     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10461E-03    90.726        .28580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4630        8.6944        .50000       -.53216    
   3  Normalizat    1.4402        .13958E-01    .10776E-04   -.79472    
   4  Prefactor     .76221        .10681E-01    .10872E-04   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.43201e-09
Minuit parameter uncertainties:
  1  0.0409439
  2  289.778
  3  0.0139584
  4  0.0106811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222640': 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) = 4941.46892314
delta logL = -7.61759110901e-07

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.046e-04  4.094e-02  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.463e+00  2.898e+02  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.622e-01  1.068e-02  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.440e+00  1.396e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 333.226 -25.433

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/222640/cmap_HighResolution_403401601_403660801_4FGL_J2212.9-2526_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 07:16:55.288701', job_id='222640', GAL2='0.76', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632838615.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-7.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='633' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:16:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 222640: <4FGL_J2212.9-2526_daily_bin633> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin633> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:05:16 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:05: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 07:05:17 2021
Terminated at Tue Sep 28 07:16:56 2021
Results reported at Tue Sep 28 07:16:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin633 333.226 -25.4335 403401601 403660801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2212.9-2526 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   679.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

