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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin718
RA = 333.226, Dec = -25.4335
tmin = 425433601, tmax = 425692801
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='222771', job_status='RUN', time_executed='2021-09-28 07:08:48.002195', time_epoch_executed='1632838128.0' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222771

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222771/ft1_4FGL_J2212.9-2526_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222771/ft2_4FGL_J2212.9-2526_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222771/ft1_4FGL_J2212.9-2526_daily_bin718.fits outfile=/scratch/kocevski/222771/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin718.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=425433601.0 tmax=425692801.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.07
user 2.83
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222771/ft1_filtered_4FGL_J2212.9-2526_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/222771/ft2_4FGL_J2212.9-2526_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/222771/ltcube_425433601_425692801_4FGL_J2212.9-2526_daily_bin718.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/222771/ft2_4FGL_J2212.9-2526_daily_bin718.fits
.....................!
real 10.41
user 10.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222771/ft1_filtered_4FGL_J2212.9-2526_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/222771/ft2_4FGL_J2212.9-2526_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/222771/ltcube_425433601_425692801_4FGL_J2212.9-2526_daily_bin718.fits outfile=/scratch/kocevski/222771/expmap_425433601_425692801_4FGL_J2212.9-2526_daily_bin718.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/222771/ltcube_425433601_425692801_4FGL_J2212.9-2526_daily_bin718.fits
.....................!
real 190.06
user 185.53
sys 4.08

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/222771/ft1_filtered_4FGL_J2212.9-2526_daily_bin718.fits scfile=/scratch/kocevski/222771/ft2_4FGL_J2212.9-2526_daily_bin718.fits outfile=/scratch/kocevski/222771/cmap_425433601_425692801_4FGL_J2212.9-2526_daily_bin718.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222771/ft1_filtered_4FGL_J2212.9-2526_daily_bin718.fits scfile=/scratch/kocevski/222771/ft2_4FGL_J2212.9-2526_daily_bin718.fits outfile=/scratch/kocevski/222771/cmap_HighResolution_425433601_425692801_4FGL_J2212.9-2526_daily_bin718.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.56
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23673E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.6224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6067       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9923       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.058       1.0000         .10000E-03   10000.    
    15 'norm      '    11.161       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4898       1.0000         .10000E-03   10000.    
    17 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8825       1.0000         .10000E-03   10000.    
    20 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.607       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8587       1.0000         .10000E-03   10000.    
    23 'norm      '    .56005       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4982       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60397       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=   6440.288     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3112 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4574        5.5250       -.30265E-07    .30753E-04
   2  Prefactor     .10000E-03    2.3403       -.26399E-07** at limit **
   3  Prefactor     .10003E-03    6.5285       -.47450E-06** at limit **
   4  norm          .10000E-03    1.5068       -.10350E-07** at limit **
   5  Prefactor     20.638        15.280       -.35313E-07   -.31950E-04
   6  Prefactor     .10000E-03    5.8379       -.22659E-07** at limit **
   7  Prefactor     .10000E-03    15.924       -.24132E-07** at limit **
   8  norm          5.6230        4.6399        .69119E-07   -.22542E-04
   9  Prefactor     8.5922        20.856        .37767E-07    .17001E-04
  10  norm          1.6965        .44492       -.96271E-08    .11222E-03
  11  Prefactor     .10000E-03    1.8191       -.56405E-08** at limit **
  12  Prefactor     5.9949        11.467        .53099E-07    .73252E-05
  13  Prefactor     .10000E-03    12.195       -.11229E-06** at limit **
  14  Prefactor     28.089        51.132        .93861E-08    .14042E-04
  15  norm          11.150        27.348        .17448E-05   -.34613E-04
  16  Prefactor     3.4737        10.023        .20147E-05    .16378E-04
  17  norm          .10000E-03    1.3763        .11891E-06** at limit **
  18  Prefactor     1.4042        384.17       -.22661E-04   -.29002E-05
  19  Prefactor     3.8896        11.482        .60016E-07    .13385E-05
  20  norm          .10000E-03    2.3252       -.96579E-07** at limit **
  21  Prefactor     23.608        16.962       -.14352E-06    .20588E-04
  22  Prefactor     4.8487        11.945        .15089E-05    .25486E-04
  23  norm          .56049        .61751       -.48108E-07   -.13321E-03
  24  Prefactor     .10000E-03    5.6561        .48597E-07** at limit **
  25  Normalizat    1.4978        .20154        .89454E-06    .27021E-04
  26  Prefactor     .60413        .15109       -.55742E-06    .11012E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.45739
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  norm       = 0.0001
  Prefactor  = 20.638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.62302
  Prefactor  = 8.59219
  norm       = 1.69654
  Prefactor  = 0.0001
  Prefactor  = 5.99486
  Prefactor  = 0.0001
  Prefactor  = 28.0887
  norm       = 11.1495
  Prefactor  = 3.47371
  norm       = 0.0001
  Prefactor  = 1.40425
  Prefactor  = 3.8896
  norm       = 0.0001
  Prefactor  = 23.6084
  Prefactor  = 4.84874
  norm       = 0.560493
  Prefactor  = 0.0001
  Normalizat = 1.49777
  Prefactor  = 0.604128
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.288     FROM HESSE     STATUS=OK           462 CALLS     3574 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4574        5.5279        .14686E-03   -1.5162    
   2  Prefactor     .10000E-03    9.6412        .23911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    56.143        .39230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5077        .96203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.638        15.262        .88158E-04   -1.4799    
   6  Prefactor     .10000E-03    5.8578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.6230        4.6598        .14174E-03   -1.5234    
   9  Prefactor     8.5922        20.810        .13664E-03   -1.5122    
  10  norm          1.6965        .44676        .25310E-04   -1.5447    
  11  Prefactor     .10000E-03    1.8202        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9949        11.453        .16403E-03   -1.5218    
  13  Prefactor     .10000E-03    12.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.089        51.063        .75633E-04   -1.4647    
  15  norm          11.150        27.234        .11992E-03   -1.5040    
  16  Prefactor     3.4737        10.062        .21644E-03   -1.5335    
  17  norm          .10000E-03    1.4029        .91747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4042        399.16        .44642E-03   -1.5471    
  19  Prefactor     3.8896        11.527        .20478E-03   -1.5314    
  20  norm          .10000E-03    2.3442        .11937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.608        16.836        .82442E-04   -1.4736    
  22  Prefactor     4.8487        11.825        .18249E-03   -1.5268    
  23  norm          .56049        .59437        .54884E-04   -1.5558    
  24  Prefactor     .10000E-03    5.6666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4978        .24527        .22943E-03   -.77841    
  26  Prefactor     .60413        .18197        .27014E-03   -1.0741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63659e-10
Minuit parameter uncertainties:
  1  5.52831
  2  1.9081e-05
  3  0.002731
  4  2.259e-07
  5  15.2651
  6  1.97776e-07
  7  6.52572e-07
  8  4.66012
  9  20.8271
  10  0.446763
  11  4.5859e-07
  12  11.4575
  13  1.86291e-05
  14  51.1429
  15  27.2647
  16  10.0669
  17  1.69929e-05
  18  47.6729
  19  11.5339
  20  2.82194e-06
  21  16.839
  22  11.8312
  23  0.594378
  24  1.74195e-05
  25  0.245465
  26  0.182144
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  5.995e+00  1.146e+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:  6.041e-01  1.821e-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.498e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 333.226 -25.433
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222771/likelihoodResults_425433601_425692801_4FGL_J2212.9-2526_daily_bin718.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) = 6439.79764163
delta logL = 0.490597161198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6439.72364353
delta logL = 0.564595263121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.840       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4720       1.0000          .0000       10.000    
     3 'Normalizat'    1.5081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59596       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=   6439.724     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.844        14.153        .12169E-03   -.14284E-03
   2  Index         1.4720        .62274        .10471E-01   -.14653E-03
   3  Normalizat    1.5081        .22037        .22870E-03   -.77104E-03
   4  Prefactor     .59596        .17357        .27165E-03   -.54358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.844
  Index      = 1.472
  Normalizat = 1.50813
  Prefactor  = 0.595965
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.724     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.844        14.358        .24338E-04   -1.5049    
   2  Index         1.4720        .63183        .20942E-02   -.78327    
   3  Normalizat    1.5081        .22054        .45740E-04   -.77550    
   4  Prefactor     .59596        .17371        .54330E-04   -1.0776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32692e-10
Minuit parameter uncertainties:
  1  14.3623
  2  0.635227
  3  0.220684
  4  0.173866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222771': 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) = 6439.72364348
delta logL = 0.564595314439

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.084e+01  1.436e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  1.472e+00  6.352e-01  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:  5.960e-01  1.739e-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.508e+00  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 1.47 +/- 0.64
Photon Flux (Free Index): 7.77e-09 +/- 1.17e-08
Energy Flux (Free Index): 2.70e-05 +/- 4.68e-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/222771/cmap_HighResolution_425433601_425692801_4FGL_J2212.9-2526_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', comment='SUCCESS', energy_flux2='2.70e-05', dlogl='5.65e-01', photon_flux2='7.77e-09', job_status='DONE', time_completed='2021-09-28 07:20:00.244517', photon_index_error2='0.64', photon_index2='1.47', ts='0.38', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='7.29e-08', energy_flux_error2='4.68e-05', EG='1.50', time_epoch_completed='1632838800.24', return_code='0', job_id='222771', GAL2='0.60', EG2='1.51', return_code2='0', photon_flux_error2='1.17e-08', ts2='1.51', photon_index='2.26' WHERE bin_id='718' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:20:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 222771: <4FGL_J2212.9-2526_daily_bin718> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin718 333.226 -25.4335 425433601 425692801 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 :                                   672.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

