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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin385
RA = 333.226, Dec = -25.4335
tmin = 339120001, tmax = 339379201
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='221248', job_status='RUN', time_executed='2021-09-28 07:04:19.844172', time_epoch_executed='1632837859.84' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221248

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221248/ft1_4FGL_J2212.9-2526_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221248/ft1_4FGL_J2212.9-2526_daily_bin385.fits outfile=/scratch/kocevski/221248/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin385.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=339120001.0 tmax=339379201.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 6.29
user 6.03
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.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/221248/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin385.fits evtable="EVENTS" outfile="/scratch/kocevski/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.fits" evtable="EVENTS" scfile=/scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits sctable="SC_DATA" outfile=/scratch/kocevski/221248/ltcube_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.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/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits
.....................!
real 11.49
user 11.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/221248/ltcube_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.fits outfile=/scratch/kocevski/221248/expmap_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.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/221248/ltcube_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.fits
.....................!
real 190.51
user 185.05
sys 5.10

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/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.fits scfile=/scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits outfile=/scratch/kocevski/221248/cmap_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.fits scfile=/scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits outfile=/scratch/kocevski/221248/cmap_HighResolution_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221248/Model_4FGL_J2212.9-2526_daily_bin385.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/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.fits.....................!
real 46.89
user 45.57
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.fits', '/scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits', expMap='/scratch/kocevski/221248/expmap_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.fits', expCube='/scratch/kocevski/221248/ltcube_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/221248/Model_4FGL_J2212.9-2526_daily_bin385.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/221248/ft1_filtered_4FGL_J2212.9-2526_daily_bin385.fits
Spacecraft file(s): /scratch/kocevski/221248/ft2_4FGL_J2212.9-2526_daily_bin385.fits
Exposure map: /scratch/kocevski/221248/expmap_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.fits
Exposure cube: /scratch/kocevski/221248/ltcube_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/221248/Model_4FGL_J2212.9-2526_daily_bin385.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) = 5138.13285075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4108       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5638       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.304       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1557       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3228       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.105       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.668       1.0000         .10000E-03   10000.    
    17 'norm      '    .76760       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.658       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.140       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2558       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .80021       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23658       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3105       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94852       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=   5138.112     FROM MIGRAD    STATUS=CONVERGED   1083 CALLS     3597 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4103        5.3914        .81031E-03    .17542E-03
   2  Prefactor     7.5616        7.8489        .14582E-03   -.21050E-05
   3  Prefactor     .10000E-03    17.513        .18142E-02** at limit **
   4  norm          1.1128        6.2381        .34932E-03   -.44196E-04
   5  Prefactor     .10000E-03    81.873        .36285E-03** at limit **
   6  Prefactor     .10000E-03    9.4427        .18142E-02** at limit **
   7  Prefactor     .10000E-03    27.447        .18142E-02** at limit **
   8  norm          10.306        6.3882        .62412E-03   -.10968E-03
   9  Prefactor     .10000E-03    7.7025        .18142E-02** at limit **
  10  norm          1.1557        .46497        .29275E-04    .34175E-04
  11  Prefactor     .10000E-03    12.447        .18142E-02** at limit **
  12  Prefactor     .10000E-03    15.195        .18142E-02** at limit **
  13  Prefactor     7.3288        14.010        .14822E-03    .52925E-05
  14  Prefactor     .10000E-03    21.259        .18142E-02** at limit **
  15  norm          22.102        34.456        .85193E-04   -.42569E-04
  16  Prefactor     30.666        17.688        .72350E-04   -.24041E-04
  17  norm          .76522        7.8370        .27163E-03   -.80778E-04
  18  Prefactor     52.738        91.348        .55270E-04    .13822E-04
  19  Prefactor     29.147        22.179        .74219E-04    .18535E-04
  20  norm          4.2560        5.3860        .17203E-03    .72035E-05
  21  Prefactor     .10000E-03    12.141        .18142E-02** at limit **
  22  Prefactor     .10000E-03    8.1373        .18142E-02** at limit **
  23  norm          .79917        .84181        .59064E-03    .62858E-03
  24  Prefactor     .29678        128.98        .40818E-02    .32280E-04
  25  Normalizat    1.3098        .32265        .28519E-03   -.10883E-04
  26  Prefactor     .94903        .23267        .25146E-03    .61305E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.41026
  Prefactor  = 7.56156
  Prefactor  = 0.0001
  norm       = 1.11277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3057
  Prefactor  = 0.0001
  norm       = 1.15571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.32877
  Prefactor  = 0.0001
  norm       = 22.1017
  Prefactor  = 30.6659
  norm       = 0.765219
  Prefactor  = 52.7381
  Prefactor  = 29.1474
  norm       = 4.25603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.799166
  Prefactor  = 0.296777
  Normalizat = 1.30975
  Prefactor  = 0.949027
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.112     FROM HESSE     STATUS=OK           434 CALLS     4031 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4103        5.3915        .32412E-04   -1.5243    
   2  Prefactor     7.5616        7.8490        .58327E-05   -1.5158    
   3  Prefactor     .10000E-03    17.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1128        6.2370        .13973E-04   -1.5497    
   5  Prefactor     .10000E-03    81.876        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.306        6.3871        .24965E-04   -1.5066    
   9  Prefactor     .10000E-03    7.7027        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1557        .46498        .11710E-05   -1.5493    
  11  Prefactor     .10000E-03    12.452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3288        14.008        .59287E-05   -1.5166    
  14  Prefactor     .10000E-03    21.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.102        34.448        .34077E-05   -1.4767    
  16  Prefactor     30.666        17.686        .28940E-05   -1.4600    
  17  norm          .76522        7.7562        .10865E-04   -1.5533    
  18  Prefactor     52.738        90.901        .11054E-04   -1.4254    
  19  Prefactor     29.147        22.178        .29687E-05   -1.4628    
  20  norm          4.2560        5.3839        .68811E-05   -1.5295    
  21  Prefactor     .10000E-03    12.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.1389        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .79917        .82282        .23626E-04   -1.5529    
  24  Prefactor     .29678        125.27        .16327E-03   -1.5599    
  25  Normalizat    1.3098        .32268        .11408E-04   -.83276    
  26  Prefactor     .94903        .23290        .10059E-04   -.94448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46882e-10
Minuit parameter uncertainties:
  1  5.39203
  2  7.85004
  3  2.74825e-06
  4  5.26953
  5  0.000100573
  6  7.56414e-06
  7  4.22717e-05
  8  6.38755
  9  5.92619e-06
  10  0.464985
  11  3.50289e-05
  12  5.21655e-07
  13  14.014
  14  3.19281e-05
  15  34.4786
  16  17.6895
  17  4.87296
  18  91.1418
  19  22.1847
  20  5.38451
  21  3.70071e-05
  22  4.05588e-05
  23  0.822836
  24  12.2184
  25  0.32318
  26  0.23315
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  5.217e-07  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:  9.490e-01  2.332e-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.310e+00  3.232e-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: 9.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221248/likelihoodResults_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.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) = 5138.1128088
delta logL = -0.00031349461824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5138.11249548
delta logL = -1.7064394342e-07

Fit tolerance = 1e-08

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

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

 FCN=   5138.112     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6294.9        .90712E-02** at limit **
   2  Index         2.1619        5.7584        .50000       -.64855E-05
   3  Normalizat    1.3098        .13109        .64473E-01    .62138E-05
   4  Prefactor     .94903        .10046        .45627E-01    .77527E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16195
  Normalizat = 1.30976
  Prefactor  = 0.949026
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.112     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1619        6.0178        .50000       -.60360    
   3  Normalizat    1.3098        .28535        .28519E-03   -.83276    
   4  Prefactor     .94903        .21961        .25146E-03   -.94448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4618e-11
Minuit parameter uncertainties:
  1  1.5577e-05
  2  4.90917
  3  0.285695
  4  0.219819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221248': 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) = 5138.11249545
delta logL = -1.44735167851e-07

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.558e-05  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.162e+00  4.909e+00  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:  9.490e-01  2.198e-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.310e+00  2.857e-01  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/221248/cmap_HighResolution_339120001_339379201_4FGL_J2212.9-2526_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-09-28 07:14:49.491939', job_id='221248', GAL2='0.95', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632838489.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='385' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:14:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 221248: <4FGL_J2212.9-2526_daily_bin385> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin385> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 07:00:30 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:00:33 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:00:33 2021
Terminated at Tue Sep 28 07:14:49 2021
Results reported at Tue Sep 28 07:14:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin385 333.226 -25.4335 339120001 339379201 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 :                                   626.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             231.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

