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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin971
RA = 333.226, Dec = -25.4335
tmin = 491011201, tmax = 491270401
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='224215', job_status='RUN', time_executed='2021-09-28 07:11:53.543105', time_epoch_executed='1632838313.54' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224215/ft1_4FGL_J2212.9-2526_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224215/ft2_4FGL_J2212.9-2526_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224215/ft1_4FGL_J2212.9-2526_daily_bin971.fits outfile=/scratch/kocevski/224215/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin971.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=491011201.0 tmax=491270401.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 3.59
user 3.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224215/ft1_filtered_4FGL_J2212.9-2526_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/224215/ft2_4FGL_J2212.9-2526_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/224215/ltcube_491011201_491270401_4FGL_J2212.9-2526_daily_bin971.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/224215/ft2_4FGL_J2212.9-2526_daily_bin971.fits
.....................!
real 11.86
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224215/ft1_filtered_4FGL_J2212.9-2526_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/224215/ft2_4FGL_J2212.9-2526_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/224215/ltcube_491011201_491270401_4FGL_J2212.9-2526_daily_bin971.fits outfile=/scratch/kocevski/224215/expmap_491011201_491270401_4FGL_J2212.9-2526_daily_bin971.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/224215/ltcube_491011201_491270401_4FGL_J2212.9-2526_daily_bin971.fits
.....................!
real 192.43
user 186.65
sys 5.32

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/224215/ft1_filtered_4FGL_J2212.9-2526_daily_bin971.fits scfile=/scratch/kocevski/224215/ft2_4FGL_J2212.9-2526_daily_bin971.fits outfile=/scratch/kocevski/224215/cmap_491011201_491270401_4FGL_J2212.9-2526_daily_bin971.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.60
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224215/ft1_filtered_4FGL_J2212.9-2526_daily_bin971.fits scfile=/scratch/kocevski/224215/ft2_4FGL_J2212.9-2526_daily_bin971.fits outfile=/scratch/kocevski/224215/cmap_HighResolution_491011201_491270401_4FGL_J2212.9-2526_daily_bin971.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224215/ft1_filtered_4FGL_J2212.9-2526_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/224215/ft2_4FGL_J2212.9-2526_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224215/Model_4FGL_J2212.9-2526_daily_bin971.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/224215/ft1_filtered_4FGL_J2212.9-2526_daily_bin971.fits.....................!
real 42.96
user 41.38
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11694       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11668E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3381       1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10303       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4641       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9427       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.849       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0335       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1128       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63058       1.0000         .10000E-03   10000.    
    20 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5747       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.290       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84917       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2049       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4769.991     FROM MIGRAD    STATUS=FAILED      1198 CALLS     3757 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10085E-03    15.301        .66236E-01** at limit **
   2  Prefactor     .10000E-03    12.777        .29351E-02** at limit **
   3  Prefactor     2.3365        28.809        .26815E-03    .27134E-05
   4  norm          .10000E-03    4.5078        .14298E-02** at limit **
   5  Prefactor     14.270        32.578        .10598E-03    .33041E-04
   6  Prefactor     .10005E-03    36.575        .97014E-01** at limit **
   7  Prefactor     .10000E-03    224.79        .18142E-02** at limit **
   8  norm          2.4650        7.9300        .26052E-03   -.47217E-04
   9  Prefactor     .10000E-03    11.717        .18142E-02** at limit **
  10  norm          1.9426        .63597        .27537E-04   -.63951E-03
  11  Prefactor     .10000E-03    5.3736        .15614E-02** at limit **
  12  Prefactor     26.802        26.196        .77365E-04   -.44966E-04
  13  Prefactor     7.4207        12.459        .14719E-03    .29351E-05
  14  Prefactor     28.508        82.212        .74591E-04    .30788E-04
  15  norm          9.0209        28.160        .13335E-03    .22166E-05
  16  Prefactor     1.1162        54.392        .44712E-02    .45175E-04
  17  norm          .10000E-03    3.1334        .15261E-02** at limit **
  18  Prefactor     .10000E-03    17.611        .18142E-02** at limit **
  19  Prefactor     .65442        68.470        .46161E-02    .10000E-02
  20  norm          .10000E-03    2.8020        .11186E-02** at limit **
  21  Prefactor     2.5762        18.341        .25436E-03    .70350E-04
  22  Prefactor     .10000E-03    4.2139        .13816E-02** at limit **
  23  norm          .10000E-03    1.2655        .87882E-03** at limit **
  24  Prefactor     21.299        15.231        .43403E-03    .19566E-03
  25  Normalizat    .84894        .31600        .31488E-03    .34588E-04
  26  Prefactor     1.2052        .23294        .21611E-03    .57455E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4769.991     FROM SIMPLEX   STATUS=UNCHANGED   1303 CALLS     5060 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10085E-03    15.301        .27916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.777        .44067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3365        28.809        .75357E-06   -1.5402    
   4  norm          .10000E-03    4.5078        .31698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.270        32.578        .73803E-06   -1.4952    
   6  Prefactor     .10005E-03    36.575        .31141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    224.79        .11117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4650        7.9300        .74753E-06   -1.5394    
   9  Prefactor     .10000E-03    11.717        .34188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9426        .63597        .74838E-06   -1.5429    
  11  Prefactor     .10000E-03    5.3736        .34103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.802        26.196        .71526E-06   -1.4672    
  13  Prefactor     7.4207        12.459        .74849E-06   -1.5163    
  14  Prefactor     28.508        82.212        .74889E-06   -1.4640    
  15  norm          9.0209        28.160        .79031E-06   -1.5107    
  16  Prefactor     1.1162        54.392        .87201E-06   -1.5497    
  17  norm          .10000E-03    3.1334        .13649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.611        .57384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .65442        68.470        .85742E-06   -1.5546    
  20  norm          .10000E-03    2.8020        .15145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5762        18.341        .74523E-06   -1.5387    
  22  Prefactor     .10000E-03    4.2139        .31041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.2655        .17030E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.299        15.231        .71701E-06   -1.4785    
  25  Normalizat    .84894        .31600        .47687E-06   -.98278    
  26  Prefactor     1.2052        .23294        .41794E-06   -.86170    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4769.991     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     5517 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10084E-03    13.286        .72858E-01** at limit **
   2  Prefactor     .10000E-03    12.875        .58702E-03** at limit **
   3  Prefactor     2.3365        28.776        .10726E-04    .25438E-06
   4  norm          .10000E-03    4.5082        .28595E-03** at limit **
   5  Prefactor     14.269        32.541        .42391E-05   -.21455E-06
   6  Prefactor     .10005E-03    33.470        .10252    ** at limit **
   7  Prefactor     .10000E-03    224.83        .36285E-03** at limit **
   8  norm          2.4650        7.9129        .10421E-04   -.87277E-06
   9  Prefactor     .10000E-03    11.717        .36285E-03** at limit **
  10  norm          1.9426        .63560        .55074E-05   -.53671E-05
  11  Prefactor     .10000E-03    5.3740        .31229E-03** at limit **
  12  Prefactor     26.802        26.189        .30946E-05    .14695E-06
  13  Prefactor     7.4207        12.447        .58875E-05   -.38620E-06
  14  Prefactor     28.507        82.157        .14918E-04    .91448E-07
  15  norm          9.0209        28.153        .53341E-05    .85253E-06
  16  Prefactor     1.1162        53.546        .17885E-03    .63566E-06
  17  norm          .10000E-03    3.1540        .30522E-03** at limit **
  18  Prefactor     .10000E-03    17.612        .36285E-03** at limit **
  19  Prefactor     .65447        68.055        .92323E-03    .19949E-05
  20  norm          .10000E-03    2.8026        .22372E-03** at limit **
  21  Prefactor     2.5762        18.324        .10174E-04    .53634E-05
  22  Prefactor     .10000E-03    4.2141        .27632E-03** at limit **
  23  norm          .10000E-03    1.2737        .17576E-03** at limit **
  24  Prefactor     21.299        15.215        .17361E-04    .22526E-04
  25  Normalizat    .84894        .31237        .12595E-04    .23468E-05
  26  Prefactor     1.2052        .23233        .43223E-04    .63652E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010084
  Prefactor  = 0.0001
  Prefactor  = 2.33649
  norm       = 0.0001
  Prefactor  = 14.2695
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  norm       = 2.46499
  Prefactor  = 0.0001
  norm       = 1.94261
  Prefactor  = 0.0001
  Prefactor  = 26.8024
  Prefactor  = 7.4207
  Prefactor  = 28.5074
  norm       = 9.02087
  Prefactor  = 1.11622
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.654465
  norm       = 0.0001
  Prefactor  = 2.57617
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.2993
  Normalizat = 0.848936
  Prefactor  = 1.20523
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.991     FROM HESSE     STATUS=OK           452 CALLS     5969 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10084E-03    13.822        .70913E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.879        .11740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3365        28.771        .10726E-04   -1.5402    
   4  norm          .10000E-03    4.5082        .57191E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.269        32.530        .42391E-05   -1.4952    
   6  Prefactor     .10005E-03    34.533        .10051       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    224.84        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4650        7.9118        .20842E-05   -1.5394    
   9  Prefactor     .10000E-03    11.717        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9426        .63563        .11015E-05   -1.5429    
  11  Prefactor     .10000E-03    5.3741        .62458E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.802        26.182        .30946E-05   -1.4672    
  13  Prefactor     7.4207        12.449        .11775E-05   -1.5163    
  14  Prefactor     28.507        82.139        .14918E-04   -1.4640    
  15  norm          9.0209        28.251        .10668E-05   -1.5107    
  16  Prefactor     1.1162        53.478        .71540E-05   -1.5497    
  17  norm          .10000E-03    3.1549        .61045E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.612        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .65447        67.761        .36929E-04   -1.5546    
  20  norm          .10000E-03    2.8027        .44744E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5762        18.335        .20349E-05   -1.5387    
  22  Prefactor     .10000E-03    4.2141        .55264E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.2740        .35153E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.299        15.216        .34723E-05   -1.4785    
  25  Normalizat    .84894        .31176        .25190E-05   -.98278    
  26  Prefactor     1.2052        .23241        .86445E-05   -.86170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05865e-12
Minuit parameter uncertainties:
  1  0.00681629
  2  4.3691e-07
  3  16.4075
  4  3.56535e-08
  5  32.5705
  6  0.00257147
  7  7.07397e-06
  8  7.91517
  9  3.32482e-07
  10  0.635628
  11  3.31016e-08
  12  26.1928
  13  12.4529
  14  82.4676
  15  28.2925
  16  15.4663
  17  4.42145e-07
  18  2.82738e-07
  19  13.3332
  20  2.62539e-07
  21  13.7511
  22  4.43056e-07
  23  1.10341e-06
  24  15.2188
  25  0.31242
  26  0.232606
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  2.680e+01  2.619e+01  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.205e+00  2.326e-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:  8.489e-01  3.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 4.88e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.99e-05

TS (Fixed Index): 1.59
Ra Dec: 333.226 -25.433
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224215/likelihoodResults_491011201_491270401_4FGL_J2212.9-2526_daily_bin971.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) = 4769.86624955
delta logL = 0.124726058528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4769.86214524
delta logL = 0.128830373821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.873       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6979       1.0000          .0000       10.000    
     3 'Normalizat'    .88069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1931       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=   4769.862     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      270 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.872        34.388        .78755E-04    .13425E-04
   2  Index         1.6981        .99398        .98289E-02   -.82192E-05
   3  Normalizat    .88054        .27487        .30962E-03   -.29008E-04
   4  Prefactor     1.1932        .21988        .21704E-03   -.84585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8721
  Index      = 1.69805
  Normalizat = 0.880544
  Prefactor  = 1.19318
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.862     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.872        35.687        .31502E-05   -1.4690    
   2  Index         1.6981        1.0305        .39316E-03   -.72134    
   3  Normalizat    .88054        .27524        .12385E-04   -.97147    
   4  Prefactor     1.1932        .22008        .43408E-04   -.86542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3615e-11
Minuit parameter uncertainties:
  1  35.7161
  2  1.04385
  3  0.275682
  4  0.220245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224215': 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) = 4769.86214506
delta logL = 0.12883054912

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  2.587e+01  3.572e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  1.698e+00  1.044e+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.193e+00  2.202e-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:  8.805e-01  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 1.70 +/- 1.04
Photon Flux (Free Index): 2.24e-08 +/- 4.98e-08
Energy Flux (Free Index): 3.67e-05 +/- 6.47e-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/224215/cmap_HighResolution_491011201_491270401_4FGL_J2212.9-2526_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='3.67e-05', photon_flux_error='4.88e-08', dlogl='1.29e-01', energy_flux='2.04e-05', photon_flux2='2.24e-08', job_status='DONE', time_completed='2021-09-28 07:23:50.256170', photon_index_error2='1.04', photon_index2='1.70', ts='1.59', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='6.47e-05', EG='0.85', time_epoch_completed='1632839030.26', return_code='0', job_id='224215', GAL2='1.19', EG2='0.88', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='4.98e-08', ts2='1.82', photon_index='2.26' WHERE bin_id='971' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:23:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 224215: <4FGL_J2212.9-2526_daily_bin971> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin971> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 07:10:30 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:10:32 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:10:32 2021
Terminated at Tue Sep 28 07:23:51 2021
Results reported at Tue Sep 28 07:23:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin971 333.226 -25.4335 491011201 491270401 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.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

