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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin650
RA = 333.226, Dec = -25.4335
tmin = 407808001, tmax = 408067201
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='222667', job_status='RUN', time_executed='2021-09-28 07:06:51.568612', time_epoch_executed='1632838011.57' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222667/ft1_4FGL_J2212.9-2526_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222667/ft2_4FGL_J2212.9-2526_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222667/ft1_4FGL_J2212.9-2526_daily_bin650.fits outfile=/scratch/kocevski/222667/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin650.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=407808001.0 tmax=408067201.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.18
user 3.94
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222667/ft1_filtered_4FGL_J2212.9-2526_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/222667/ft2_4FGL_J2212.9-2526_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/222667/ltcube_407808001_408067201_4FGL_J2212.9-2526_daily_bin650.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/222667/ft2_4FGL_J2212.9-2526_daily_bin650.fits
.....................!
real 16.66
user 16.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222667/ft1_filtered_4FGL_J2212.9-2526_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/222667/ft2_4FGL_J2212.9-2526_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/222667/ltcube_407808001_408067201_4FGL_J2212.9-2526_daily_bin650.fits outfile=/scratch/kocevski/222667/expmap_407808001_408067201_4FGL_J2212.9-2526_daily_bin650.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/222667/ltcube_407808001_408067201_4FGL_J2212.9-2526_daily_bin650.fits
.....................!
real 193.89
user 189.27
sys 4.25

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/222667/ft1_filtered_4FGL_J2212.9-2526_daily_bin650.fits scfile=/scratch/kocevski/222667/ft2_4FGL_J2212.9-2526_daily_bin650.fits outfile=/scratch/kocevski/222667/cmap_407808001_408067201_4FGL_J2212.9-2526_daily_bin650.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222667/ft1_filtered_4FGL_J2212.9-2526_daily_bin650.fits scfile=/scratch/kocevski/222667/ft2_4FGL_J2212.9-2526_daily_bin650.fits outfile=/scratch/kocevski/222667/cmap_HighResolution_407808001_408067201_4FGL_J2212.9-2526_daily_bin650.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.59
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9883       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .28840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    82.844       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.369       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0213       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0955       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15152E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9630       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.241       1.0000         .10000E-03   10000.    
    15 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70335       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1406       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.427       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.1846       1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67346       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2556       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.

 FCN=   5869.075     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3209 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3782       -.60036E-07** at limit **
   2  Prefactor     8.9894        6.2884        .37788E-07   -.23013E-05
   3  Prefactor     .10000E-03    5.3035       -.70594E-06** at limit **
   4  norm          .28843        5.5756        .24298E-06   -.10620E-03
   5  Prefactor     .10000E-03    8.0207        .32651E-07** at limit **
   6  Prefactor     7.0105        34.260       -.90098E-05   -.47855E-04
   7  Prefactor     82.700        97.177        .77541E-05    .32928E-04
   8  norm          4.2052        4.8240       -.96241E-07    .54231E-04
   9  Prefactor     25.374        16.754       -.10488E-08   -.24113E-05
  10  norm          1.0214        .39334       -.29323E-07   -.11750E-03
  11  Prefactor     6.0943        9.7152        .10201E-06    .77387E-04
  12  Prefactor     .10005E-03    18.824       -.49233E-06** at limit **
  13  Prefactor     7.9619        6.9022       -.10243E-06    .14382E-04
  14  Prefactor     47.282        74.208        .47265E-06    .21042E-04
  15  norm          .10000E-03    13.661       -.49848E-07** at limit **
  16  Prefactor     .67901        10.718       -.20817E-05    .24957E-03
  17  norm          1.1409        3.0316        .85043E-06    .27008E-03
  18  Prefactor     .10000E-03    44.061       -.18480E-06** at limit **
  19  Prefactor     25.423        16.234       -.35353E-06    .71127E-04
  20  norm          .10000E-03    1.8703       -.10259E-06** at limit **
  21  Prefactor     .10000E-03    8.6235       -.20636E-06** at limit **
  22  Prefactor     7.1875        11.315       -.30523E-07    .32079E-03
  23  norm          .10000E-03    .29746       -.20953E-06** at limit **
  24  Prefactor     .10000E-03    28.589       -.96121E-06** at limit **
  25  Normalizat    .67383        .26134        .63958E-05    .18229E-03
  26  Prefactor     1.2553        .19449       -.34046E-05    .46193E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.98943
  Prefactor  = 0.0001
  norm       = 0.288426
  Prefactor  = 0.0001
  Prefactor  = 7.01046
  Prefactor  = 82.7
  norm       = 4.20517
  Prefactor  = 25.3743
  norm       = 1.02139
  Prefactor  = 6.09431
  Prefactor  = 0.000100049
  Prefactor  = 7.96187
  Prefactor  = 47.2817
  norm       = 0.0001
  Prefactor  = 0.679005
  norm       = 1.14094
  Prefactor  = 0.0001
  Prefactor  = 25.4234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.18751
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.673827
  Prefactor  = 1.25532
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.075     FROM HESSE     STATUS=OK           468 CALLS     3677 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3878        .13751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.9894        6.2870        .13369E-03   -1.5108    
   3  Prefactor     .10000E-03    5.3218        .17243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .28843        26.511        .34524E-02   -1.5601    
   5  Prefactor     .10000E-03    8.0353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0105        35.245        .15201E-03   -1.5178    
   7  Prefactor     82.700        98.409        .22066E-03   -1.3887    
   8  norm          4.2052        4.7944        .15632E-03   -1.5298    
   9  Prefactor     25.374        16.753        .79533E-04   -1.4700    
  10  norm          1.0214        .39319        .27775E-04   -1.5506    
  11  Prefactor     6.0943        9.6458        .16262E-03   -1.5214    
  12  Prefactor     .10005E-03    128.78        .62414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9619        6.9051        .14209E-03   -1.5144    
  14  Prefactor     47.282        74.052        .58338E-04   -1.4332    
  15  norm          .10000E-03    13.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .67901        76.817        .44049E-02   -1.5543    
  17  norm          1.1409        2.9914        .20339E-03   -1.5494    
  18  Prefactor     .10000E-03    44.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.423        16.263        .79442E-04   -1.4699    
  20  norm          .10000E-03    1.8768        .10222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.6332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.1875        10.635        .14965E-03   -1.5172    
  23  norm          .10000E-03    .37448        .76957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .67383        .28255        .34082E-03   -1.0494    
  26  Prefactor     1.2553        .21064        .20395E-03   -.84646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26124e-08
Minuit parameter uncertainties:
  1  1.36865e-06
  2  6.28748
  3  2.09154e-05
  4  5.53204
  5  2.96745e-06
  6  31.4672
  7  98.6035
  8  4.7948
  9  16.756
  10  0.393187
  11  9.64822
  12  0.00502975
  13  6.90575
  14  74.1961
  15  1.90497e-05
  16  14.4622
  17  2.99176
  18  7.97309e-05
  19  16.266
  20  3.71629e-06
  21  8.14365e-06
  22  10.6382
  23  1.03017e-06
  24  2.85288e-05
  25  0.283162
  26  0.210778
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  5.030e-03  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:  1.255e+00  2.108e-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:  6.738e-01  2.832e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222667/likelihoodResults_407808001_408067201_4FGL_J2212.9-2526_daily_bin650.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) = 5869.07542013
delta logL = -3.6008823372e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5869.07542012
delta logL = -3.59999630746e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96351E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2552       1.0000          .0000       10.000    
     3 'Normalizat'    .67382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2553       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=   5867.590     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      289 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31207E-01    .28699        .18336E-02    .35583E-01
   2  Index         6.0285        2.2433        .92926E-01    .72273E-03
   3  Normalizat    .48443        .56532E-01    .89930E-01   -.11615E-04
   4  Prefactor     1.3580        .44908E-01    .33438E-01    .46623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0312071
  Index      = 6.02854
  Normalizat = 0.484431
  Prefactor  = 1.35798
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.590     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31207E-01    .59175        .82488E-05   -1.5673    
   2  Index         6.0285        3.4733        .36657E-02    .20719    
   3  Normalizat    .48443        .22572        .39839E-03   -1.1314    
   4  Prefactor     1.3580        .17450        .19708E-03   -.81599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.21866e-09
Minuit parameter uncertainties:
  1  0.271352
  2  3.86196
  3  0.226151
  4  0.174571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222667': 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) = 5867.59030053
delta logL = 1.48508358265

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  3.121e-02  2.714e-01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  6.029e+00  3.862e+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:  1.358e+00  1.746e-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:  4.844e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.49
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 6.03 +/- 3.86
Photon Flux (Free Index): 1.35e-07 +/- 8.60e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.16e-05

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/222667/cmap_HighResolution_407808001_408067201_4FGL_J2212.9-2526_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', comment='SUCCESS', energy_flux2='1.68e-05', dlogl='1.49e+00', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-28 07:18:10.955487', photon_index_error2='3.86', photon_index2='6.03', ts='-0.00', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.16e-05', EG='0.67', time_epoch_completed='1632838690.96', return_code='0', job_id='222667', GAL2='1.36', EG2='0.48', return_code2='102', photon_flux_error2='8.60e-08', ts2='3.49', photon_index='2.26' WHERE bin_id='650' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:18:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 222667: <4FGL_J2212.9-2526_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin650 333.226 -25.4335 407808001 408067201 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

