/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 91 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 = 7462
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2212.9-2526_daily_bin471
RA = 333.226, Dec = -25.4335
tmin = 361411201, tmax = 361670401
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='221375', job_status='RUN', time_executed='2021-09-28 07:02:30.028335', time_epoch_executed='1632837750.03' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221375/ft1_4FGL_J2212.9-2526_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221375/ft2_4FGL_J2212.9-2526_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221375/ft1_4FGL_J2212.9-2526_daily_bin471.fits outfile=/scratch/kocevski/221375/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin471.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=361411201.0 tmax=361670401.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.53
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221375/ft1_filtered_4FGL_J2212.9-2526_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/221375/ft2_4FGL_J2212.9-2526_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/221375/ltcube_361411201_361670401_4FGL_J2212.9-2526_daily_bin471.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/221375/ft2_4FGL_J2212.9-2526_daily_bin471.fits
.....................!
real 12.69
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221375/ft1_filtered_4FGL_J2212.9-2526_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/221375/ft2_4FGL_J2212.9-2526_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/221375/ltcube_361411201_361670401_4FGL_J2212.9-2526_daily_bin471.fits outfile=/scratch/kocevski/221375/expmap_361411201_361670401_4FGL_J2212.9-2526_daily_bin471.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/221375/ltcube_361411201_361670401_4FGL_J2212.9-2526_daily_bin471.fits
.....................!
real 191.19
user 185.82
sys 4.96

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/221375/ft1_filtered_4FGL_J2212.9-2526_daily_bin471.fits scfile=/scratch/kocevski/221375/ft2_4FGL_J2212.9-2526_daily_bin471.fits outfile=/scratch/kocevski/221375/cmap_361411201_361670401_4FGL_J2212.9-2526_daily_bin471.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.52
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221375/ft1_filtered_4FGL_J2212.9-2526_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/221375/ft2_4FGL_J2212.9-2526_daily_bin471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221375/Model_4FGL_J2212.9-2526_daily_bin471.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/221375/ft1_filtered_4FGL_J2212.9-2526_daily_bin471.fits.....................!
real 64.23
user 62.81
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4314       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.9139       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.6618       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8547       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20264E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0039       1.0000         .10000E-03   10000.    
    14 'Prefactor '    75.280       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.243       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.483       1.0000         .10000E-03   10000.    
    23 'norm      '    4.3581       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0269       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3416       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93630       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=   8110.616     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3093 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0541        6.5477        .83098E-07    .60377E-04
   2  Prefactor     7.4314        5.3286        .10397E-06   -.44583E-05
   3  Prefactor     .10000E-03    3.5610       -.94910E-08** at limit **
   4  norm          8.9140        5.8931        .44965E-07   -.21647E-04
   5  Prefactor     .10000E-03    6.9905        .21752E-06** at limit **
   6  Prefactor     9.0680        12.579        .33802E-06    .45969E-04
   7  Prefactor     .10000E-03    57.901       -.41265E-06** at limit **
   8  norm          5.6622        5.2890        .33286E-06   -.17458E-03
   9  Prefactor     2.8575        19.221        .14139E-05    .25560E-05
  10  norm          1.4971        .44180       -.53055E-08   -.19567E-03
  11  Prefactor     .10000E-03    3.0196       -.12443E-07** at limit **
  12  Prefactor     .10037E-03    11.250        .15190E-05** at limit **
  13  Prefactor     2.0051        5.9647        .10807E-05   -.15500E-03
  14  Prefactor     75.295        69.702        .28117E-05    .14385E-03
  15  norm          .10000E-03    6.1632        .27077E-07** at limit **
  16  Prefactor     .10000E-03    26.134        .15422E-05** at limit **
  17  norm          .10000E-03    1.9052        .13560E-05** at limit **
  18  Prefactor     20.751        37.841        .91877E-05    .45149E-03
  19  Prefactor     .10000E-03    5.1221       -.35608E-08** at limit **
  20  norm          18.245        6.8855       -.22050E-06   -.90987E-03
  21  Prefactor     .10000E-03    7.3764       -.30762E-06** at limit **
  22  Prefactor     11.478        18.455       -.45897E-05   -.34516E-03
  23  norm          4.3581        1.3715       -.95123E-07   -.88109E-03
  24  Prefactor     4.0297        18.280        .14146E-04   -.34912E-03
  25  Normalizat    1.3414        .20722       -.18666E-05   -.19042E-03
  26  Prefactor     .93639        .15908        .34372E-06   -.34714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.05405
  Prefactor  = 7.43142
  Prefactor  = 0.0001
  norm       = 8.91403
  Prefactor  = 0.0001
  Prefactor  = 9.06803
  Prefactor  = 0.0001
  norm       = 5.66223
  Prefactor  = 2.85748
  norm       = 1.49706
  Prefactor  = 0.0001
  Prefactor  = 0.000100366
  Prefactor  = 2.00507
  Prefactor  = 75.2953
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 20.7512
  Prefactor  = 0.0001
  norm       = 18.2446
  Prefactor  = 0.0001
  Prefactor  = 11.478
  norm       = 4.35812
  Prefactor  = 4.02972
  Normalizat = 1.34141
  Prefactor  = 0.936393
 **********
 **   18 **HESSE 
 **********

 FCN=   8110.616     FROM HESSE     STATUS=OK           454 CALLS     3547 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0541        6.5545        .13320E-03   -1.5106    
   2  Prefactor     7.4314        5.3293        .14712E-03   -1.5163    
   3  Prefactor     .10000E-03    3.5639        .16597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.9140        5.8920        .13425E-03   -1.5111    
   5  Prefactor     .10000E-03    7.0037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0680        12.556        .13310E-03   -1.5106    
   7  Prefactor     .10000E-03    58.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.6622        5.3318        .16882E-03   -1.5232    
   9  Prefactor     2.8575        19.213        .24062E-03   -1.5370    
  10  norm          1.4971        .44526        .29183E-04   -1.5463    
  11  Prefactor     .10000E-03    3.0330        .15282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10037E-03    121.20        .57533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0051        5.9817        .29253E-03   -1.5425    
  14  Prefactor     75.295        70.048        .46277E-04   -1.3970    
  15  norm          .10000E-03    6.1650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9233        .23860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.751        40.211        .88047E-04   -1.4797    
  19  Prefactor     .10000E-03    5.1509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.245        6.9054        .93771E-04   -1.4853    
  21  Prefactor     .10000E-03    7.3830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.478        18.528        .11822E-03   -1.5030    
  23  norm          4.3581        1.3724        .19294E-04   -1.5290    
  24  Prefactor     4.0297        19.981        .10048E-02   -1.5306    
  25  Normalizat    1.3414        .25182        .28087E-03   -.82339    
  26  Prefactor     .93639        .19446        .26214E-03   -.94881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3919e-09
Minuit parameter uncertainties:
  1  6.55504
  2  5.32967
  3  2.00022e-06
  4  5.89237
  5  2.77799e-05
  6  12.5593
  7  0.000165775
  8  5.33229
  9  14.8256
  10  0.445265
  11  2.13313e-06
  12  0.0133484
  13  5.98346
  14  70.1251
  15  1.14639e-05
  16  0.000312404
  17  8.83429e-05
  18  40.2633
  19  1.17961e-05
  20  6.90573
  21  3.17554e-05
  22  18.5372
  23  1.37243
  24  17.9559
  25  0.252056
  26  0.194609
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.004e-04  1.335e-02  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.364e-01  1.946e-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.341e+00  2.521e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221375/likelihoodResults_361411201_361670401_4FGL_J2212.9-2526_daily_bin471.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) = 8110.61570354
delta logL = -3.77610931537e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8110.61570354
delta logL = -3.77545620722e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96350E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2552       1.0000          .0000       10.000    
     3 'Normalizat'    1.3414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93640       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=   8110.616     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      242 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18670E-03    3.4944        .13067    ** at limit **
   2  Index         2.4127        2.8619        .50000       -.22856E-04
   3  Normalizat    1.3414        .35506E-02    .63501E-01   -.10326E-03
   4  Prefactor     .93640        .28435E-02    .45467E-01    .29291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000186705
  Index      = 2.41273
  Normalizat = 1.3414
  Prefactor  = 0.936397
 **********
 **   18 **HESSE 
 **********

 FCN=   8110.616     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      285 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18670E-03    10.806        .74577E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4127        3.2473        .50000       -.54387    
   3  Normalizat    1.3414        .41718E-02    .28088E-03   -.82339    
   4  Prefactor     .93640        .33423E-02    .26214E-03   -.94881    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.37181e-11
Minuit parameter uncertainties:
  1  0.0612288
  2  3.68693
  3  0.00417184
  4  0.00334229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221375': 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) = 8110.6156653
delta logL = 4.82928044221e-07

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.867e-04  6.123e-02  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.413e+00  3.687e+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.364e-01  3.342e-03  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.341e+00  4.172e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/221375/cmap_HighResolution_361411201_361670401_4FGL_J2212.9-2526_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-28 07:15:46.497124', job_id='221375', GAL2='0.94', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632838546.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.83e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='471' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:15:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 221375: <4FGL_J2212.9-2526_daily_bin471> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin471> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 07:00:40 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:00:42 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:42 2021
Terminated at Tue Sep 28 07:15:47 2021
Results reported at Tue Sep 28 07:15:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin471 333.226 -25.4335 361411201 361670401 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 :                                   788.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

