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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1565
RA = 183.001, Dec = -23.4494
tmin = 644976001, tmax = 645235201
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='411862', job_status='RUN', time_executed='2021-09-05 04:07:35.060501', time_epoch_executed='1630840055.06' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411862

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411862/ft1_4FGL_J1212.0-2326_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411862/ft1_4FGL_J1212.0-2326_daily_bin1565.fits outfile=/scratch/kocevski/411862/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1565.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=644976001.0 tmax=645235201.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.00
user 2.74
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.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/411862/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/411862/ltcube_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.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/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits
.....................!
real 12.42
user 12.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/411862/ltcube_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.fits outfile=/scratch/kocevski/411862/expmap_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.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/411862/ltcube_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.fits
.....................!
real 190.81
user 184.99
sys 5.27

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.fits scfile=/scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits outfile=/scratch/kocevski/411862/cmap_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.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=183.001 yref=-23.4494 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.fits scfile=/scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits outfile=/scratch/kocevski/411862/cmap_HighResolution_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.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=183.001 yref=-23.4494 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411862/Model_4FGL_J1212.0-2326_daily_bin1565.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/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.fits.....................!
real 73.12
user 70.68
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.fits', '/scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits', expMap='/scratch/kocevski/411862/expmap_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.fits', expCube='/scratch/kocevski/411862/ltcube_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/411862/Model_4FGL_J1212.0-2326_daily_bin1565.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/411862/ft1_filtered_4FGL_J1212.0-2326_daily_bin1565.fits
Spacecraft file(s): /scratch/kocevski/411862/ft2_4FGL_J1212.0-2326_daily_bin1565.fits
Exposure map: /scratch/kocevski/411862/expmap_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.fits
Exposure cube: /scratch/kocevski/411862/ltcube_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/411862/Model_4FGL_J1212.0-2326_daily_bin1565.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) = 8263.79254012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.104       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28257E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0246       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.296       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.404       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5916       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4069       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1562       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34196E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2428       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6538       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91196       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8263.774     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2820 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.615        14.891        .24752E-06   -.10727E-03
   2  Prefactor     .10000E-03    18.192       -.13637E-07** at limit **
   3  norm          .10000E-03    .35603       -.11997E-06** at limit **
   4  Prefactor     41.103        38.282        .37863E-06   -.40797E-04
   5  Prefactor     .10000E-03    6.9960       -.24291E-06** at limit **
   6  Prefactor     .10000E-03    9.0136        .74241E-08** at limit **
   7  norm          .10000E-03    12.191        .15507E-06** at limit **
   8  Prefactor     .10000E-03    19.449        .14381E-05** at limit **
   9  norm          2.1408        3.6744        .25037E-05   -.26722E-03
  10  Prefactor     .10154E-03    4.7263        .15492E-05** at limit **
  11  Prefactor     5.0019        131.07       -.24573E-05   -.50086E-04
  12  Prefactor     33.527        33.599       -.64153E-05   -.45426E-04
  13  Prefactor     .10000E-03    17.793        .15777E-06** at limit **
  14  Prefactor     72.297        58.061       -.14185E-05   -.11595E-03
  15  Prefactor     37.404        29.947        .33456E-06   -.53524E-04
  16  Prefactor     .10000E-03    1.2517       -.21827E-07** at limit **
  17  Prefactor     8.5916        2.6679        .21252E-07    .94788E-05
  18  Prefactor     7.4063        8.9370        .15163E-06   -.29142E-04
  19  norm          2.1562        1.1464        .52900E-07   -.13888E-03
  20  Prefactor     .10000E-03    289.36       -.46012E-06** at limit **
  21  norm          .10001E-03    4.2275        .15299E-05** at limit **
  22  Prefactor     9.2421        6.4224        .42739E-06   -.30638E-03
  23  Normalizat    1.6536        .23531       -.12579E-05   -.55915E-03
  24  Prefactor     .91202        .11820       -.31382E-07   -.85010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6155
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.1028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14075
  Prefactor  = 0.000101539
  Prefactor  = 5.00187
  Prefactor  = 33.5266
  Prefactor  = 0.0001
  Prefactor  = 72.2966
  Prefactor  = 37.4036
  Prefactor  = 0.0001
  Prefactor  = 8.59164
  Prefactor  = 7.40635
  norm       = 2.15616
  Prefactor  = 0.000100001
  norm       = 0.000100013
  Prefactor  = 9.2421
  Normalizat = 1.65357
  Prefactor  = 0.912021
 **********
 **   18 **HESSE 
 **********

 FCN=   8263.774     FROM HESSE     STATUS=OK           405 CALLS     3225 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.615        14.943        .88216E-04   -1.4800    
   2  Prefactor     .10000E-03    18.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .47523        .10541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.103        38.299        .62524E-04   -1.4425    
   5  Prefactor     .10000E-03    7.2753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.0164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1408        3.6987        .10947E-02   -1.5415    
  10  Prefactor     .10154E-03    6.7359        .49908E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0019        129.43        .17939E-03   -1.5261    
  12  Prefactor     33.527        36.029        .69205E-04   -1.4549    
  13  Prefactor     .10000E-03    17.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     72.297        57.854        .47216E-04   -1.4005    
  15  Prefactor     37.404        29.981        .65532E-04   -1.4484    
  16  Prefactor     .10000E-03    1.2529        .99316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5916        2.6687        .80560E-04   -1.5122    
  18  Prefactor     7.4063        8.9346        .14737E-03   -1.5164    
  19  norm          2.1562        1.1432        .68220E-04   -1.5414    
  20  Prefactor     .10000E-03    292.58        .21334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    12.503        .33812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2421        6.2338        .13183E-03   -1.5100    
  23  Normalizat    1.6536        .27813        .32341E-03   -.73550    
  24  Prefactor     .91202        .13966        .21113E-03   -.95722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83364e-09
Minuit parameter uncertainties:
  1  14.9458
  2  2.05017e-05
  3  1.83277e-06
  4  38.3222
  5  3.06982e-06
  6  4.6586e-06
  7  7.54541e-05
  8  0.000101196
  9  3.69913
  10  0.00644113
  11  51.0098
  12  36.0522
  13  8.14825e-05
  14  57.8989
  15  29.9932
  16  1.10317e-07
  17  2.66869
  18  8.9362
  19  1.14324
  20  0.00109048
  21  0.000820225
  22  6.23425
  23  0.278396
  24  0.139717
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.148e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.120e-01  1.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.654e+00  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411862/likelihoodResults_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.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) = 8263.77397907
delta logL = -0.000267633446128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8262.50099732
delta logL = 1.27271411414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30482       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7035       1.0000          .0000       10.000    
     3 'Normalizat'    1.5409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93887       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8262.501     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      306 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30559        2.3107        .73964E-02    .19052E-02
   2  Index         3.7025        1.2125        .80741E-01    .27221E-03
   3  Normalizat    1.5408        .52788E-01    .75004E-01    .22378E-04
   4  Prefactor     .93892        .26729E-01    .45499E-01    .47555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.305595
  Index      = 3.70247
  Normalizat = 1.54082
  Prefactor  = 0.938916
 **********
 **   18 **HESSE 
 **********

 FCN=   8262.501     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30559        6.9345        .33457E-04   -1.5597    
   2  Index         3.7025        2.6799        .27924E-02   -.26251    
   3  Normalizat    1.5408        .24542        .33189E-03   -.76638    
   4  Prefactor     .93892        .12244        .20804E-03   -.94794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.35832e-07
Minuit parameter uncertainties:
  1  2.91135
  2  2.84104
  3  0.245615
  4  0.122473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411862': 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) = 8262.50099589
delta logL = 1.27271554602

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  3.056e-01  2.911e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  3.702e+00  2.841e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.389e-01  1.225e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.541e+00  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 183.001 -23.449
Photon Index (Free Index): 3.70 +/- 2.84
Photon Flux (Free Index): 1.18e-07 +/- 8.07e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.62e-05

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/411862/cmap_HighResolution_644976001_645235201_4FGL_J1212.0-2326_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', comment='SUCCESS', energy_flux2='1.88e-05', dlogl='1.27e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-05 04:21:53.004607', photon_index_error2='2.84', photon_index2='3.70', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.66e-08', energy_flux_error2='1.62e-05', EG='1.65', time_epoch_completed='1630840913.0', return_code='0', job_id='411862', GAL2='0.94', EG2='1.54', return_code2='102', photon_flux_error2='8.07e-08', ts2='2.65', photon_index='1.90' WHERE bin_id='1565' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:21:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 411862: <4FGL_J1212.0-2326_daily_bin1565> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1565> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 04:05:32 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:05:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:05:33 2021
Terminated at Sun Sep  5 04:21:53 2021
Results reported at Sun Sep  5 04:21:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1565 183.001 -23.4494 644976001 645235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   852.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

